Volumes

Volume management

List volumes

get

Lists summary information for all Block Storage volumes

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Query parameters
all_tenantsstringOptional

Shows details for all project. Admin only.

sortstringOptional

Comma-separated list of sort keys and optional sort directions

sort_keystringOptional

Sorts by an attribute

sort_dirstring · enumOptional

Sorts by direction (asc or desc)

Possible values:
limitinteger · min: 1Optional

Requests a page size of items

offsetintegerOptional

Used in conjunction with limit to return items starting from the offset position

markerstringOptional

The ID of the last-seen item

with_countbooleanOptional

Whether to show count in response (microversion 3.45+)

created_atstringOptional

Filters results by creation time with comparison operators

updated_atstringOptional

Filters results by update time with comparison operators

consumes_quotabooleanOptional

Filters results by whether resource consumes quota (microversion 3.65+)

Responses
200

OK

application/json
get
/v3/volumes

Create volume

post

Creates a volume

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Body
OS-SCH-HNT:scheduler_hintsobjectOptional

Scheduler hints

Responses
post
/v3/volumes
202

Accepted

List volumes with details

get

Lists all Block Storage volumes with details

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Query parameters
all_tenantsstringOptional

Shows details for all project. Admin only.

sortstringOptional

Comma-separated list of sort keys and optional sort directions

sort_keystringOptional

Sorts by an attribute

sort_dirstring · enumOptional

Sorts by direction (asc or desc)

Possible values:
limitinteger · min: 1Optional

Requests a page size of items

offsetintegerOptional

Used in conjunction with limit to return items starting from the offset position

markerstringOptional

The ID of the last-seen item

with_countbooleanOptional

Whether to show count in response (microversion 3.45+)

created_atstringOptional

Filters results by creation time with comparison operators

updated_atstringOptional

Filters results by update time with comparison operators

consumes_quotabooleanOptional

Filters results by whether resource consumes quota (microversion 3.65+)

Responses
200

OK

application/json
get
/v3/volumes/detail

Show volumes summary

get

Display volumes summary with total number and size (microversion 3.12+)

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Query parameters
all_tenantsstringOptional

Shows details for all project. Admin only.

Responses
200

OK

application/json
get
/v3/volumes/summary
200

OK

Show volume details

get

Shows details for a volume

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
volume_idstring · uuidRequired

The UUID of the volume

Responses
200

OK

application/json
get
/v3/volumes/{volume_id}
200

OK

Update volume

put

Updates a volume

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
volume_idstring · uuidRequired

The UUID of the volume

Body
Responses
200

OK

application/json
put
/v3/volumes/{volume_id}
200

OK

Delete volume

delete

Deletes a volume

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
volume_idstring · uuidRequired

The UUID of the volume

Query parameters
cascadebooleanOptional

Remove any snapshots along with the volume

Default: false
forcebooleanOptional

Force delete even if volume is in deleting or error_deleting state (microversion 3.23+)

Default: false
Responses
delete
/v3/volumes/{volume_id}
202

Request is accepted, but processing may take some time

No content

Perform volume action

post

Performs various actions on a volume

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
volume_idstring · uuidRequired

The UUID of the volume

Body
or
or
or
or
or
or
or
or
Responses
200

OK (for show operations)

application/json
Responseobject
post
/v3/volumes/{volume_id}/action

Show volume metadata

get

Shows metadata for a volume

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
volume_idstring · uuidRequired

The UUID of the volume

Responses
200

OK

application/json
get
/v3/volumes/{volume_id}/metadata
200

OK

Create or update volume metadata

post

Creates or replaces metadata for a volume

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
volume_idstring · uuidRequired

The UUID of the volume

Body
Responses
200

OK

application/json
post
/v3/volumes/{volume_id}/metadata
200

OK

Replace volume metadata

put

Replaces all the volume's metadata with the provided key-value pairs

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
volume_idstring · uuidRequired

The UUID of the volume

Body
Responses
200

OK

application/json
put
/v3/volumes/{volume_id}/metadata
200

OK

Show volume metadata item

get

Shows metadata for a volume for a specific key

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
volume_idstring · uuidRequired

The UUID of the volume

keystringRequired

The metadata key name

Responses
200

OK

application/json
get
/v3/volumes/{volume_id}/metadata/{key}
200

OK

Update volume metadata item

put

Update metadata for a volume for a specific key

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
volume_idstring · uuidRequired

The UUID of the volume

keystringRequired

The metadata key name

Body
Responses
200

OK

application/json
put
/v3/volumes/{volume_id}/metadata/{key}
200

OK

Delete volume metadata item

delete

Deletes metadata for a volume

Authorizations
X-Auth-TokenstringRequired

PCD Identity Service token authentication

Path parameters
volume_idstring · uuidRequired

The UUID of the volume

keystringRequired

The metadata key name

Responses
200

OK

No content

delete
/v3/volumes/{volume_id}/metadata/{key}
200

OK

No content

Last updated

Was this helpful?