v12

latestOpenAPI 3.0.3raw.githubusercontent.com2026-06-1811583196.1 KB
Volumes

Detach volume from VM

Detach a volume from its current VM. Unmount the filesystem inside the guest before calling this endpoint to avoid data corruption.

post/api/v1/volumes/{id}/detach

Path parameters

idinteger required

Volume ID

Headers

X-Project-IDstring uuid required

Project ID. Required for all mutating operations (create, delete, power actions, resize).

Response

Volume detached

successboolean

Example response

{
  "data": {
    "name": "data-vol-1",
    "volume_type": "nvme",
    "size": 100
  }
}