Read node cloud-init log
import requests
url = "https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/nodes/{node_id}/cloud-init-log"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/nodes/{node_id}/cloud-init-log', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/nodes/{node_id}/cloud-init-log \
--header 'Authorization: Bearer <token>'{
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_name": "<string>",
"status": "<string>",
"completed": true,
"attached_to_existing_run": true,
"report": {},
"error_excerpt": "<string>"
}{
"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"
}OVH Clusters
Read node cloud-init log
Bearer PAT authentication; RBAC permission clusters.operate. Dispatches the read-only ovh_node_cloud_init_log job: over the platform’s bastion SSH lane it reads the node’s cloud-init status --long and the tail of /var/log/cloud-init-output.log (the debug surface for node-group user_data), and waits for the report within a bounded budget; a slower job answers the operation ids to poll. Repeated calls attach to an in-flight run instead of dispatching duplicates. Browser mutations require CSRF.
POST
/
api
/
v1
/
clusters
/
ovh
/
{cluster_id}
/
nodes
/
{node_id}
/
cloud-init-log
Read node cloud-init log
import requests
url = "https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/nodes/{node_id}/cloud-init-log"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/nodes/{node_id}/cloud-init-log', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/nodes/{node_id}/cloud-init-log \
--header 'Authorization: Bearer <token>'{
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_name": "<string>",
"status": "<string>",
"completed": true,
"attached_to_existing_run": true,
"report": {},
"error_excerpt": "<string>"
}{
"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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.