Uninstall an add-on
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_resource_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_resource_id} \
--header 'Authorization: Bearer <token>'{
"marked_for_uninstall": true,
"commit_deferred": true,
"commit_sha": "<string>",
"commit_url": "<string>",
"pending_cluster_start": true
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Imported Clusters
Uninstall an add-on
Uninstalls an add-on from the cluster: in-flight changes to it are cancelled and it is marked for removal. Pass delete=true to remove it permanently and force=true to force-delete an add-on that is stuck uninstalling. On a stopped cluster a permanent, unforced removal is recorded and pushed to Git at once, and the add-on is uninstalled once the cluster is running or online (pending_cluster_start is true). While a namespace move of the add-on is still running the uninstall is refused with 422 and the error_code NAMESPACE_MOVE_IN_FLIGHT: nothing is cancelled or removed, and the same uninstall is accepted once the move’s operation has finished.
DELETE
/
api
/
v1
/
org
/
clusters
/
imported
/
{cluster_id}
/
addons
/
{addon_resource_id}
Uninstall an add-on
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_resource_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/addons/{addon_resource_id} \
--header 'Authorization: Bearer <token>'{
"marked_for_uninstall": true,
"commit_deferred": true,
"commit_sha": "<string>",
"commit_url": "<string>",
"pending_cluster_start": true
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Response
Successful Response