Volumes
Volume management
Lists summary information for all Block Storage volumes
OpenStack authentication token
Shows details for all project. Admin only.
Comma-separated list of sort keys and optional sort directions
Sorts by an attribute
Sorts by direction (asc or desc)
Requests a page size of items
Used in conjunction with limit to return items starting from the offset position
The ID of the last-seen item
Whether to show count in response (microversion 3.45+)
Filters results by creation time with comparison operators
Filters results by update time with comparison operators
Filters results by whether resource consumes quota (microversion 3.65+)
OK
Some content in the request was invalid
GET /v3/v3/volumes HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
{
"volumes": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
],
"volumes_links": [
{
"href": "https://example.com",
"rel": "text",
"type": "text"
}
],
"count": 1
}Creates a volume
OpenStack authentication token
Scheduler hints
Accepted
POST /v3/v3/volumes HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 470
{
"volume": {
"size": 1,
"name": "text",
"description": "text",
"availability_zone": "text",
"volume_type": "text",
"source_volid": "123e4567-e89b-12d3-a456-426614174000",
"snapshot_id": "123e4567-e89b-12d3-a456-426614174000",
"backup_id": "123e4567-e89b-12d3-a456-426614174000",
"imageRef": "123e4567-e89b-12d3-a456-426614174000",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"consistencygroup_id": "123e4567-e89b-12d3-a456-426614174000",
"multiattach": true
},
"OS-SCH-HNT:scheduler_hints": {}
}Accepted
{
"volume": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"size": 1,
"status": "text",
"volume_type": "text",
"volume_type_id": "123e4567-e89b-12d3-a456-426614174000",
"availability_zone": "text",
"bootable": "text",
"encrypted": true,
"encryption_key_id": "123e4567-e89b-12d3-a456-426614174000",
"multiattach": true,
"attachments": [
{
"server_id": "123e4567-e89b-12d3-a456-426614174000",
"attachment_id": "123e4567-e89b-12d3-a456-426614174000",
"attached_at": "2025-11-28T20:22:24.128Z",
"host_name": "text",
"volume_id": "123e4567-e89b-12d3-a456-426614174000",
"device": "text",
"id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"created_at": "2025-11-28T20:22:24.128Z",
"updated_at": "2025-11-28T20:22:24.128Z",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"consistencygroup_id": "123e4567-e89b-12d3-a456-426614174000",
"group_id": "123e4567-e89b-12d3-a456-426614174000",
"snapshot_id": "123e4567-e89b-12d3-a456-426614174000",
"source_volid": "123e4567-e89b-12d3-a456-426614174000",
"replication_status": "text",
"migration_status": "text",
"os-vol-host-attr:host": "text",
"os-vol-tenant-attr:tenant_id": "123e4567-e89b-12d3-a456-426614174000",
"os-vol-mig-status-attr:migstat": "text",
"os-vol-mig-status-attr:name_id": "text",
"volume_image_metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"provider_id": "text",
"service_uuid": "123e4567-e89b-12d3-a456-426614174000",
"shared_targets": true,
"cluster_name": "text",
"consumes_quota": true,
"links": [
{
"href": "https://example.com",
"rel": "text",
"type": "text"
}
]
}
}Lists all Block Storage volumes with details
OpenStack authentication token
Shows details for all project. Admin only.
Comma-separated list of sort keys and optional sort directions
Sorts by an attribute
Sorts by direction (asc or desc)
Requests a page size of items
Used in conjunction with limit to return items starting from the offset position
The ID of the last-seen item
Whether to show count in response (microversion 3.45+)
Filters results by creation time with comparison operators
Filters results by update time with comparison operators
Filters results by whether resource consumes quota (microversion 3.65+)
OK
Some content in the request was invalid
GET /v3/v3/volumes/detail HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
{
"volumes": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"size": 1,
"status": "text",
"volume_type": "text",
"volume_type_id": "123e4567-e89b-12d3-a456-426614174000",
"availability_zone": "text",
"bootable": "text",
"encrypted": true,
"encryption_key_id": "123e4567-e89b-12d3-a456-426614174000",
"multiattach": true,
"attachments": [
{
"server_id": "123e4567-e89b-12d3-a456-426614174000",
"attachment_id": "123e4567-e89b-12d3-a456-426614174000",
"attached_at": "2025-11-28T20:22:24.128Z",
"host_name": "text",
"volume_id": "123e4567-e89b-12d3-a456-426614174000",
"device": "text",
"id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"created_at": "2025-11-28T20:22:24.128Z",
"updated_at": "2025-11-28T20:22:24.128Z",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"consistencygroup_id": "123e4567-e89b-12d3-a456-426614174000",
"group_id": "123e4567-e89b-12d3-a456-426614174000",
"snapshot_id": "123e4567-e89b-12d3-a456-426614174000",
"source_volid": "123e4567-e89b-12d3-a456-426614174000",
"replication_status": "text",
"migration_status": "text",
"os-vol-host-attr:host": "text",
"os-vol-tenant-attr:tenant_id": "123e4567-e89b-12d3-a456-426614174000",
"os-vol-mig-status-attr:migstat": "text",
"os-vol-mig-status-attr:name_id": "text",
"volume_image_metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"provider_id": "text",
"service_uuid": "123e4567-e89b-12d3-a456-426614174000",
"shared_targets": true,
"cluster_name": "text",
"consumes_quota": true,
"links": [
{
"href": "https://example.com",
"rel": "text",
"type": "text"
}
]
}
],
"volumes_links": [
{
"href": "https://example.com",
"rel": "text",
"type": "text"
}
],
"count": 1
}Display volumes summary with total number and size (microversion 3.12+)
OpenStack authentication token
Shows details for all project. Admin only.
OK
GET /v3/v3/volumes/summary HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
OK
{
"volume-summary": {
"total_size": 1,
"total_count": 1,
"metadata": {
"ANY_ADDITIONAL_PROPERTY": [
"text"
]
}
}
}Shows details for a volume
OpenStack authentication token
The UUID of the volume
OK
GET /v3/v3/volumes/{volume_id} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
OK
{
"volume": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"size": 1,
"status": "text",
"volume_type": "text",
"volume_type_id": "123e4567-e89b-12d3-a456-426614174000",
"availability_zone": "text",
"bootable": "text",
"encrypted": true,
"encryption_key_id": "123e4567-e89b-12d3-a456-426614174000",
"multiattach": true,
"attachments": [
{
"server_id": "123e4567-e89b-12d3-a456-426614174000",
"attachment_id": "123e4567-e89b-12d3-a456-426614174000",
"attached_at": "2025-11-28T20:22:24.128Z",
"host_name": "text",
"volume_id": "123e4567-e89b-12d3-a456-426614174000",
"device": "text",
"id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"created_at": "2025-11-28T20:22:24.128Z",
"updated_at": "2025-11-28T20:22:24.128Z",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"consistencygroup_id": "123e4567-e89b-12d3-a456-426614174000",
"group_id": "123e4567-e89b-12d3-a456-426614174000",
"snapshot_id": "123e4567-e89b-12d3-a456-426614174000",
"source_volid": "123e4567-e89b-12d3-a456-426614174000",
"replication_status": "text",
"migration_status": "text",
"os-vol-host-attr:host": "text",
"os-vol-tenant-attr:tenant_id": "123e4567-e89b-12d3-a456-426614174000",
"os-vol-mig-status-attr:migstat": "text",
"os-vol-mig-status-attr:name_id": "text",
"volume_image_metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"provider_id": "text",
"service_uuid": "123e4567-e89b-12d3-a456-426614174000",
"shared_targets": true,
"cluster_name": "text",
"consumes_quota": true,
"links": [
{
"href": "https://example.com",
"rel": "text",
"type": "text"
}
]
}
}Updates a volume
OpenStack authentication token
The UUID of the volume
OK
PUT /v3/v3/volumes/{volume_id} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 93
{
"volume": {
"name": "text",
"description": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
}OK
{
"volume": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"description": "text",
"size": 1,
"status": "text",
"volume_type": "text",
"volume_type_id": "123e4567-e89b-12d3-a456-426614174000",
"availability_zone": "text",
"bootable": "text",
"encrypted": true,
"encryption_key_id": "123e4567-e89b-12d3-a456-426614174000",
"multiattach": true,
"attachments": [
{
"server_id": "123e4567-e89b-12d3-a456-426614174000",
"attachment_id": "123e4567-e89b-12d3-a456-426614174000",
"attached_at": "2025-11-28T20:22:24.128Z",
"host_name": "text",
"volume_id": "123e4567-e89b-12d3-a456-426614174000",
"device": "text",
"id": "123e4567-e89b-12d3-a456-426614174000"
}
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"created_at": "2025-11-28T20:22:24.128Z",
"updated_at": "2025-11-28T20:22:24.128Z",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"consistencygroup_id": "123e4567-e89b-12d3-a456-426614174000",
"group_id": "123e4567-e89b-12d3-a456-426614174000",
"snapshot_id": "123e4567-e89b-12d3-a456-426614174000",
"source_volid": "123e4567-e89b-12d3-a456-426614174000",
"replication_status": "text",
"migration_status": "text",
"os-vol-host-attr:host": "text",
"os-vol-tenant-attr:tenant_id": "123e4567-e89b-12d3-a456-426614174000",
"os-vol-mig-status-attr:migstat": "text",
"os-vol-mig-status-attr:name_id": "text",
"volume_image_metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"provider_id": "text",
"service_uuid": "123e4567-e89b-12d3-a456-426614174000",
"shared_targets": true,
"cluster_name": "text",
"consumes_quota": true,
"links": [
{
"href": "https://example.com",
"rel": "text",
"type": "text"
}
]
}
}Deletes a volume
OpenStack authentication token
The UUID of the volume
Remove any snapshots along with the volume
falseForce delete even if volume is in deleting or error_deleting state (microversion 3.23+)
falseRequest is accepted, but processing may take some time
DELETE /v3/v3/volumes/{volume_id} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
Request is accepted, but processing may take some time
No content
Performs various actions on a volume
OpenStack authentication token
The UUID of the volume
OK (for show operations)
Request is accepted, but processing may take some time
Some content in the request was invalid
Policy does not allow current user to do this operation
The requested resource could not be found
This resource has an action in progress that would conflict with this request
POST /v3/v3/volumes/{volume_id}/action HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"os-extend": {
"new_size": 1
}
}{}Shows metadata for a volume
OpenStack authentication token
The UUID of the volume
OK
GET /v3/v3/volumes/{volume_id}/metadata HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
OK
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Creates or replaces metadata for a volume
OpenStack authentication token
The UUID of the volume
OK
POST /v3/v3/volumes/{volume_id}/metadata HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}OK
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Replaces all the volume's metadata with the provided key-value pairs
OpenStack authentication token
The UUID of the volume
OK
PUT /v3/v3/volumes/{volume_id}/metadata HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}OK
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Shows metadata for a volume for a specific key
OpenStack authentication token
The UUID of the volume
The metadata key name
OK
GET /v3/v3/volumes/{volume_id}/metadata/{key} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
OK
{
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Update metadata for a volume for a specific key
OpenStack authentication token
The UUID of the volume
The metadata key name
OK
PUT /v3/v3/volumes/{volume_id}/metadata/{key} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}OK
{
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Deletes metadata for a volume
OpenStack authentication token
The UUID of the volume
The metadata key name
OK
No content
DELETE /v3/v3/volumes/{volume_id}/metadata/{key} HTTP/1.1
Host: example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
OK
No content
Last updated
Was this helpful?
