admin api: management of layout parameters through admin api

This commit is contained in:
Alex Auvolat
2025-03-06 17:12:52 +01:00
parent 6b19d7628e
commit e4881e62f1
6 changed files with 204 additions and 73 deletions
+65 -3
View File
@@ -1875,15 +1875,29 @@
"required": [
"version",
"roles",
"parameters",
"stagedRoleChanges"
],
"properties": {
"parameters": {
"$ref": "#/components/schemas/LayoutParameters"
},
"roles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/NodeRoleResp"
}
},
"stagedParameters": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/LayoutParameters"
}
]
},
"stagedRoleChanges": {
"type": "array",
"items": {
@@ -2021,6 +2035,17 @@
}
}
},
"LayoutParameters": {
"type": "object",
"required": [
"zoneRedundancy"
],
"properties": {
"zoneRedundancy": {
"$ref": "#/components/schemas/ZoneRedundancy"
}
}
},
"ListBucketsResponse": {
"type": "array",
"items": {
@@ -3109,9 +3134,24 @@
}
},
"UpdateClusterLayoutRequest": {
"type": "array",
"items": {
"$ref": "#/components/schemas/NodeRoleChange"
"type": "object",
"properties": {
"parameters": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/LayoutParameters"
}
]
},
"roles": {
"type": "array",
"items": {
"$ref": "#/components/schemas/NodeRoleChange"
}
}
}
},
"UpdateClusterLayoutResponse": {
@@ -3289,6 +3329,28 @@
]
}
]
},
"ZoneRedundancy": {
"oneOf": [
{
"type": "object",
"required": [
"atLeast"
],
"properties": {
"atLeast": {
"type": "integer",
"minimum": 0
}
}
},
{
"type": "string",
"enum": [
"maximum"
]
}
]
}
},
"securitySchemes": {