List block storage volumes

GET /block-storage

Responses

  • 200 application/json

    200

    Hide response attribute Show response attribute object
    • Hide block-storage-volumes attributes Show block-storage-volumes attributes object
      • labels object

        Resource labels

        Hide labels attribute Show labels attribute object
        • * string Additional properties
      • instance object

        Volume attached instance, if any

        Additional properties are allowed.

        Hide instance attribute Show instance attribute object
        • id string(uuid)

          Instance ID

      • name string

        Volume name

        Minimum length is 1, maximum length is 255.

      • state string

        Volume state

        Values are snapshotting, deleted, creating, detached, deleting, attaching, error, attached, or detaching.

      • size integer(int64)

        Volume size

        Minimum value is 10.

      • blocksize integer(int64)

        Volume block size

        Minimum value is 0.

      • Volume snapshots, if any

        Hide block-storage-snapshots attribute Show block-storage-snapshots attribute object
        • id string(uuid)

          Block storage snapshot ID

      • id string(uuid)

        Volume ID

      • created-at string(date-time)

        Volume creation date

GET /block-storage
curl \
 -X GET https://api-ch-gva-2.exoscale.com/v2/block-storage
Response examples (200)
{
  "block-storage-volumes": [
    {
      "labels": {
        "additionalProperty1": "string",
        "additionalProperty2": "string"
      },
      "instance": {
        "id": "string"
      },
      "name": "string",
      "state": "snapshotting",
      "size": 42,
      "blocksize": 42,
      "block-storage-snapshots": [
        {
          "id": "string"
        }
      ],
      "id": "string",
      "created-at": "2024-05-04T09:42:00+00:00"
    }
  ]
}