Snapshots
Create snapshot
Create a snapshot of a VM or a volume.
- For a VM snapshot, set resource_type to vm and pass the VM UUID as resource_id.
- For a volume snapshot, set resource_type to volume and pass the integer volume_id.
post/api/v1/snapshots
Headers
X-Project-IDstring uuid required
Project ID. Required for all mutating operations (create, delete, power actions, resize).
Request body
Example request
{
"name": "pre-upgrade"
}Response
Snapshot created
Example response
{
"data": {
"status": "active"
}
}