import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_name}/upgrade"
payload = { "chart_version": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({chart_version: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_name}/upgrade', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_name}/upgrade \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chart_version": "<string>"
}
'{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Change an add-on's chart version by rewriting it in its owning stack
Moves one installed add-on to the given chart version. The owning stack is read as the specification that reproduces it, the member’s chart_version is changed, and only that member is written back, so nothing else in the stack is touched. A lower version is a downgrade and is refused with CHART_VERSION_DOWNGRADE unless confirmed_chart_downgrades names that exact move. Answers the stack write payload (operation_id to watch). 404 when the cluster or add-on is unknown, 409 when no Ankra stack owns the add-on or it already runs that version.
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_name}/upgrade"
payload = { "chart_version": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({chart_version: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_name}/upgrade', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_name}/upgrade \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chart_version": "<string>"
}
'{
"detail": "Cluster not found"
}{
"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.
Body
The chart version to move the add-on to.
128Retired. Still accepted as a boolean, but it admits nothing. Send confirmed_chart_downgrades instead.
The chart downgrade the person confirmed after the same request was refused with CHART_VERSION_DOWNGRADE. It admits exactly the move it names; any other downgrade is refused.
200Show child attributes
Show child attributes
Response
Successful Response