Read Kubernetes version (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/ankracloud/{cluster_id}/k8s-version"
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}/k8s-version', 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}/k8s-version \
--cookie ankra_session={
"current_version": "<string>",
"distribution": "<string>",
"auto_patch_upgrade_enabled": false,
"desired_version": "<string>",
"nodes": [
{
"name": "<string>",
"role": "<string>",
"state": "<string>",
"desired_version": "<string>",
"observed_version": "<string>"
}
],
"observed_version": "<string>",
"upgrade_execution": {
"blocking_pdbs": [
{
"disruptions_allowed": 123,
"name": "<string>",
"namespace": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parked_node": "<string>",
"status": "<string>"
},
"version_drift": false
}{
"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 Kubernetes version (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}
/
k8s-version
Read Kubernetes version (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/ankracloud/{cluster_id}/k8s-version"
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}/k8s-version', 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}/k8s-version \
--cookie ankra_session={
"current_version": "<string>",
"distribution": "<string>",
"auto_patch_upgrade_enabled": false,
"desired_version": "<string>",
"nodes": [
{
"name": "<string>",
"role": "<string>",
"state": "<string>",
"desired_version": "<string>",
"observed_version": "<string>"
}
],
"observed_version": "<string>",
"upgrade_execution": {
"blocking_pdbs": [
{
"disruptions_allowed": 123,
"name": "<string>",
"namespace": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parked_node": "<string>",
"status": "<string>"
},
"version_drift": false
}{
"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