Update node-group taints (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/scaleway/{cluster_id}/node-groups/{group_name}/taints"
payload = { "taints": [
{
"key": "<string>",
"value": ""
}
] }
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({taints: [{key: '<string>', value: ''}]})
};
fetch('https://api.platform.ankra.app/org/clusters/scaleway/{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://api.platform.ankra.app/org/clusters/scaleway/{cluster_id}/node-groups/{group_name}/taints \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--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": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Scaleway Clusters
Update node-group taints (browser session)
Browser session authentication; RBAC permission clusters.write. PAT mutations support wait=false where implemented; browser mutations require CSRF.
PUT
/
org
/
clusters
/
scaleway
/
{cluster_id}
/
node-groups
/
{group_name}
/
taints
Update node-group taints (browser session)
import requests
url = "https://api.platform.ankra.app/org/clusters/scaleway/{cluster_id}/node-groups/{group_name}/taints"
payload = { "taints": [
{
"key": "<string>",
"value": ""
}
] }
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({taints: [{key: '<string>', value: ''}]})
};
fetch('https://api.platform.ankra.app/org/clusters/scaleway/{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://api.platform.ankra.app/org/clusters/scaleway/{cluster_id}/node-groups/{group_name}/taints \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--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": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Response
Successful response
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).
Available options:
started, deferred, none