Add snapshot lists and timestamp

Adds snapshots to the list of data in VM objects
This commit is contained in:
2024-05-21 13:14:55 -04:00
parent 0c240a5129
commit 6fc7f45027
5 changed files with 131 additions and 4 deletions

View File

@ -1600,6 +1600,32 @@ class API_VM_Root(Resource):
items:
type: object
id: VMTag
properties:
name:
type: string
description: The name of the snapshot
timestamp:
type: string
descrpition: Unix timestamp of the snapshot
is_backup:
type: boolean
description: Whether the snapshot is from a backup or not (manual)
rbd_snapshots:
type: array
items:
type: string
description: A list of RBD volume snapshots belonging to this VM snapshot, in '<pool>/<volume>@<snapshot>' format
xml_diff_lines:
type: array
items:
type: string
description: A list of strings representing the lines of an (n=1) unified diff between the current VM XML specification and the snapshot VM XML specification
snapshots:
type: array
description: The snapshot(s) of the VM
items:
type: object
id: VMSnapshot
properties:
name:
type: string