Read private cluster access
import requests
url = "https://platform.ankra.app/org/clusters/aws/{cluster_id}/access-info"
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/aws/{cluster_id}/access-info', 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/aws/{cluster_id}/access-info \
--cookie ankra_session={
"bastion_host": "203.0.113.10",
"bastion_ip": "203.0.113.10",
"bastion_port": 22,
"bastion_user": "ubuntu",
"cluster_name": "aws-prod",
"control_plane_ip": "10.0.1.10",
"control_plane_ips": [
"10.0.1.10"
],
"target_user": "ubuntu"
}{
"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"
}AWS Clusters
Read private cluster access
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
/
aws
/
{cluster_id}
/
access-info
Read private cluster access
import requests
url = "https://platform.ankra.app/org/clusters/aws/{cluster_id}/access-info"
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/aws/{cluster_id}/access-info', 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/aws/{cluster_id}/access-info \
--cookie ankra_session={
"bastion_host": "203.0.113.10",
"bastion_ip": "203.0.113.10",
"bastion_port": 22,
"bastion_user": "ubuntu",
"cluster_name": "aws-prod",
"control_plane_ip": "10.0.1.10",
"control_plane_ips": [
"10.0.1.10"
],
"target_user": "ubuntu"
}{
"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.