pool_set_enabled
Enable or disable a desktop pool to control new session access. Disabling prevents new sessions but keeps existing ones active; preview without confirm, apply with confirm.
Instructions
[WRITE] Enable or disable a desktop pool — disabling stops NEW sessions (existing keep running).
Idempotent (matching state returns a noop). confirm=False previews; confirm=True applies. Audited.
Args: pool_id: The pool id (from pool_list). enabled: True enables; False disables. confirm: False previews; True applies. target: Horizon target from config.yaml; omit to use the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| confirm | No | ||
| enabled | Yes | ||
| pool_id | Yes |