Check cluster mesh readiness
import requests
url = "https://platform.ankra.app/api/v1/org/cluster-meshes/readiness"
payload = { "cluster_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cluster_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://platform.ankra.app/api/v1/org/cluster-meshes/readiness', 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/org/cluster-meshes/readiness \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cluster_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"success": true,
"readiness": {}
}{
"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"
}Cluster Meshes
Check cluster mesh readiness
Answers, for each cluster in cluster_ids, whether it could join a mesh with the others and why not: every checked precondition with its detail and whether an operation on the running cluster can fix it. eligible is the flag to offer the mesh on (a cluster make-ready can prepare is eligible but not ready). A POST because it takes a list; it changes nothing and is authorised as a read (clusters.read). An unknown cluster answers 404. Answers 404 while the organisation’s cluster_mesh feature flag is off.
POST
/
api
/
v1
/
org
/
cluster-meshes
/
readiness
Check cluster mesh readiness
import requests
url = "https://platform.ankra.app/api/v1/org/cluster-meshes/readiness"
payload = { "cluster_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cluster_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://platform.ankra.app/api/v1/org/cluster-meshes/readiness', 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/org/cluster-meshes/readiness \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cluster_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"success": true,
"readiness": {}
}{
"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.
Body
application/json