Read control-plane sizing (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/ankracloud/{cluster_id}/control-plane"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/clusters/ankracloud/{cluster_id}/control-plane', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/clusters/ankracloud/{cluster_id}/control-plane \
--cookie ankra_session={
"can_change": true,
"count": 123,
"count_change": {
"allowed": true,
"mode": "",
"reason": "<string>"
},
"instance_type": "<string>",
"instance_type_change": {
"allowed": true,
"mode": "",
"reason": "<string>"
},
"supported_counts": [
123
],
"reason": "<string>"
}{
"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"
}Ankra Cloud Clusters
Read control-plane sizing (browser session)
Browser session authentication; RBAC permission clusters.read. PAT mutations support wait=false where implemented; browser mutations require CSRF. Answers 404 while the organisation’s aws_provider feature flag is off.
GET
/
org
/
clusters
/
ankracloud
/
{cluster_id}
/
control-plane
Read control-plane sizing (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/ankracloud/{cluster_id}/control-plane"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/clusters/ankracloud/{cluster_id}/control-plane', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/clusters/ankracloud/{cluster_id}/control-plane \
--cookie ankra_session={
"can_change": true,
"count": 123,
"count_change": {
"allowed": true,
"mode": "",
"reason": "<string>"
},
"instance_type": "<string>",
"instance_type_change": {
"allowed": true,
"mode": "",
"reason": "<string>"
},
"supported_counts": [
123
],
"reason": "<string>"
}{
"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
Response
Successful response