vm_set_ttl
Set a Time-To-Live on a VM to automatically delete it after a specified number of minutes. Useful for temporary VMs that require automatic cleanup.
Instructions
[WRITE] Set a Time-To-Live (TTL) for a VM. The daemon auto-deletes it when expired.
The scheduler daemon must be running (vmware-aiops daemon start) for
automatic deletion. TTLs are persisted in ~/.vmware-aiops/ttl.json.
Args: vm_name: Name of the VM to auto-delete. minutes: Minutes until deletion (minimum 1). target: Optional vCenter/ESXi target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| minutes | Yes | ||
| vm_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |