import requests
url = "https://platform.ankra.app/api/v1/clusters/ankracloud/{cluster_id}/node-groups"
payload = {
"instance_type": "<string>",
"name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({instance_type: '<string>', name: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/clusters/ankracloud/{cluster_id}/node-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/clusters/ankracloud/{cluster_id}/node-groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instance_type": "<string>",
"name": "<string>"
}
'{
"count": 123,
"group_name": "<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"
}Add node group
Bearer PAT authentication; RBAC permission clusters.write. PAT mutations support wait=false where implemented; browser mutations require CSRF. Answers 404 while the organisation’s aws_provider feature flag is off.
import requests
url = "https://platform.ankra.app/api/v1/clusters/ankracloud/{cluster_id}/node-groups"
payload = {
"instance_type": "<string>",
"name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({instance_type: '<string>', name: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/clusters/ankracloud/{cluster_id}/node-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/clusters/ankracloud/{cluster_id}/node-groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"instance_type": "<string>",
"name": "<string>"
}
'{
"count": 123,
"group_name": "<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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
PAT organisation override.
Path Parameters
Body
Show child attributes
Show child attributes
0 <= x <= 100Ankra Cloud CPU pool of the zone every server of the group is pinned to, scale-ups included, for example a pool of x86-64 level 3 for workloads that need AVX2. Omit it to let the Cloud place each server. Must be one of the zone's pools (GET /api/v1/clusters/ankracloud/{cluster_id}/cpu-pools).
^[a-z0-9]{1,16}-f[0-9]{1,4}-[0-9a-f]{10}$Root disk size of every server of the group in GiB, scale-ups included. Omit it for the plan's included disk; Ankra Cloud refuses a size below the plan's and the template's minimum.
1 <= x <= 4096Storage tier of the root disk of every server of the group, scale-ups included. Omit it for the zone's default_storage_tier. local-nvme is the node's own disks; standard, maxiops and hdd are the zone's Ankra Storage (Ceph) tiers.
local-nvme, standard, maxiops, hdd Show child attributes
Show child attributes
Show child attributes
Show child attributes