ConoHa API Documantation

ボリューム詳細取得(アイテム指定) - Block Storage API v2

Description

tenant_id, volume_id を指定してボリューム詳細を取得

Request URL

Block Storage API v2

GET /v2/​{tenant_id}​/volumes/​{volume_id}​

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
tenant_id テナントID URI テナントID
volume_id ボリュームID URI ボリュームID

Normal response codes

OK (200)

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

  • REQ
curl -i -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \
https://block-storage.tyo1.conoha.io/v2/1864e71d2deb46f6b47526b69c65a45d/volumes/997d6052-4b17-4500-8d41-c08fb9667aae
  • RES
HTTP/1.1 200 OK
X-Compute-Request-Id: req-fdae9a21-26fa-4b37-89e8-cf52c6385620
Content-Type: application/json
Content-Length: 1128
X-Openstack-Request-Id: req-fdae9a21-26fa-4b37-89e8-cf52c6385620
Date: Tue, 09 Dec 2014 10:06:13 GMT

{
    "volume": {
        "attachments": [
            {
                "device": "/dev/vdb",
                "host_name": null,
                "id": "997d6052-4b17-4500-8d41-c08fb9667aae",
                "server_id": "6d9e8d64-236d-4057-a899-f4cf797405cf",
                "volume_id": "997d6052-4b17-4500-8d41-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-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"
            }
        ],
        "metadata": {
            "attached_mode": "rw",
            "readonly": "False",
            "vollock": "False"
        },
        "name": "adddisk-vps-2015-05-07-18-22",
        "os-vol-tenant-attr:tenant_id": "1864e71d2deb46f6b47526b69c65a45d",
        "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": "068ae7141b3a4e15bebb8b9ca177e9d3",
        "volume_type": "SAMPLE_VOLUME_TYPE"
    }
}