Upgrade K8S Version
import requests
url = "https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/upgrade-k8s-version"
payload = { "target_version": "1.31.4" }
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({target_version: '1.31.4'})
};
fetch('https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/upgrade-k8s-version', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/upgrade-k8s-version \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '
{
"target_version": "1.31.4"
}
'{
"new_version": "<string>",
"nodes_affected": 123,
"previous_version": "<string>",
"operation_id": "<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
Upgrade K8S Version
Browser session authentication; RBAC permission clusters.operate.
POST
/
org
/
clusters
/
scaleway
/
{cluster_id}
/
upgrade-k8s-version
Upgrade K8S Version
import requests
url = "https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/upgrade-k8s-version"
payload = { "target_version": "1.31.4" }
headers = {
"cookie": "ankra_session=",
"X-Ankra-CSRF": "<x-ankra-csrf>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
cookie: 'ankra_session=',
'X-Ankra-CSRF': '<x-ankra-csrf>',
'Content-Type': 'application/json'
},
body: JSON.stringify({target_version: '1.31.4'})
};
fetch('https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/upgrade-k8s-version', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/clusters/scaleway/{cluster_id}/upgrade-k8s-version \
--header 'Content-Type: application/json' \
--header 'X-Ankra-CSRF: <x-ankra-csrf>' \
--cookie ankra_session= \
--data '
{
"target_version": "1.31.4"
}
'{
"new_version": "<string>",
"nodes_affected": 123,
"previous_version": "<string>",
"operation_id": "<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
Browser session. Mutations also require X-Ankra-CSRF.
Headers
Must match the ankra_csrf browser cookie.