Overview
The OpenStack Block Storage API provides programmatic management of persistent storage volumes, volume snapshots, volume backups, volume types, and QoS specifications. Volumes attach to compute instances as block devices — independent of instance lifecycle.Prerequisites
- A valid project-scoped token from the Identity API
- Base URL:
https://api.<your-domain>/volume/v3 - All operations are project-scoped unless using admin credentials
Key Endpoints
Create a Volume
string
Display name for the volume.
integer
required
Volume size in gigabytes.
string
Volume type name or ID. Determines the storage backend and QoS policy.
string
Target availability zone. Must match the compute availability zone to attach.
string
Clone from an existing volume by providing its ID.
string
Create from a snapshot by providing the snapshot ID.
object
Key-value metadata pairs for custom tagging.
Volume Operations
- Attach / Detach
- Extend
- Retype
- Clone
Volumes are attached to instances via the Compute API. The Storage API provides the
os-reserve and os-attach actions for low-level attachment management.Attach volume via Compute API (recommended)
Detach volume from instance
Always detach a volume from the guest OS before issuing the API detach call to prevent filesystem corruption.
Snapshots
Create a volume snapshot
Create volume from snapshot
Backups
Backups are stored in Polystack Object Storage and are independent of volume availability.Create a full backup
Create incremental backup (faster, less storage)
Restore backup to a new volume
Volume Status Reference
Next Steps
Compute API
Attach volumes to compute instances via the Compute API
Networking API
Configure networks for your storage-backed instances
Storage QoS
Configure IOPS and throughput limits for volume types
