Skip to main content

VM Snapshot

Point-in-time snapshots of a virtual machine's disk and (optionally) memory state.

Resource base path: /restapi/vmsnapshot

MethodPathDescription
POST/restapi/vmsnapshot/createVmSnapshotCreate VM Snapshot
GET/restapi/vmsnapshot/vmsnapshotListVM Snapshot List
GET/restapi/vmsnapshot/revertToVmSnapshotRevert VM Snapshot
DELETE/restapi/vmsnapshot/deleteVmSnapshot/{uuid}Delete VM Snapshot
note

apikey and secretkey are required HTTP headers on every request and are omitted from the parameter tables below. See Authentication.


Create VM Snapshot

Create VM Snapshot.

POST /restapi/vmsnapshot/createVmSnapshot

Request body

FieldTypeRequiredDescription
snapshotMemorybooleanNo
namestringNoName of the resource.
zoneUuidstringNoUUID of the zone the resource belongs to.
virtualmachineUuidstringNoUUID of the virtual-machine instance.
descriptionstringNoHuman-readable description.
{
"snapshotMemory": true,
"name": "example-name",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"virtualmachineUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "string"
}

Example request

curl -X POST \
"https://portal.your-domain.com/restapi/vmsnapshot/createVmSnapshot" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"snapshotMemory": true,
"name": "example-name",
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"virtualmachineUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "string"
}'

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"count": 1,
"listVmSnapshotResponse": [
{
"jobId": "string",
"isCurrent": true,
"domainName": "example-name",
"name": "example-name",
"createdTimeStamp": 1,
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "string",
"isActive": true,
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "Active"
}
]
}

VM Snapshot List

VM Snapshot List.

GET /restapi/vmsnapshot/vmsnapshotList

Parameters

ParameterInTypeRequiredDescription
zoneUuidquerystring✅ YesUUID of the zone the resource belongs to.
uuidquerystringNoUUID of the resource.
jobIdquerystringNoJob ID returned by the asynchronous operation.

Example request

curl -X GET \
"https://portal.your-domain.com/restapi/vmsnapshot/vmsnapshotList?zoneUuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"count": 1,
"listVmSnapshotResponse": [
{
"jobId": "string",
"isCurrent": true,
"domainName": "example-name",
"name": "example-name",
"createdTimeStamp": 1,
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "string",
"isActive": true,
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "Active"
}
]
}

Revert VM Snapshot

Revert VM Snapshot.

GET /restapi/vmsnapshot/revertToVmSnapshot

Parameters

ParameterInTypeRequiredDescription
uuidquerystring✅ YesUUID of the resource.

Example request

curl -X GET \
"https://portal.your-domain.com/restapi/vmsnapshot/revertToVmSnapshot?uuid=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"count": 1,
"listVmSnapshotResponse": [
{
"jobId": "string",
"isCurrent": true,
"domainName": "example-name",
"name": "example-name",
"createdTimeStamp": 1,
"zoneUuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"description": "string",
"isActive": true,
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "Active"
}
]
}

Delete VM Snapshot

Delete VM Snapshot.

DELETE /restapi/vmsnapshot/deleteVmSnapshot/{uuid}

Parameters

ParameterInTypeRequiredDescription
uuidpathstring✅ YesUUID of the resource.

Example request

curl -X DELETE \
"https://portal.your-domain.com/restapi/vmsnapshot/deleteVmSnapshot/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
-H "apikey: YOUR_API_KEY" \
-H "secretkey: YOUR_SECRET_KEY"

Responses

CodeDescription
200Successful operation.
401Invalid authentication credentials.
550Permission denied.
{
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "Active"
}