API ReferenceVm
Snapshot_vm
Create a snapshot of a VM. The snapshot is stored in a special snapshots folder and cannot be booted directly, but can be used to create new VMs.
Path Parameters
vm_id*string
Request Body
application/json
name?string|null
Optional name/label for the snapshot
Response Body
application/json
application/json
application/json
curl -X POST "https://api.freestyle.sh/v1/vms/string/snapshot" \ -H "Content-Type: application/json" \ -d '{}'{
"snapshotId": "string",
"sourceVmId": "string"
}{
"error": "string",
"message": "string"
}{
"error": "string",
"message": "string"
}