machine_maintenance
Toggle maintenance mode for VDI machines, previewing affected users and sessions before applying changes.
Instructions
[WRITE] Enter (enabled=True) or exit (False) maintenance mode for machine(s).
Maintenance drains the machine (no new sessions). A bare call returns blast_radius (machine ids, states, assigned users) and changes nothing; confirm=True applies. A machine whose state cannot be read is refused. Show blast_radius to the user and wait for their decision. Do not set confirm=True on your own because the user asked for this earlier: they have not seen the blast radius yet. Audited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Horizon target from config.yaml; omit to use the default. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True applies it. | |
| enabled | Yes | True enters maintenance; False exits. | |
| machine_ids | Yes | Machine ids (from machine_list). |