Scan a cluster for ArgoCD applications
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/decommission-argocd/preflight/scan"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/decommission-argocd/preflight/scan', 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/preflight/scan \
--header 'Authorization: Bearer <token>'{
"execution_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Cluster not found"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Imported Clusters
Scan a cluster for ArgoCD applications
The bearer twin of the portal’s ArgoCD preflight scan, for the Ankra app and scripts. Schedules the scan that lists the ArgoCD applications on the cluster Ankra did not create, which the decommission preflight reads. A sandbox cluster records an empty scan at once. Answers 409 while a scan is running. Requires clusters.write on the cluster.
POST
/
api
/
v1
/
org
/
clusters
/
imported
/
{cluster_id}
/
decommission-argocd
/
preflight
/
scan
Scan a cluster for ArgoCD applications
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/decommission-argocd/preflight/scan"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/decommission-argocd/preflight/scan', 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/preflight/scan \
--header 'Authorization: Bearer <token>'{
"execution_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Cluster not found"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}