import requests
url = "https://platform.ankra.app/org/clusters/scaleway/{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://platform.ankra.app/org/clusters/scaleway/{cluster_id}/control-plane', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/clusters/scaleway/{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"
}Read control-plane sizing
Browser session authentication; RBAC permission clusters.read. PAT mutations support wait=false where implemented; browser mutations require CSRF.
import requests
url = "https://platform.ankra.app/org/clusters/scaleway/{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://platform.ankra.app/org/clusters/scaleway/{cluster_id}/control-plane', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/clusters/scaleway/{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
Browser session. Mutations also require X-Ankra-CSRF.
Path Parameters
Response
Successful response
Whether the controller COUNT can be changed. Retained for existing clients; prefer count_change, and read instance_type_change for the instance type, which has its own answer.
Whether the controller count can be changed. Changing the count still requires a stopped cluster.
Show child attributes
Show child attributes
Whether the instance type can be changed, and by which lane. A running cluster with at least three controllers can be resized live, one controller at a time.
Show child attributes
Show child attributes
Why the controller count cannot be changed. Retained for existing clients; prefer count_change.reason.