swarm_join_tokens
Retrieve the current worker and manager join tokens for a Docker swarm, enabling new nodes to join securely. These tokens are sensitive credentials; handle them with care.
Instructions
Return the swarm's worker and manager join tokens.
These are the tokens a new node passes to swarm_join — without one, swarm_join cannot be
called, so this closes the init -> join loop. The tokens are secret bearer credentials (anyone
holding the manager token can join as a manager); treat the result as sensitive and avoid logging
it. Reads swarm.attrs["JoinTokens"] after a reload, so it always reflects the current tokens.
returns: dict - {"Worker": , "Manager": }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||