Update managed node-pool autoscaling
import requests
url = "https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools/{node_pool_name}"
payload = {
"autohealing": True,
"autoscaling_enabled": True,
"autoscaling_max": 123,
"autoscaling_min": 123,
"count": 2,
"public_ip": True,
"root_volume_size_gb": 2,
"root_volume_type": "<string>",
"security_group_id": "<string>",
"zone": "<string>"
}
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
autohealing: true,
autoscaling_enabled: true,
autoscaling_max: 123,
autoscaling_min: 123,
count: 2,
public_ip: true,
root_volume_size_gb: 2,
root_volume_type: '<string>',
security_group_id: '<string>',
zone: '<string>'
})
};
fetch('https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools/{node_pool_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools/{node_pool_name} \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '
{
"autohealing": true,
"autoscaling_enabled": true,
"autoscaling_max": 123,
"autoscaling_min": 123,
"count": 2,
"public_ip": true,
"root_volume_size_gb": 2,
"root_volume_type": "<string>",
"security_group_id": "<string>",
"zone": "<string>"
}
'{
"autohealing": true,
"autoscaling_enabled": true,
"autoscaling_max": 123,
"autoscaling_min": 123,
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"count": 123,
"node_pool_name": "<string>",
"upgrade_policy": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Managed Clusters
Update managed node-pool autoscaling
Browser session authentication; RBAC permission clusters.write. For Kapsule, provider_cluster_id is the opaque region-qualified regions/{region}/clusters/{id} reference. CNI is immutable. Imported/unknown provenance is disconnect-only; provider deletion is allowed by default only for created clusters.
PATCH
/
org
/
clusters
/
managed
/
{provider}
/
{cluster_id}
/
node-pools
/
{node_pool_name}
Update managed node-pool autoscaling
import requests
url = "https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools/{node_pool_name}"
payload = {
"autohealing": True,
"autoscaling_enabled": True,
"autoscaling_max": 123,
"autoscaling_min": 123,
"count": 2,
"public_ip": True,
"root_volume_size_gb": 2,
"root_volume_type": "<string>",
"security_group_id": "<string>",
"zone": "<string>"
}
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
autohealing: true,
autoscaling_enabled: true,
autoscaling_max: 123,
autoscaling_min: 123,
count: 2,
public_ip: true,
root_volume_size_gb: 2,
root_volume_type: '<string>',
security_group_id: '<string>',
zone: '<string>'
})
};
fetch('https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools/{node_pool_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools/{node_pool_name} \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '
{
"autohealing": true,
"autoscaling_enabled": true,
"autoscaling_max": 123,
"autoscaling_min": 123,
"count": 2,
"public_ip": true,
"root_volume_size_gb": 2,
"root_volume_type": "<string>",
"security_group_id": "<string>",
"zone": "<string>"
}
'{
"autohealing": true,
"autoscaling_enabled": true,
"autoscaling_max": 123,
"autoscaling_min": 123,
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"count": 123,
"node_pool_name": "<string>",
"upgrade_policy": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.
Headers
Must match the ankra_csrf browser cookie.
Path Parameters
Available options:
doks, uks, gke, ovh_mks, aks, eks, kapsule Example:
"kapsule"
Body
application/json
Kapsule supports count/autoscaling, autohealing and upgrade_policy updates. zone, root-volume, security-group and public-IP fields are accepted only to return explicit immutable-field errors.
Required range:
x >= 1Required range:
x >= 1Available options:
surge, unavailable, balanced Response
Successful response