vsphere_revert_to_snapshot
Revert a virtual machine to a snapshot, discarding all changes made after it. Useful for restoring VMs to a known good state after unwanted modifications.
Instructions
Revert a virtual machine to a snapshot, discarding later changes.
Everything written since the snapshot was taken is lost. Requires
permission mode destructive.
Args:
vm: VM name, managed object id, UUID or inventory path.
snapshot: Snapshot name, snapshot path (parent/child) or
snapshot moid. Defaults to the VM's current snapshot.
suppress_power_on: Leave the VM powered off after reverting.
wait: Wait for the revert task to finish.
timeout_seconds: Override the default task timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| wait | No | ||
| snapshot | No | ||
| timeout_seconds | No | ||
| suppress_power_on | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||