set_cluster_agent_auto_upgrade
Turn automatic upgrades of the Ankra agent on a cluster on or off (the twin of ankra cluster agent auto-upgrade enable|disable and the portal's cluster settings). With them on, the fleet rollout applies each new agent release to this cluster as soon as it has no write execution running; with them off the rollout skips this agent until they are turned back on, which is how a team fences a cluster off from agent releases for a freeze window or a migration night. 'enabled' is required and must be given explicitly: both directions are deliberate. Read the current setting with get_cluster_agent_status (disable_auto_upgrade); upgrade_cluster_agent applies a release on demand whichever way the switch sits. Every change is recorded in the audit log with who made it, the previous and new setting and the reason when one is given. Requires agents.manage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why the switch is being changed, in the operator's own words (a freeze window, a migration night, the end of one). Recorded on the change's audit row so the next person can see why the fence went up or came down. Optional. | |
| enabled | Yes | true puts the agent back into the automatic fleet rollout; false fences it off until enabled again. | |
| cluster_id | No | UUID of the target cluster. Optional when a cluster is selected. | |
| cluster_name | No | Exact name of the target cluster. Optional when a cluster is selected. |