Read managed-cluster status
import requests
url = "https://platform.ankra.app/api/v1/clusters/managed/{provider}/{cluster_id}/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/managed/{provider}/{cluster_id}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/clusters/managed/{provider}/{cluster_id}/status \
--header 'Authorization: Bearer <token>'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cni": "<string>",
"endpoint": "<string>",
"node_pools": [
{
"autohealing": true,
"autoscaling": {
"max_count": 2,
"min_count": 2,
"enabled": true
},
"count": 1,
"labels": {},
"name": "<string>",
"provider_id": "<string>",
"public_ip": true,
"root_volume_size_gb": 2,
"root_volume_type": "<string>",
"security_group_id": "<string>",
"size": "<string>",
"status": "<string>",
"taints": [
{
"effect": "NoSchedule",
"key": "<string>",
"value": ""
}
],
"upgrade_policy": "<string>",
"zone": "<string>",
"spot": {
"enabled": true,
"max_price": 1
},
"failure_reason": "<string>"
}
],
"ownership": "created",
"provider_cluster_id": "<string>",
"status": "<string>",
"version": "<string>",
"placement": {
"billing_note": "<string>",
"reasons": [
"<string>"
],
"since": "2023-11-07T05:31:56Z",
"state": "placed"
}
}{
"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
Read managed-cluster status
Bearer PAT authentication; RBAC permission clusters.read. 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.
GET
/
api
/
v1
/
clusters
/
managed
/
{provider}
/
{cluster_id}
/
status
Read managed-cluster status
import requests
url = "https://platform.ankra.app/api/v1/clusters/managed/{provider}/{cluster_id}/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/managed/{provider}/{cluster_id}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/clusters/managed/{provider}/{cluster_id}/status \
--header 'Authorization: Bearer <token>'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cni": "<string>",
"endpoint": "<string>",
"node_pools": [
{
"autohealing": true,
"autoscaling": {
"max_count": 2,
"min_count": 2,
"enabled": true
},
"count": 1,
"labels": {},
"name": "<string>",
"provider_id": "<string>",
"public_ip": true,
"root_volume_size_gb": 2,
"root_volume_type": "<string>",
"security_group_id": "<string>",
"size": "<string>",
"status": "<string>",
"taints": [
{
"effect": "NoSchedule",
"key": "<string>",
"value": ""
}
],
"upgrade_policy": "<string>",
"zone": "<string>",
"spot": {
"enabled": true,
"max_price": 1
},
"failure_reason": "<string>"
}
],
"ownership": "created",
"provider_cluster_id": "<string>",
"status": "<string>",
"version": "<string>",
"placement": {
"billing_note": "<string>",
"reasons": [
"<string>"
],
"since": "2023-11-07T05:31:56Z",
"state": "placed"
}
}{
"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
Response
Successful response