vcf_vim_vm_snapshot

Execution module for VM snapshots (SOAP — REST has no snapshot surface).

saltext.vcf.modules.vcf_vim_vm_snapshot.list_(vm, profile=None)[source]

List .

CLI Example:

salt '*' vcf_vim_vm_snapshot.list_ <vm>
saltext.vcf.modules.vcf_vim_vm_snapshot.current(vm, profile=None)[source]

Current.

CLI Example:

salt '*' vcf_vim_vm_snapshot.current <vm>
saltext.vcf.modules.vcf_vim_vm_snapshot.create(vm, name, description='', memory=False, quiesce=False, vss_options=None, profile=None)[source]

Create.

Pass vss_options as a dict to use Windows VSS quiesce (CreateSnapshotEx_Task with WindowsQuiesceSpec).

CLI Example:

salt '*' vcf_vim_vm_snapshot.create <vm> <name> <description> <memory> <quiesce>
saltext.vcf.modules.vcf_vim_vm_snapshot.revert(vm, snapshot_name, suppress_power_on=False, profile=None)[source]

Revert.

CLI Example:

salt '*' vcf_vim_vm_snapshot.revert <vm> <snapshot_name> <suppress_power_on>
saltext.vcf.modules.vcf_vim_vm_snapshot.remove(vm, snapshot_name, remove_children=False, profile=None)[source]

Remove.

CLI Example:

salt '*' vcf_vim_vm_snapshot.remove <vm> <snapshot_name> <remove_children>
saltext.vcf.modules.vcf_vim_vm_snapshot.remove_all(vm, profile=None)[source]

Remove all.

CLI Example:

salt '*' vcf_vim_vm_snapshot.remove_all <vm>
saltext.vcf.modules.vcf_vim_vm_snapshot.consolidate(vm, profile=None)[source]

Consolidate VM disks (merge orphaned snapshot deltas).

CLI Example:

salt '*' vcf_vim_vm_snapshot.consolidate <vm>
saltext.vcf.modules.vcf_vim_vm_snapshot.state(vm, snapshot_name, profile=None)[source]

Return {present, is_current, has_memory, has_quiesce, children} for a named snapshot.

CLI Example:

salt '*' vcf_vim_vm_snapshot.state <vm> <snapshot_name>