update_swarm
Rotate worker or manager join tokens and manager unlock key for Docker swarm security updates. Invalidates old tokens and handles key renewal.
Instructions
Update swarm-wide settings; currently exposes token and unlock-key rotation.
Must be called on a swarm manager node. Token rotation invalidates the old join token
immediately — nodes that have not yet joined using the old token must use the new one.
Existing joined nodes are unaffected. Use get_swarm_join_tokens to retrieve the new
tokens after rotation. Rotating the unlock key requires all managers to be re-unlocked
on restart with the new key; retrieve it immediately via get_swarm_unlock_key.
args: rotate_worker_token - Issue a new worker join token, invalidating the current one rotate_manager_token - Issue a new manager join token, invalidating the current one rotate_manager_unlock_key - Issue a new autolock unlock key for manager restart returns: bool - True after the update completes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rotate_worker_token | No | ||
| rotate_manager_token | No | ||
| rotate_manager_unlock_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |