Decommission ArgoCD on a cluster
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/decommission-argocd"
payload = { "allow_warnings": False }
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({allow_warnings: false})
};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/decommission-argocd', 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}/decommission-argocd \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allow_warnings": false
}
'{
"execution_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addon_migrations": [
{
"addon_name": "<string>",
"addon_resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"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"
}Imported Clusters
Decommission ArgoCD on a cluster
The bearer twin of the portal’s ArgoCD decommission, for the Ankra app and scripts. Starts the run that migrates each ArgoCD-managed add-on to Ankra’s own engine and removes the Ankra ArgoCD user; the ArgoCD installation itself stays. Run the preflight scan first. Answers 400 with the blockers when the preflight refuses (warnings refuse too unless allow_warnings), 409 while a decommission or scan is running, and the already_decommissioned shape when there is nothing to do. Requires clusters.write on the cluster.
POST
/
api
/
v1
/
org
/
clusters
/
imported
/
{cluster_id}
/
decommission-argocd
Decommission ArgoCD on a cluster
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/decommission-argocd"
payload = { "allow_warnings": False }
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({allow_warnings: false})
};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/decommission-argocd', 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}/decommission-argocd \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"allow_warnings": false
}
'{
"execution_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addon_migrations": [
{
"addon_name": "<string>",
"addon_resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"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
Body
application/json