api.node.snapshot
¶
/node/(hostname)/storage/(zpool)/snapshot¶
-
api.node.snapshot.views.
node_vm_snapshot_list
(*args, **kwargs)¶ List (
GET
) all VM snapshots on compute node storage or synchronize (PUT
) snapshots of all VM’s disks on a compute node storage with snapshots saved in database.-
GET
/node/
(hostname)/storage/
(zpool)/snapshot
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - hostname (string) – required - Node hostname
- data.full (boolean) – Return list of objects with all snapshot details (default: false)
- data.disk_id (integer) – Filter by disk number/ID
- data.type (integer) – Filter by snapshot type (1 - Automatic, 2 - Manual)
- data.vm (string) – Filter by server hostname
- data.define (string) – Filter by snapshot definition name
- data.order_by (string) – Available fields for sorting:
name
,disk_id
,hostname
,size
,created
(default:-created
)
Status Codes: - 200 OK – SUCCESS
- 403 Forbidden – Forbidden
- 404 Not Found – Storage not found
- 412 Precondition Failed – Invalid disk_id / Invalid snapshot type
-
PUT
/node/
(hostname)/storage/
(zpool)/snapshot
¶ DC-bound?: Permissions: Asynchronous?: Parameters: - hostname (string) – required - Node hostname
Status Codes: - 200 OK – SUCCESS
- 201 Created – PENDING
- 400 Bad Request – FAILURE
- 403 Forbidden – Forbidden
- 404 Not Found – Storage not found
- 423 Locked – Node is not operational
-