vmjuggler.VMSnapshot¶
-
class
vmjuggler.VMSnapshot(vc_object)¶ VM Snapshot object.
Parameters: vc_object – SnapshotList object. -
info()¶ Print out snapshot info.
Returns: n/a
-
name¶ Object’s name. Populated once instance created.
-
raw_obj¶ Raw object. Populated once instance created.
-
remove(remove_children=False, consolidate=False)¶ Remove snapshot.
Parameters: - remove_children (bool) – If set, the children snapshots will be removed too.
- consolidate (bool) – If set, disk images will be consolidated after snapshot removed.
Returns: True on success, otherwise False
-
rename(name=None, description=None)¶ Rename snapshot or change description.
Parameters: - name (str) – New snapshot name.
- description (str) – New Description.
Returns: True on success, otherwise False
-
revert(suppress_power_on=False)¶ Revert snapshot.
Parameters: suppress_power_on (bool) – If set, VM will not be powered on in case snapshot was created in VM powered on state. Returns: True on success, otherwise False
-