Overview
The Xloud 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
| Resource | Method | Endpoint | Description |
|---|---|---|---|
| List volumes | GET | /volumes | List volumes in the current project |
| Volume detail | GET | /volumes/detail | List volumes with full metadata |
| Get volume | GET | /volumes/{id} | Get a specific volume |
| Create volume | POST | /volumes | Create a new volume |
| Extend volume | POST | /volumes/{id}/action | Extend volume size |
| Delete volume | DELETE | /volumes/{id} | Delete a volume |
| Attach volume | POST | /volumes/{id}/action | Reserve for attachment |
| List snapshots | GET | /snapshots | List volume snapshots |
| Create snapshot | POST | /snapshots | Create a volume snapshot |
| Delete snapshot | DELETE | /snapshots/{id} | Delete a snapshot |
| List backups | GET | /backups | List volume backups |
| Create backup | POST | /backups | Create a volume backup |
| Restore backup | POST | /backups/{id}/restore | Restore backup to a volume |
| Volume types | GET | /types | List available volume types |
| QoS specs | GET | /qos-specs | List QoS specifications (admin) |
| Quotas | GET | /os-quota-sets/{project_id} | Show project storage quotas |
Create a Volume
Display name for the volume.
Volume size in gigabytes.
Volume type name or ID. Determines the storage backend and QoS policy.
Target availability zone. Must match the compute availability zone to attach.
Clone from an existing volume by providing its ID.
Create from a snapshot by providing the snapshot ID.
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 Xloud 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
| Status | Description |
|---|---|
creating | Volume is being provisioned |
available | Ready to attach |
in-use | Currently attached to an instance |
deleting | Deletion in progress |
extending | Size extension in progress |
retyping | Volume type change in progress |
backing-up | Backup in progress |
restoring-backup | Backup restore in progress |
error | An error occurred — check volume events |
error_deleting | Deletion failed |
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
Automation
Automate backup workflows with scripts and scheduling