import requests
url = "https://platform.ankra.app/api/v1/clusters/managed/{provider}/{cluster_id}/control-plane"
payload = {}
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({})
};
fetch('https://platform.ankra.app/api/v1/clusters/managed/{provider}/{cluster_id}/control-plane', 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/managed/{provider}/{cluster_id}/control-plane \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tier": "development"
}{
"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"
}Change a managed cluster's control-plane tier
Bearer PAT authentication; RBAC permission clusters.write. Change an Ankra Cloud Kubernetes cluster’s control-plane tier in place: development runs one API server and one etcd member (no control-plane fee), production three replicas spread across machines (monthly fee). The API keeps serving throughout with the same endpoint and kubeconfig. A change to development needs confirm_availability_reduction: true. The change runs as the platform operation operation_id names; Ankra Cloud may still refuse it there (billing, region capacity), and its result carries any warning, such as credit that lasts less than seven days. 400 for another provider, a dev cluster or a missing confirmation; 409 while the cluster is not running, already runs the tier, or has an operation or a change in flight.
import requests
url = "https://platform.ankra.app/api/v1/clusters/managed/{provider}/{cluster_id}/control-plane"
payload = {}
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({})
};
fetch('https://platform.ankra.app/api/v1/clusters/managed/{provider}/{cluster_id}/control-plane', 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/managed/{provider}/{cluster_id}/control-plane \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tier": "development"
}{
"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
Path Parameters
Body
A control-plane tier change of an Ankra Cloud Kubernetes cluster.