import requests
url = "https://platform.ankra.app/org/applications/{application_id}/deployments/{deployment_id}/restore-points/{restore_point_id}/restore"
payload = { "confirm": "<string>" }
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({confirm: '<string>'})
};
fetch('https://platform.ankra.app/org/applications/{application_id}/deployments/{deployment_id}/restore-points/{restore_point_id}/restore', 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/{deployment_id}/restore-points/{restore_point_id}/restore \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"confirm": "<string>"
}
'{
"restore_point_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mode": "in_place",
"sequence": [
"<string>"
],
"warnings": [
"<string>"
],
"restore_point": {}
}{
"detail": "<string>",
"error_code": "mode_unsupported"
}{
"detail": "<string>",
"error_code": "mode_unsupported"
}{
"detail": "<string>",
"error_code": "mode_unsupported"
}{
"detail": "<string>",
"error_code": "mode_unsupported"
}Restore an application deployment from a restore point (browser session)
Restores this deployment in place from one of its own restore points. The cluster and stack are resolved from the deployment on the server, and confirm must be that stack’s name. A safety restore point of the live stack is taken first and the restore is refused if it cannot be; the workloads are then scaled down, the claims the restore point replaces are removed, the data is restored and the workloads are scaled back up. A refusal answers with the sentence as detail and a stable error_code. force overrides drift and nothing else. Requires the backups rollout flag and backups.operate.
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/deployments/{deployment_id}/restore-points/{restore_point_id}/restore"
payload = { "confirm": "<string>" }
headers = {
"cookie": "ankra_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'ankra_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({confirm: '<string>'})
};
fetch('https://platform.ankra.app/org/applications/{application_id}/deployments/{deployment_id}/restore-points/{restore_point_id}/restore', 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/{deployment_id}/restore-points/{restore_point_id}/restore \
--header 'Content-Type: application/json' \
--cookie ankra_session= \
--data '
{
"confirm": "<string>"
}
'{
"restore_point_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mode": "in_place",
"sequence": [
"<string>"
],
"warnings": [
"<string>"
],
"restore_point": {}
}{
"detail": "<string>",
"error_code": "mode_unsupported"
}{
"detail": "<string>",
"error_code": "mode_unsupported"
}{
"detail": "<string>",
"error_code": "mode_unsupported"
}{
"detail": "<string>",
"error_code": "mode_unsupported"
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.
Path Parameters
The deployment cluster id.
Body
Confirms an in-place restore of one application deployment. The cluster and the stack are never sent: they are resolved from the deployment on the server.
The deployment's stack name, as the restore plan returns it in stack_name.
Proceed although the stack's data no longer matches the restore point. It overrides drift and no other refusal.
Optional. Any other value is refused rather than read as in_place.
in_place Response
The restore run was opened.
The restore run to follow.
in_place What the restore does, in order. It opens with the safety restore point when one is taken, naming its id.
The restore point being restored, without its manifest.