import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/autonomy-pause"
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}/autonomy-pause', 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}/autonomy-pause \
--header 'Authorization: Bearer <token>'{
"application_id": "<string>",
"paused": true,
"paused_at": "2023-11-07T05:31:56Z",
"paused_by": "<string>",
"paused_by_name": "<string>",
"paused_by_kind": "member",
"reason": "<string>"
}{
"detail": "<string>"
}Get whether Ankra is paused for an application
Whether a person paused Ankra’s autonomous actions for this application. While it is paused, auto-remediation does not act on the application’s namespaces (or on alerts about a whole cluster it runs on) and Cost Autopilot does not file or run changes on its clusters. Chat and read-only investigation keep working. A failed read is an error, never paused: false.
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/autonomy-pause"
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}/autonomy-pause', 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}/autonomy-pause \
--header 'Authorization: Bearer <token>'{
"application_id": "<string>",
"paused": true,
"paused_at": "2023-11-07T05:31:56Z",
"paused_by": "<string>",
"paused_by_name": "<string>",
"paused_by_kind": "member",
"reason": "<string>"
}{
"detail": "<string>"
}Authorizations
Response
Successful Response
Who paused the application, by name: a member's profile name, else their email, or a service account's name, as last_set.by.name on GET /org/applications/{application_id}/autonomy. Null when the application is not paused, and for every paused_by_kind but member and service_account.
Who paused the application, by kind, as last_set.by.kind on GET /org/applications/{application_id}/autonomy: not_recorded when the pause recorded nobody. Null when the application is not paused. Null on a paused application says nothing about who paused it.
member, ankra, service_account, former_member, not_recorded