vm_clean_slate
Powers off a VM and reverts it to a specified snapshot, restoring a clean baseline state. Use to reset lab or dev VMs after tasks.
Instructions
[WRITE] Revert a VM to its baseline snapshot (Clean Slate).
Powers off the VM first if it is running, then reverts to the named snapshot. Use this to reset a lab/dev VM to a clean starting state after a task completes.
Args: vm_name: Name of the VM to revert. snapshot_name: Snapshot name to revert to (default: "baseline"). target: Optional vCenter/ESXi target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| vm_name | Yes | ||
| snapshot_name | No | baseline |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |