vm_power_off
Shut down a virtual machine gracefully, or force a hard power-off when needed.
Instructions
[WRITE] Power off a virtual machine. Graceful shutdown by default, force if specified.
Args: vm_name: Exact name of the virtual machine. force: If True, hard power off. If False, graceful guest shutdown. target: Optional vCenter/ESXi target name from config. Uses default if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm_name | Yes | ||
| force | No | ||
| target | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |