ConoHa API Documantation

ボリューム一覧取得 - Block Storage API v2

Description

tenant_id を指定しボリューム一覧を取得

Request URL

Block Storage API v2

GET /v2/{tenant_id}/volumes

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
tenant_id テナントID URI テナントID

Normal response codes

OK (200)

Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。

  • REQ
curl -i -X GET  \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
-H "Accept: application/json" \
https://block-storage.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/volumes
  • RES
HTTP/1.1 200 OK
Date: Tue, 09 Dec 2014 04:45:48 GMT
Server: Apache
Content-Length: 680
Content-Type: application/json

{
    "volumes": [
        {
            "id": "9bcd5857-37d1-4c2f-9f16-6d2f6e3cc115",
            "links": [
                {
                    "href": "https://block-storage.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/volumes/9bcd5857-37d1-4c2f-9f16-6d2f6e3cc115",
                    "rel": "self"
                },
                {
                    "href": "https://block-storage.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/volumes/9bcd5857-37d1-4c2f-9f16-6d2f6e3cc115",
                    "rel": "bookmark"
                }
            ],
            "name": "adddisk-vps-2015-05-08-09-59-ADD0G"
        },
        {
            "id": "ba21d324-84ea-441d-909b-ce235ba95346",
            "links": [
                {
                    "href": "https://block-storage.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/volumes/ba21d324-84ea-441d-909b-ce235ba95346",
                    "rel": "self"
                },
                {
                    "href": "https://block-storage.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/volumes/ba21d324-84ea-441d-909b-ce235ba95346",
                    "rel": "bookmark"
                }
            ],
            "name": "adddisk-vps-2015-05-07-19-52"
        },
        {
            "id": "a86e6a45-1c8b-4ae5-9411-a796220b719b",
            "links": [
                {
                    "href": "https://block-storage.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/volumes/a86e6a45-1c8b-4ae5-9411-a796220b719b",
                    "rel": "self"
                },
                {
                    "href": "https://block-storage.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/volumes/a86e6a45-1c8b-4ae5-9411-a796220b719b",
                    "rel": "bookmark"
                }
            ],
            "name": "adddisk-vps-2015-05-07-19-27"
        },
        {
            "id": "997d6052-4b17-4500-8d41-c08fb9667aae",
            "links": [
                {
                    "href": "https://block-storage.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/volumes/997d6052-4b17-4500-8d41-c08fb9667aae",
                    "rel": "self"
                },
                {
                    "href": "https://block-storage.tyo1.conoha.io/1864e71d2deb46f6b47526b69c65a45d/volumes/997d6052-4b17-4500-8d41-c08fb9667aae",
                    "rel": "bookmark"
                }
            ],
            "name": "adddisk-vps-2015-05-07-18-22"
        }
    ]
}