Clusters
Create node pool inside a cluster.
Request Body
application/json
Requiredname
RequiredstringMinimum length:
1
Maximum length: 25
Pattern: "^[a-zA-Z0-9\\-\\s&]*$"
nodeSize
RequiredstringMinimum length:
1
Maximum length: 255
autoScaling
booleanDefault:
"false"
enableNodeAutoReplacement
booleanenableNodeReboots
booleanDefault:
"false"
upgradeStrategy
stringValue in:
"REPLACE" | "INPLACE" | "INPLACE_WITHOUT_DRAIN" | "REPLACE_MINOR_INPLACE_PATCH" | "REPLACE_MINOR_INPLACE_PATCH_WITHOUT_DRAIN"
minSize
integerDefault:
"0"
Format: "int64"
maxSize
integerDefault:
"0"
Format: "int64"
availabilityZone
stringMinimum length:
0
Maximum length: 255
annotations
objectlabels
objecttaints
array<object>Path Parameters
organisationSlug
RequiredstringPattern:
"^[a-z0-9-]+$"
environmentSlug
RequiredstringPattern:
"^[a-z0-9-]+$"
clusterSlug
RequiredstringPattern:
"^[a-z0-9-]+$"
Response Body
Request was successfully processed. The response body contains the requested data.
TypeScript Definitions
Use the response body type in TypeScript.
id
integerFormat:
"int64"
identity
stringFormat:
"uuid"
name
stringavailabilityZone
stringnodeSize
stringautoScaling
booleanenableNodeAutoReplacement
booleanenableNodeReboots
booleanupgradeStrategy
stringValue in:
"REPLACE" | "INPLACE" | "INPLACE_WITHOUT_DRAIN" | "REPLACE_MINOR_INPLACE_PATCH" | "REPLACE_MINOR_INPLACE_PATCH_WITHOUT_DRAIN"
minSize
integerFormat:
"int64"
maxSize
integerFormat:
"int64"
annotations
objectlabels
objecttaints
array<object>createdAt
stringFormat:
"date-time"
modifiedAt
stringFormat:
"date-time"
provisionStatus
stringValue in:
"UNKNOWN" | "ACCEPTED" | "PROVISIONED"
curl -X POST "https://api.avisi.cloud/api/v1/orgs/string/clusters/string/string/pools" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"nodeSize": "string",
"autoScaling": "false",
"enableNodeAutoReplacement": true,
"enableNodeReboots": "false",
"upgradeStrategy": "REPLACE",
"minSize": "0",
"maxSize": "0",
"availabilityZone": "string",
"annotations": {
"property1": "string",
"property2": "string"
},
"labels": {
"property1": "string",
"property2": "string"
},
"taints": [
{
"key": "string",
"value": "string",
"effect": "string"
}
]
}'
{
"id": 0,
"identity": "10a80a7a-1a32-4a74-b592-aa2a4ef691c5",
"name": "string",
"availabilityZone": "string",
"nodeSize": "string",
"autoScaling": true,
"enableNodeAutoReplacement": true,
"enableNodeReboots": true,
"upgradeStrategy": "REPLACE",
"minSize": 0,
"maxSize": 0,
"annotations": {
"property1": "string",
"property2": "string"
},
"labels": {
"property1": "string",
"property2": "string"
},
"taints": [
{
"key": "string",
"value": "string",
"effect": "string"
}
],
"createdAt": "2019-08-24T14:15:22Z",
"modifiedAt": "2019-08-24T14:15:22Z",
"provisionStatus": "UNKNOWN"
}