Update a swarm
/v1.33
/v1.33
/v1.33
/v1.33
POST
/swarm/update
Swarm
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1.33/swarm/update?version=' \
--header 'Content-Type: application/json' \
--data-raw '{
"CAConfig": {
"ExternalCAs": [
{
"CACert": "string",
"Options": {
"property1": "string",
"property2": "string"
},
"Protocol": "cfssl",
"URL": "string"
}
],
"ForceRotate": 0,
"NodeCertExpiry": 7776000000000000,
"SigningCACert": "string",
"SigningCAKey": "string"
},
"Dispatcher": {
"HeartbeatPeriod": 5000000000
},
"EncryptionConfig": {
"AutoLockManagers": false
},
"Labels": {
"com.example.corp.department": "engineering",
"com.example.corp.type": "production"
},
"Name": "default",
"Orchestration": {
"TaskHistoryRetentionLimit": 10
},
"Raft": {
"ElectionTick": 3,
"HeartbeatTick": 1,
"KeepOldSnapshots": 0,
"LogEntriesForSlowFollowers": 500,
"SnapshotInterval": 10000
},
"TaskDefaults": {
"LogDriver": {
"Name": "json-file",
"Options": {
"max-file": "10",
"max-size": "100m"
}
}
}
}'
Response Response Example
200 - Example 1
{}
Request
Query Params
version
integerÂ
required
rotateWorkerToken
stringÂ
optional
rotateManagerToken
stringÂ
optional
rotateManagerUnlockKey
stringÂ
optional
Body Params application/json
Responses
Modified at 2022-09-10 17:56:07