kvm.snapshot-list
List available snapshots of a KVM virtual machine.
JSON-RPC Request
{"jsonrpc":"2.0","id":1,"method":"kvm.snapshot_list","params":{"hostname":"kvm1"}}
Request Parameters
| Argument | Type | Description | Required |
|---|---|---|---|
hostname | String | The name of the virtual machine. | Yes |
JSON-RPC Response
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"name": "disk0.kvm1-2024-10-30-161923.764",
"state": "running",
"creation_time": "2024-10-30T12:19:23-04:00",
"location": "internal",
"current": false
}
]
}
RVC CLI Example
rvc kvm snapshot-list --hostname kvm1
Response
Name Creation Time State Current
---------------------------------------------------------------------------------------
disk0.kvm1-2024-10-30-161923.764 2024-10-30T12:19:23-04:00 running yes