Reconcile a cluster
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/reconcile"
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}/reconcile', 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}/reconcile \
--header 'Authorization: Bearer <token>'{
"created_operations": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Imported Clusters
Reconcile a cluster
Plans and starts the work needed to bring the cluster back in line with its stored specification. Answers 404 when the cluster is not in your organisation. Requires clusters.operate.
POST
/
api
/
v1
/
org
/
clusters
/
imported
/
{cluster_id}
/
reconcile
Reconcile a cluster
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/reconcile"
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}/reconcile', 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}/reconcile \
--header 'Authorization: Bearer <token>'{
"created_operations": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Successful Response