Diagnose bastion
import requests
url = "https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/bastion/diagnose"
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'X-Ankra-CSRF': '<x-ankra-csrf>'}
};
fetch('https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/bastion/diagnose', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/bastion/diagnose \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session={
"completed": true,
"health": {},
"job_name": "<string>",
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_excerpt": "<string>",
"report": {}
}{
"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
Diagnose bastion
Browser session authentication; RBAC permission clusters.operate. Dispatches the read-only <provider>_bastion_diagnose job over SSH and waits for its report within a bounded budget; a slower job answers the operation ids to poll. Browser mutations require CSRF.
POST
/
org
/
clusters
/
scaleway
/
{cluster_id}
/
bastion
/
diagnose
Diagnose bastion
import requests
url = "https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/bastion/diagnose"
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'X-Ankra-CSRF': '<x-ankra-csrf>'}
};
fetch('https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/bastion/diagnose', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/bastion/diagnose \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session={
"completed": true,
"health": {},
"job_name": "<string>",
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_excerpt": "<string>",
"report": {}
}{
"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.
Headers
Must match the ankra_csrf browser cookie.
Path Parameters
Response
Successful response
False when the wait budget elapsed first; poll operation_id for the report.
The platform's own bastion health view (state, hop, detail) at dispatch time.
The diagnose job's structured snapshot and findings, present once it completed.