Update a swarm
Changed onRequest
- Base URL/v1.57 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
Query parameters
The version number of the swarm object being updated. This is required to avoid conflicting writes.
Rotate the worker join token.
Rotate the manager join token.
Rotate the manager unlock key.
Request body
Example request
{
"Name": "default",
"Labels": {
"com.example.corp.type": "production",
"com.example.corp.department": "engineering"
},
"Orchestration": {
"TaskHistoryRetentionLimit": 10
},
"Raft": {
"SnapshotInterval": 10000,
"LogEntriesForSlowFollowers": 500,
"ElectionTick": 3,
"HeartbeatTick": 1
},
"Dispatcher": {
"HeartbeatPeriod": 5000000000
},
"CAConfig": {
"NodeCertExpiry": 7776000000000000
},
"TaskDefaults": {
"LogDriver": {
"Name": "json-file",
"Options": {
"max-file": "10",
"max-size": "100m"
}
}
}
}Response
no error
Changes
- breaking
removed the request body
- breaking
removed the success response with the status
- info
api tag
Swarmadded - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- breaking
- breaking
removed the media type
text/plainfrom the request body - breaking
for the
queryrequest parameterrotateManagerToken, default valuefalsewas removed - breaking
for the
queryrequest parameterrotateManagerUnlockKey, default valuefalsewas removed - breaking
for the
queryrequest parameterrotateWorkerToken, default valuefalsewas removed - breaking
the
/request property format changed from no format toint32 - breaking
the
/request property format changed from no format toint32 - breaking
removed the success response with the status
- info
api tag
Swarmremoved - info
the
request property default valuecfsslwas removed - info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
added the success response with the status
- breaking