import requests
url = "https://platform.ankra.app/org/applications/{application_id}/deployments/park"
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/park', 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/park \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cluster_id": "<string>",
"namespace": "<string>"
}
'{
"cluster_id": "<string>",
"namespace": "<string>",
"parked": true,
"replicas": "<string>",
"parked_replicas": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Park an application deployment
Park one deployment of this application: scale its workload to zero replicas on purpose, remembering the prior replica count as parked_replicas inside the stored deploy parameters. The write is the rollback’s partial-update shape - one jsonb update of the stored inputs plus the platform’s existing deploy job - and the push-to-deploy watermark is moved onto the newest observed build first so a build observed before the park is not converged onto the resting workload. The installation, its manifests and its published Ingress host all stay: parked is a deliberate rest, never not_deployed. 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/park"
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/park', 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/park \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cluster_id": "<string>",
"namespace": "<string>"
}
'{
"cluster_id": "<string>",
"namespace": "<string>",
"parked": true,
"replicas": "<string>",
"parked_replicas": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Response
Successful Response
The deployment's rest state after a park or a wake: whether it is parked, the replica count it is converging to, and the remembered count a wake restores (null after a wake).