rdsh_farm_action
Enable or disable RDS farms by safely draining new sessions before maintenance. Fetches each farm's full state, toggles enabled, and updates it.
Instructions
Enable or disable one or more RDS farms.
Disabling a farm prevents new sessions from being routed to it without terminating existing sessions — useful for draining a farm before maintenance.
Unlike desktop pools, farms have no bulk enable/disable endpoint, and Horizon's farm update schema requires several fields beyond "enabled" (verified live — a naive partial-body PUT gets rejected). So this fetches each farm's full current state first, changes only "enabled", and PUTs the complete spec back — a real get-then- update round trip, not a guess. Reports per-farm results if any still fail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | enable: allow new sessions to this farm. disable: prevent new sessions (existing sessions continue until they end). | |
| confirm | No | Only used when the server runs with HORIZON_CONFIRMATION=flag (clients without elicitation). Otherwise the user is asked to confirm directly in the client. | |
| farm_ids | Yes | List of RDS farm IDs to act on |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||