pool_set_enabled
Disable a desktop pool to block new sessions while existing ones continue, or re-enable it. Preview the impact first, then confirm to apply changes safely.
Instructions
[WRITE] Enable or disable a desktop pool — disabling stops NEW sessions (existing keep running).
Idempotent (matching state returns a noop). A bare call returns blast_radius (pool identity, current and new enabled state) and changes nothing; confirm=True applies. A pool whose current enabled 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 enables; False disables. | |
| pool_id | Yes | The pool id (from pool_list). |