Update Taints Endpoint
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": ""
}
]
}
'{
"group_name": "<string>",
"updated": 123
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}OVH Clusters
Update Taints Endpoint
PUT
/
api
/
v1
/
clusters
/
ovh
/
{cluster_id}
/
node-groups
/
{group_name}
/
taints
Update Taints Endpoint
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": ""
}
]
}
'{
"group_name": "<string>",
"updated": 123
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Body
application/json
Show child attributes
Show child attributes