Get a stack's backup posture
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/{stack_name}/backup-posture"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/{stack_name}/backup-posture', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/{stack_name}/backup-posture \
--header 'Authorization: Bearer <token>'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stack_name": "<string>",
"protection_state": "protected",
"stateful": true,
"data_asset_count": 123,
"data_asset_count_known": true,
"database_asset_count": 123,
"last_restore_point_at": "2023-11-07T05:31:56Z",
"last_restore_point_status": "<string>",
"failing_runs_24h": 123,
"next_scheduled_at": "2023-11-07T05:31:56Z",
"last_complete_restore_point_at": "2023-11-07T05:31:56Z",
"last_complete_not_carried": 123,
"stale": true,
"not_capturing": true,
"unprotected_reason": "<string>",
"unknown_reason": "<string>",
"vault_name": "<string>",
"vault_state": "<string>",
"schedule": "<string>",
"last_complete_consistency": "<string>",
"stale_reason": "<string>",
"not_capturing_reason": "<string>",
"not_capturing_action": "<string>",
"backup_path_detail": "<string>"
}Backups
Get a stack's backup posture
Answers whether one stack’s data is protected, and if not, why not: its policy, vault, schedule, last restore points, failing runs and whether captures are being skipped. Requires backups.read.
GET
/
api
/
v1
/
org
/
clusters
/
imported
/
{cluster_id}
/
stacks
/
{stack_name}
/
backup-posture
Get a stack's backup posture
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/{stack_name}/backup-posture"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/{stack_name}/backup-posture', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/clusters/imported/{cluster_id}/stacks/{stack_name}/backup-posture \
--header 'Authorization: Bearer <token>'{
"cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stack_name": "<string>",
"protection_state": "protected",
"stateful": true,
"data_asset_count": 123,
"data_asset_count_known": true,
"database_asset_count": 123,
"last_restore_point_at": "2023-11-07T05:31:56Z",
"last_restore_point_status": "<string>",
"failing_runs_24h": 123,
"next_scheduled_at": "2023-11-07T05:31:56Z",
"last_complete_restore_point_at": "2023-11-07T05:31:56Z",
"last_complete_not_carried": 123,
"stale": true,
"not_capturing": true,
"unprotected_reason": "<string>",
"unknown_reason": "<string>",
"vault_name": "<string>",
"vault_state": "<string>",
"schedule": "<string>",
"last_complete_consistency": "<string>",
"stale_reason": "<string>",
"not_capturing_reason": "<string>",
"not_capturing_action": "<string>",
"backup_path_detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The imported cluster.
The stack's name on the cluster.
Response
The stack's posture.
Whether a stack's data is protected, and if not, why not.
Available options:
protected, unprotected, unknown False when the count was not established; the count is then not zero but unknown.
A protected stack whose scheduled backups are skipped until its owner acts.