Vm
API Methods¶
| Method | Action | Description |
|---|---|---|
create_snapshot | create snapshot | Initiates the creation of a snapshot for the specified virtual machine. |
get_snapshot | get snapshot list | Requests the list of existing snapshots for a virtual machine. |
load_stats | load statistics | Requests the current resource usage statistics for a virtual machine. |
remove_snapshot | remove snapshot | Initiates the deletion of the specified snapshot. |
restore_snapshot | restore snapshot | Initiates the restoration of the virtual machine state from a snapshot. |
vm/create_snapshot¶
Initiates the creation of a snapshot for the specified virtual machine.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: create_snapshot |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Virtual machine identifier |
| name | ✅ | string | Snapshot name (characters a-zA-Z0-9_-.) |
| type | ❌ | string | Snapshot type (default 'snapshot') |
Example Request
Example of a successful response
Failure response
vm/get_snapshot¶
Requests the list of existing snapshots for a virtual machine.
HTTP Method: GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: get_snapshot |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Virtual machine identifier |
| type | ❌ | string | Snapshot type (default 'snapshot') |
Example Request
Example of a successful response
vm/load_stats¶
Requests the current resource usage statistics for a virtual machine.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: load_stats |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Virtual machine identifier |
Example Request
Example of a successful response
vm/remove_snapshot¶
Initiates the deletion of the specified snapshot.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: remove_snapshot |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Virtual machine identifier |
| name | ✅ | string | Snapshot name to remove |
| type | ❌ | string | Snapshot type (default 'snapshot') |
Example Request
Example of a successful response
Failure response
vm/restore_snapshot¶
Initiates the restoration of the virtual machine state from a snapshot.
HTTP Method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: restore_snapshot |
| token | ✅ | string | Authorization token |
| id | ✅ | int | Virtual machine identifier |
| name | ✅ | string | Snapshot name to restore |
| type | ❌ | string | Snapshot type (default 'snapshot') |
| backup_id | ❌ | string | Additional backup identifier |
Example Request