Block storage volumes you can attach to a VM for extra disk space. A volume lives on its own, so its data survives detaching it or deleting the VM it was attached to. A volume can be attached to one VM at a time, and the VM must be in the same zone.
Creating, attaching, detaching and deleting volumes are asynchronous. They return
202 Accepted with an operation_id. Poll Get an operation
or Get a volume to follow progress. Send X-Idempotency to
make retries safe: a repeated request returns the original operation with 200 OK.
Endpoints
| Endpoint | Description |
|---|---|
GET /v1/volumes | List volumes |
POST /v1/volumes | Create a volume |
GET /v1/volumes/summary | Get the volume summary |
GET /v1/volumes/{uid} | Get a volume |
DELETE /v1/volumes/{uid} | Delete a volume |
POST /v1/volumes/{uid}/attach | Attach a volume |
POST /v1/volumes/{uid}/detach | Detach a volume |