3.42.6. List volume types

 
MethodURIDescription
GET/v1.1/{tenant_id}/os-volume-types

Lists volume types.

Normal response codes: 200

 3.42.6.1. Request

This table shows the URI parameters for the list volume types request:

NameTypeDescription

{tenant_id}

​String

The unique identifier of the tenant or account.

This operation does not require a request body.

 3.42.6.2. Response

 

Example 3.351. List volume types: JSON response

{
    "volume_types": [
        {
            "id": "289da7f8-6440-407c-9fb4-7db01ec49164",
            "name": "vol-type-001",
            "extra_specs": {"capabilities": "gpu"}
        },
        {
            "id": "96c3bda7-c82a-4f50-be73-ca7621794835",
            "name": "vol-type-002",
            "extra_specs": {}
        }
    ]
}

 

Example 3.352. List volume types: XML response

<?xml version="1.0" encoding="UTF-8"?>
<volume_types xmlns="http://docs.openstack.org/volume/api/v1">
    <volume_type id="289da7f8-6440-407c-9fb4-7db01ec49164"
                 name="vol-type-001">
        <extra_specs>
            <extra_spec key="capabilities">gpu</extra_spec>
        </extra_specs>
    </volume_type>
    <volume_type id="96c3bda7-c82a-4f50-be73-ca7621794835"
                 name="vol-type-002" />
</volume_types>

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...