Read what a cluster is for
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/criticality"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/criticality', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/criticality \
--header 'Authorization: Bearer <token>'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"criticality": "production"
}Clusters
Read what a cluster is for
Reports the cluster’s criticality, the denominator the insight scanner grades blast radius against. Clusters that have never been classified read as production, which is the column’s default and the value the grading falls back to.
This is the API-token route. It requires clusters.read on the cluster, and a token’s scopes narrow it.
GET
/
api
/
v1
/
org
/
clusters
/
{cluster_id}
/
criticality
Read what a cluster is for
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/criticality"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/criticality', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/criticality \
--header 'Authorization: Bearer <token>'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"criticality": "production"
}