Read private cluster access
import requests
url = "https://platform.ankra.app/org/clusters/scaleway/{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/scaleway/{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/scaleway/{cluster_id}/access-info \
--cookie ankra_session={
"bastion_host": "203.0.113.10",
"bastion_ip": "203.0.113.10",
"bastion_port": 61000,
"bastion_user": "bastion",
"cluster_name": "scw-prod",
"control_plane_ip": "10.0.0.10",
"control_plane_ips": [
"10.0.0.10"
],
"target_user": "root"
}{
"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"
}Scaleway Clusters
Read private cluster access
Browser session authentication; RBAC permission clusters.read. PAT mutations support wait=false where implemented; browser mutations require CSRF.
GET
/
org
/
clusters
/
scaleway
/
{cluster_id}
/
access-info
Read private cluster access
import requests
url = "https://platform.ankra.app/org/clusters/scaleway/{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/scaleway/{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/scaleway/{cluster_id}/access-info \
--cookie ankra_session={
"bastion_host": "203.0.113.10",
"bastion_ip": "203.0.113.10",
"bastion_port": 61000,
"bastion_user": "bastion",
"cluster_name": "scw-prod",
"control_plane_ip": "10.0.0.10",
"control_plane_ips": [
"10.0.0.10"
],
"target_user": "root"
}{
"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.