List an add-on's chart rollbacks
import requests
url = "https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/addons/{addon_name}/rollbacks"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/addons/{addon_name}/rollbacks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/addons/{addon_name}/rollbacks \
--cookie ankra_session={
"addon_name": "<string>",
"rollbacks": [
{
"rolled_back_at": "2023-11-07T05:31:56Z",
"from_version": "<string>",
"to_version": "<string>",
"basis": "declared_rollback",
"reason": "<string>",
"stack_name": "<string>",
"chart_name": "<string>",
"channel": "<string>",
"user_id": "<string>",
"user_email": "<string>",
"user_name": "<string>"
}
],
"truncated": true
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Imported Clusters
List an add-on's chart rollbacks
Lists the recorded backward chart moves of one add-on, most recent first: when, from and to which version, on what basis (declared_rollback, with the person’s reason, or confirmed, a downgrade confirmed on a stack write, without one), in which stack, and by whom. It records what the stack declares, not what the cluster runs. Needs stacks.read on the cluster; an empty list is an add-on with no recorded rollback, and truncated is true when more than the 50 returned rows are stored.
GET
/
org
/
clusters
/
imported
/
{cluster_id}
/
addons
/
{addon_name}
/
rollbacks
List an add-on's chart rollbacks
import requests
url = "https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/addons/{addon_name}/rollbacks"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/addons/{addon_name}/rollbacks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/clusters/imported/{cluster_id}/addons/{addon_name}/rollbacks \
--cookie ankra_session={
"addon_name": "<string>",
"rollbacks": [
{
"rolled_back_at": "2023-11-07T05:31:56Z",
"from_version": "<string>",
"to_version": "<string>",
"basis": "declared_rollback",
"reason": "<string>",
"stack_name": "<string>",
"chart_name": "<string>",
"channel": "<string>",
"user_id": "<string>",
"user_email": "<string>",
"user_name": "<string>"
}
],
"truncated": true
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}