Save VM disk as custom image
Save a VM’s disk (live state or a snapshot) as a reusable custom OS image. The new image becomes available alongside the public OS templates and can be passed as template_id when creating a new VM.
Sources
Pick what to capture with disk_id and snapshot_id:
disk_id: 0— the OS diskdisk_id: 1+— an attached volumesnapshot_id: -1— capture the current live disk state (stop the VM first for a consistent image)snapshot_id: <id>— capture from a specific saved snapshot
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
VM ID (UUID)
Body
Custom image name.
1 - 128"web-server-baseline"
Optional description for the saved image.
Which disk to capture. 0 for the OS disk, 1+ for attached volumes.
Source for the image. -1 captures the current live disk state. Pass a snapshot ID to capture from a saved snapshot.