import requests
url = "https://api.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://api.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://api.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://api.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://api.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://api.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
Path Parameters
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.
Response
The restore run was opened.