get_swarm_join_tokens
Retrieve the current worker and manager join tokens for a Docker Swarm. These tokens are required for new nodes to join the swarm.
Instructions
Return the swarm's worker and manager join tokens.
These are the tokens a new node passes to join_swarm — without one, join_swarm 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 | |||