import requests
url = "https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/node-groups/{group_name}/taints"
payload = { "taints": [
{
"key": "<string>",
"value": ""
}
] }
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({taints: [{key: '<string>', value: ''}]})
};
fetch('https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/node-groups/{group_name}/taints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/node-groups/{group_name}/taints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taints": [
{
"key": "<string>",
"value": ""
}
]
}
'{
"dispatch": "started",
"group_name": "<string>",
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated": 123,
"dispatch_reason": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Update node-group taints
Replaces the taints on every node in the node group with the given taints list (each a key, an optional value and an effect of NoSchedule, PreferNoSchedule or NoExecute). By default the change runs in the background and the call answers 202 {"status": "accepted"} (409 if the same change is already in flight); pass wait=true to run it in the request and receive the result.
import requests
url = "https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/node-groups/{group_name}/taints"
payload = { "taints": [
{
"key": "<string>",
"value": ""
}
] }
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({taints: [{key: '<string>', value: ''}]})
};
fetch('https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/node-groups/{group_name}/taints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/api/v1/clusters/ovh/{cluster_id}/node-groups/{group_name}/taints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"taints": [
{
"key": "<string>",
"value": ""
}
]
}
'{
"dispatch": "started",
"group_name": "<string>",
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated": 123,
"dispatch_reason": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Response
Successful Response
- UpdateNodeGroupResult
- AsyncWriteAcceptedResponse
What the write did about the operation that applies it. started: operation_id names it, created in the same transaction as the write. deferred: the change is stored but no operation was started for it now; dispatch_reason says why and what applies it instead (the reconcile loop once a running operation has finished, or the cluster's next start). none: the write left nothing for an operation to apply (a scale to the group's current count, a removal on a stopped cluster, which the write applies to the group's records itself).
started, deferred, none