Add /cluster/transfer/:id endpoint to transfer leadership to another node

This commit is contained in:
Ingo Oppermann
2023-07-11 14:26:54 +02:00
parent d04254c891
commit 0f06b8b5a0
14 changed files with 338 additions and 12 deletions

View File

@@ -1613,6 +1613,38 @@ const docTemplate = `{
}
}
},
"/api/v3/cluster/transfer/{id}": {
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Transfer the leadership to another node",
"produces": [
"application/json"
],
"tags": [
"v16.?.?"
],
"summary": "Transfer the leadership to another node",
"operationId": "cluster-3-transfer-leadership",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/api.Error"
}
}
}
}
},
"/api/v3/config": {
"get": {
"security": [