Get the cluster agent's extra tolerations
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/agent/tolerations"
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}/agent/tolerations', 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}/agent/tolerations \
--header 'Authorization: Bearer <token>'{
"tolerations": [
{
"key": "<string>",
"operator": "Equal",
"effect": "NoSchedule",
"value": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"apply_state": "not_set",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Clusters
Get the cluster agent's extra tolerations
Returns the extra tolerations Ankra holds for the cluster’s agent (an empty list when it holds none) and what they are doing now: apply_state not_set, applied, pending_upgrade or agent_offline, with a message to show verbatim. They are added to the tolerations the agent’s own Helm release lists, which this does not return. The bearer twin of ankra cluster agent tolerations get.
GET
/
api
/
v1
/
org
/
clusters
/
{cluster_id}
/
agent
/
tolerations
Get the cluster agent's extra tolerations
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/agent/tolerations"
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}/agent/tolerations', 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}/agent/tolerations \
--header 'Authorization: Bearer <token>'{
"tolerations": [
{
"key": "<string>",
"operator": "Equal",
"effect": "NoSchedule",
"value": "<string>"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"apply_state": "not_set",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Response
Successful Response