import requests
url = "https://platform.ankra.app/org/applications/{application_id}/deployments/remove"
payload = {
"cluster_id": "<string>",
"namespace": "<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({cluster_id: '<string>', namespace: '<string>'})
};
fetch('https://platform.ankra.app/org/applications/{application_id}/deployments/remove', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/applications/{application_id}/deployments/remove \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cluster_id": "<string>",
"namespace": "<string>"
}
'{
"cluster_id": "<string>",
"namespace": "<string>",
"installation_id": "<string>",
"operation_id": "<string>",
"status": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Remove an application deployment from one cluster
Remove one deployment of this application: take it off one cluster and namespace while the application and its other deployments stay. The installation is marked removing and the same undeploy job an application delete enqueues per installation is enqueued for it; the job removes the deploy stack it can prove belongs to this application (shared operators are kept) and deletes the installation once the cluster has it. The application, its env secrets, images and pipeline history are kept. While the removal runs, a deploy to the same cluster and namespace is refused with 409. Held to the applications.deploy permission. Browser session authentication with the X-Ankra-CSRF double-submit header only (no bearer twin).
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/deployments/remove"
payload = {
"cluster_id": "<string>",
"namespace": "<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({cluster_id: '<string>', namespace: '<string>'})
};
fetch('https://platform.ankra.app/org/applications/{application_id}/deployments/remove', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/org/applications/{application_id}/deployments/remove \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cluster_id": "<string>",
"namespace": "<string>"
}
'{
"cluster_id": "<string>",
"namespace": "<string>",
"installation_id": "<string>",
"operation_id": "<string>",
"status": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Response
The removal was accepted and its teardown job enqueued
The accepted removal: the deployment, its installation, and the teardown operation following it. The installation reads removing until the teardown deletes it, or failed with its reason.