Add a managed node pool
import requests
url = "https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools"
payload = {
"name": "<string>",
"size": "<string>"
}
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '<string>', size: '<string>'})
};
fetch('https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '
{
"name": "<string>",
"size": "<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
Add a managed node pool
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.
POST
/
org
/
clusters
/
managed
/
{provider}
/
{cluster_id}
/
node-pools
Add a managed node pool
import requests
url = "https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools"
payload = {
"name": "<string>",
"size": "<string>"
}
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '<string>', size: '<string>'})
};
fetch('https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/clusters/managed/{provider}/{cluster_id}/node-pools \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '
{
"name": "<string>",
"size": "<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
Show child attributes
Show child attributes
Required range:
x >= 1Show child attributes
Show child attributes
Required range:
x >= 1Show child attributes
Show child attributes
Spot / preemptible capacity for a node pool (AKS scaleSetPriority Spot). max_price is the hourly cap in the provider's currency; null means up to the on-demand price.
Show child attributes
Show child attributes
Response
Successful response