ボリューム詳細取得

Description

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

Request URL

Block Storage API v2

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

Request Json

This operation does not accept a request body.

Request Parameters

Parameter Value Style Description
X-Auth-Token Userトークン header トークン発行 にて払い出されたID
tenant_id Tenant ID URI API情報を確認する にてご確認ください。
volume_id ボリュームID URI ボリューム詳細一覧取得にてご確認ください。

Response

  • Normal response codes
200

Example

  • Request
curl -i -X GET \
-H "Accept: application/json" \
-H "X-Auth-Token: トークンID" \
https://block-storage.jpt1.cloud.z.com/v2/テナントID/volumes/ボリュームID
  • Response
HTTP/1.1 200 OK
Date: Thu, 07 Jul 2016 01:14:42 GMT
Server: Apache
Content-Length: 1377
Content-Type: application/json

{
    "volume": {
        "attachments": [], 
        "availability_zone": "nova", 
        "bootable": "true", 
        "consistencygroup_id": null, 
        "created_at": "2016-07-06T06:47:22.000000", 
        "description": null, 
        "encrypted": false, 
        "id": "ボリュームID", 
        "links": [
            {
                "href": "https://block-storage.jpt1.cloud.z.com/v2/テナントID/volumes/ボリュームID", 
                "rel": "self"
            }, 
            {
                "href": "https://block-storage.jpt1.cloud.z.com/v2/テナントID/volumes/ボリュームID", 
                "rel": "bookmark"
            }
        ], 
        "metadata": {}, 
        "name": "ボリューム名", 
        "os-vol-tenant-attr:tenant_id": "テナントID", 
        "os-volume-replication:driver_data": null, 
        "os-volume-replication:extended_status": null, 
        "replication_status": "disabled", 
        "size": ボリュームサイズ, 
        "snapshot_id": null, 
        "source_volid": null, 
        "status": "available", 
        "user_id": "fe9256e97cbc4b2c8c68743e85311b84", 
        "volume_image_metadata": {
            "bootable": "true", 
            "checksum": "4aaa4cdb95d3ddc0d59f8c6533a79afc", 
            "container_format": "ovf", 
            "disk_format": "qcow2", 
            "display_order": "400", 
            "dst": "CentOS-7.2-100GB-64bit", 
            "hw_qemu_guest_agent": "yes", 
            "image_id": "イメージID", 
            "image_name": "vmi-centos-7.2-amd64", 
            "min_disk": "100", 
            "min_ram": "0", 
            "os_type": "lin", 
            "size": "2137980928"
        }, 
        "volume_type": "ボリュームタイプ名"
    }
}

Internet for everyone

Copyright (c) 2024 GMO Internet Group, Inc. All Rights Reserved.