Attach volume to VM
Volumes
Attach Volume
Attach a volume to a VM. The VM must be in the same region as the volume. A volume can only be attached to one VM at a time — detach it first if it’s already attached elsewhere.
Inside the guest, the volume appears as /dev/vdb, /dev/vdc, etc. (virtio-blk).
POST
Attach volume to VM
Updated May 8, 2026
Authorizations
API key for authentication. Each key is bound to a specific account.
Headers
Project ID. Required for all mutating operations (create, delete, power actions, resize).
Path Parameters
Volume ID
Body
application/json
UUID of the VM to attach this volume to. VM must be in the same region as the volume.
Last modified on May 8, 2026