Read node cloud-init log
import requests
url = "https://platform.ankra.app/api/v1/clusters/morpheus/{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/morpheus/{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/morpheus/{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"
}HPE Morpheus Clusters
Read node cloud-init log
Reads the node’s cloud-init status and the tail of /var/log/cloud-init-output.log over the platform’s bastion SSH lane, on providers whose nodes it can reach. Proxmox VE and HPE Morpheus nodes sit behind an on-premises jump host the node remediation jobs cannot reach yet, so on a HPE Morpheus cluster the route answers 409 naming the unsupported provider.
POST
/
api
/
v1
/
clusters
/
morpheus
/
{cluster_id}
/
nodes
/
{node_id}
/
cloud-init-log
Read node cloud-init log
import requests
url = "https://platform.ankra.app/api/v1/clusters/morpheus/{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/morpheus/{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/morpheus/{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.