vm_clean_slate
Revert a running VM to a baseline snapshot to reset it to a clean starting state. Powers off the VM automatically before reverting.
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 |
|---|---|---|---|
| vm_name | Yes | ||
| snapshot_name | No | baseline | |
| target | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |