Read operating expectations
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/environments/{environment_id}/operating-expectations"
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/applications/{application_id}/environments/{environment_id}/operating-expectations', 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/applications/{application_id}/environments/{environment_id}/operating-expectations \
--header 'Authorization: Bearer <token>'{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current": {
"adopted_at": "2023-11-07T05:31:56Z",
"adopted_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expectations": {
"availability_percent": 95,
"data_loss_minutes": 5040,
"data_region": "eu",
"monthly_budget_cents": 50000000,
"recovery_minutes": 5040,
"retention_days": 1825,
"routine_care": "review_required"
},
"revision": 2
},
"enforcement": "expectations_only",
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recovery_evidence": "unverified",
"history": [
{
"adopted_at": "2023-11-07T05:31:56Z",
"adopted_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expectations": {
"availability_percent": 95,
"data_loss_minutes": 5040,
"data_region": "eu",
"monthly_budget_cents": 50000000,
"recovery_minutes": 5040,
"retention_days": 1825,
"routine_care": "review_required"
},
"revision": 2
}
],
"history_capped": true
}Applications
Read operating expectations
Environment-scoped operating intent. Targets do not provision or certify runtime controls. Adoption checks the reviewed revision and commits intent with an audit record atomically.
GET
/
api
/
v1
/
org
/
applications
/
{application_id}
/
environments
/
{environment_id}
/
operating-expectations
Read operating expectations
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/environments/{environment_id}/operating-expectations"
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/applications/{application_id}/environments/{environment_id}/operating-expectations', 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/applications/{application_id}/environments/{environment_id}/operating-expectations \
--header 'Authorization: Bearer <token>'{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current": {
"adopted_at": "2023-11-07T05:31:56Z",
"adopted_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expectations": {
"availability_percent": 95,
"data_loss_minutes": 5040,
"data_region": "eu",
"monthly_budget_cents": 50000000,
"recovery_minutes": 5040,
"retention_days": 1825,
"routine_care": "review_required"
},
"revision": 2
},
"enforcement": "expectations_only",
"environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recovery_evidence": "unverified",
"history": [
{
"adopted_at": "2023-11-07T05:31:56Z",
"adopted_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expectations": {
"availability_percent": 95,
"data_loss_minutes": 5040,
"data_region": "eu",
"monthly_budget_cents": 50000000,
"recovery_minutes": 5040,
"retention_days": 1825,
"routine_care": "review_required"
},
"revision": 2
}
],
"history_capped": true
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Current operating intent
Show child attributes
Show child attributes
Available options:
expectations_only Available options:
unverified Up to 20 adopted revisions, newest first. Null on the immediate adoption receipt; read again for history.
Show child attributes
Show child attributes