3.42.4. Show volume information

 
MethodURIDescription
GET/v1.1/{tenant_id}/os-volumes/{volume_id}

Shows information for a specified volume.

Normal response codes: 200

 3.42.4.1. Request

This table shows the URI parameters for the show volume information request:

NameTypeDescription

{tenant_id}

​String

The unique identifier of the tenant or account.

{volume_id}

​String

The unique identifier for a volume.

This operation does not require a request body.

 3.42.4.2. Response

 

Example 3.348. Show volume information: JSON response

{
    "volume": {
        "id": "521752a6-acf6-4b2d-bc7a-119f9148cd8c",
        "display_name": "vol-001",
        "display_description": "Another volume.",
        "size": 30,
        "volume_type": "289da7f8-6440-407c-9fb4-7db01ec49164",
        "metadata": {"contents": "junk"},
        "availability_zone": "us-east1",
        "snapshot_id": null,
        "attachments": [],
        "created_at": "2012-02-14T20:53:07Z"
     }
}

 

Example 3.349. Show volume information: XML response

<?xml version="1.0" encoding="UTF-8"?>
<volume xmlns="http://docs.openstack.org/volume/api/v1"
        id="521752a6-acf6-4b2d-bc7a-119f9148cd8c"
        display_name="vol-001"
        display_description="Another volume."
        status="active"
        size="30"
        volume_type="289da7f8-6440-407c-9fb4-7db01ec49164"
        availability_zone="us-east1"
        created_at="2012-02-14T20:53:07Z">
    <metadata>
        <meta key="contents">junk</meta>
    </metadata>
</volume>

This operation does not return a response body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...