Set what a cluster is for
import requests
url = "https://platform.ankra.app/org/clusters/{cluster_id}/criticality"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://platform.ankra.app/org/clusters/{cluster_id}/criticality', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/org/clusters/{cluster_id}/criticality \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"criticality": "production"
}{
"detail": "Cluster not found"
}Clusters
Set what a cluster is for
Records the cluster’s criticality, the denominator the insight scanner grades blast radius against. A production cluster reports exactly as it always has; a lower criticality needs a correspondingly larger blast radius before a finding reaches a severity that opens a ticket.
PUT
/
org
/
clusters
/
{cluster_id}
/
criticality
Set what a cluster is for
import requests
url = "https://platform.ankra.app/org/clusters/{cluster_id}/criticality"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://platform.ankra.app/org/clusters/{cluster_id}/criticality', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/org/clusters/{cluster_id}/criticality \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"criticality": "production"
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Available options:
production, staging, development, disposable