Clusters
Update node pool inside a cluster.
Request Body
application/json
Requirednamestring
Pattern
"^[a-zA-Z0-9\\-\\s&]*$"
Length
1 <= length <= 25
nodeSizestring
Length
1 <= length <= 255
autoScaling?boolean
Default
"false"
enableNodeAutoReplacement?boolean
enableNodeReboots?boolean
Default
"false"
upgradeStrategy?string
Value in
"REPLACE" | "INPLACE" | "INPLACE_WITHOUT_DRAIN" | "REPLACE_MINOR_INPLACE_PATCH" | "REPLACE_MINOR_INPLACE_PATCH_WITHOUT_DRAIN"
minSize?integer
Default
"0"
Format
"int64"
maxSize?integer
Default
"0"
Format
"int64"
availabilityZone?string
Length
length <= 255
annotations?object
Empty Object
labels?object
Empty Object
taints?array<object>
Path Parameters
organisationSlugstring
Pattern
"^[a-z0-9-]+$"
environmentSlugstring
Pattern
"^[a-z0-9-]+$"
clusterSlugstring
Pattern
"^[a-z0-9-]+$"
nodePoolIdinteger
Format
"int64"
Response Body
Request was successfully processed. The response body contains the requested data.
TypeScript Definitions
Use the response body type in TypeScript.
id?integer
Format
"int64"
identity?string
Format
"uuid"
name?string
availabilityZone?string
nodeSize?string
autoScaling?boolean
enableNodeAutoReplacement?boolean
enableNodeReboots?boolean
upgradeStrategy?string
Value in
"REPLACE" | "INPLACE" | "INPLACE_WITHOUT_DRAIN" | "REPLACE_MINOR_INPLACE_PATCH" | "REPLACE_MINOR_INPLACE_PATCH_WITHOUT_DRAIN"
minSize?integer
Format
"int64"
maxSize?integer
Format
"int64"
annotations?object
Empty Object
labels?object
Empty Object
taints?array<object>
createdAt?string
Format
"date-time"
modifiedAt?string
Format
"date-time"
provisionStatus?string
Value in
"UNKNOWN" | "ACCEPTED" | "PROVISIONED"
Invalid request parameters. Please review the documentation for valid parameter values.
TypeScript Definitions
Use the response body type in TypeScript.
response?unknown
You do not have the necessary permissions to access this resource.
TypeScript Definitions
Use the response body type in TypeScript.
response?unknown
The requested resource could not be found. Please check the resource URL or identifier.
TypeScript Definitions
Use the response body type in TypeScript.
response?unknown
An internal error occurred on the server.
TypeScript Definitions
Use the response body type in TypeScript.
response?unknown
curl -X PUT "https://api.avisi.cloud/api/v1/orgs/string/clusters/string/string/pools/0" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"nodeSize": "string"
}'
const body = JSON.stringify({
"name": "string",
"nodeSize": "string"
})
fetch("https://api.avisi.cloud/api/v1/orgs/string/clusters/string/string/pools/0", {
body
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
"strings"
)
func main() {
url := "https://api.avisi.cloud/api/v1/orgs/string/clusters/string/string/pools/0"
body := strings.NewReader(`{
"name": "string",
"nodeSize": "string"
}`)
req, _ := http.NewRequest("PUT", url, body)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://api.avisi.cloud/api/v1/orgs/string/clusters/string/string/pools/0"
body = {
"name": "string",
"nodeSize": "string"
}
response = requests.request("PUT", url, json = body, headers = {
"Content-Type": "application/json"
})
print(response.text)
{
"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"
}
{
"message": "string",
"details": [
"string"
]
}
{
"message": "string",
"details": [
"string"
]
}
{
"message": "string",
"details": [
"string"
]
}
{
"message": "string",
"details": [
"string"
]
}