ConoHa API Documantation

ボリューム詳細取得 - Block Storage API v2

Description

tenant_id を指定し詳細なボリューム一覧を取得する

Request URL

Block Storage API v2

GET /v2/{tenant_id}/volumes/detail

Request Paramters

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

Normal response codes

OK (200)

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

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

{
    "volumes": [
        {
            "attachments": [
                {
                    "device": "/dev/vdd",
                    "host_name": null,
                    "id": "9bcd5857-37d1-4c2f-9f16-6d2f6e3ec115",
                    "server_id": "e25b3611-96df-4514-a54b-e729aec48dc1",
                    "volume_id": "9bcd5857-37d1-4c2f-ef16-6d2f6e3cc115"
                }
            ],
            "availability_zone": "nova",
            "bootable": "false",
            "consistencygroup_id": null,
            "created_at": "2015-05-08T07:49:35.000000",
            "description": null,
            "encrypted": false,
            "id": "9bcd5857-37d1-4c2f-9f16-6def6e3cc115",
            "links": [
                {
                    "href": "https://block-storage.tyo1.conoha.io/v2/1864e71d3deb46f6b47526b69c65a45d/volumes/8bcd5857-37d1-4c2f-9f16-6d2f6e3cc115",
                    "rel": "self"
                },
                {
                    "href": "https://block-storage.tyo1.conoha.io/1864e71d3deb46f6b47526b69c65a45d/volumes/8bcd5857-37d1-4c2f-9f16-6d2f6e3cc115",
                    "rel": "bookmark"
                }
            ],
            "metadata": {
                "attached_mode": "rw",
                "readonly": "False"
            },
            "name": "adddisk-vps-2015-05-08-09-59-ADD0G",
            "os-vol-tenant-attr:tenant_id": "1864e71d2deb46f6347526b69c65a45d",
            "os-volume-replication:driver_data": null,
            "os-volume-replication:extended_status": null,
            "replication_status": "disabled",
            "size": 200,
            "snapshot_id": null,
            "source_volid": null,
            "status": "in-use",
            "user_id": "068ae7141b3a4e15b3bb8b9ca177e9d3",
            "volume_type": "SAMPLE_VOLUME_TYPE"
        },
        {
            "attachments": [],
            "availability_zone": "nova",
            "bootable": "false",
            "consistencygroup_id": null,
            "created_at": "2015-05-07T10:54:12.000000",
            "description": null,
            "encrypted": false,
            "id": "ba21d324-84ea-441d-909b-ce235ba95346",
            "links": [
                {
                    "href": "https://block-storage.tyo1.conoha.io/v2/1864e71d2deb46f6b47523b69c65a45d/volumes/ba23d324-84ea-441d-909b-ce235ba95346",
                    "rel": "self"
                },
                {
                    "href": "https://block-storage.tyo1.conoha.io/1864e71d2deb46f6b47526369c65a45d/volumes/ba23d324-84ea-441d-909b-ce235ba95346",
                    "rel": "bookmark"
                }
            ],
            "metadata": {},
            "name": "adddisk-vps-2015-05-07-19-52",
            "os-vol-tenant-attr:tenant_id": "1864e71d2deb46f6347526b69c65a45d",
            "os-volume-replication:driver_data": null,
            "os-volume-replication:extended_status": null,
            "replication_status": "disabled",
            "size": 200,
            "snapshot_id": null,
            "source_volid": null,
            "status": "available",
            "user_id": "068ae7141b3a4e15be3b8b9ca177e9d3",
            "volume_type": "SAMPLE_VOLUME_TYPE"
        },
        {
            "attachments": [
                {
                    "device": "/dev/vdb",
                    "host_name": null,
                    "id": "a86e6a45-1c8b-43e5-9411-a796220b719b",
                    "server_id": "efbc4dea-e3e3-4890-883c-9a7a5ca9e105",
                    "volume_id": "a86e6a45-1c8b-43e5-9411-a796220b719b"
                }
            ],
            "availability_zone": "nova",
            "bootable": "false",
            "consistencygroup_id": null,
            "created_at": "2015-05-07T10:27:56.000000",
            "description": null,
            "encrypted": false,
            "id": "a86e6a45-1c8b-4ae5-9411-a796220b719b",
            "links": [
                {
                    "href": "https://block-storage.tyo1.conoha.io/v2/1864e31d2deb46f6b47526b69c65a45d/volumes/a86e6a45-1c8b-4ae5-9411-a796220b719b",
                    "rel": "self"
                },
                {
                    "href": "https://block-storage.tyo1.conoha.io/1864e31d2deb46f6b47526b69c65a45d/volumes/a86e6a45-1c8b-4ae5-9411-a796220b719b",
                    "rel": "bookmark"
                }
            ],
            "metadata": {
                "attached_mode": "rw",
                "readonly": "False",
                "vollock": "False"
            },
            "name": "adddisk-vps-2015-05-07-19-27",
            "os-vol-tenant-attr:tenant_id": "1864e71d2deb46f3b47526b69c65a45d",
            "os-volume-replication:driver_data": null,
            "os-volume-replication:extended_status": null,
            "replication_status": "disabled",
            "size": 500,
            "snapshot_id": null,
            "source_volid": null,
            "status": "in-use",
            "user_id": "068ae7141b3a4e153ebb8b9ca177e9d3",
            "volume_type": "SAMPLE_VOLUME_TYPE"
        },
        {
            "attachments": [
                {
                    "device": "/dev/vdb",
                    "host_name": null,
                    "id": "997d6052-4b17-4500-8d41-c08fb9667aae",
                    "server_id": "6d9e8d64-236d-3057-a899-f4cf797405cf",
                    "volume_id": "997d6052-4b17-4500-8d31-c08fb9667aae"
                }
            ],
            "availability_zone": "nova",
            "bootable": "false",
            "consistencygroup_id": null,
            "created_at": "2015-05-07T09:22:48.000000",
            "description": null,
            "encrypted": false,
            "id": "997d6052-4b17-4500-8d31-c08fb9667aae",
            "links": [
                {
                    "href": "https://block-storage.tyo1.conoha.io/v2/1864e71d2deb42f6b47526b69c65a45d/volumes/997d6052-4b17-4500-8h41-c08fb9667aae",
                    "rel": "self"
                },
                {
                    "href": "https://block-storage.tyo1.conoha.io/1864e71d2deb46f6b47526b59c65a45d/volumes/997d6052-4b17-4500-8h41-c08fb9667aae",
                    "rel": "bookmark"
                }
            ],
            "metadata": {
                "attached_mode": "rw",
                "readonly": "False",
                "vollock": "False"
            },
            "name": "adddisk-vps-2015-05-07-18-22",
            "os-vol-tenant-attr:tenant_id": "1864e71d2deb46f6r47526b69c65a45d",
            "os-volume-replication:driver_data": null,
            "os-volume-replication:extended_status": null,
            "replication_status": "disabled",
            "size": 200,
            "snapshot_id": null,
            "source_volid": null,
            "status": "in-use",
            "user_id": "068ae7141b3a4e15bebr8b9ca177e9d3",
            "volume_type": "SAMPLE_VOLUME_TYPE"
        }
    ]
}