import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/autonomy-pause"
payload = { "reason": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>'})
};
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 PUT \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/autonomy-pause \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>"
}
'{
"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>"
}{
"detail": "<string>"
}Pause Ankra for an application
Pauses Ankra’s autonomous actions for this application. From the next dispatch, 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; a remediation run already acting there stops before its next mutating step and reports the step it did not run. Chat and read-only investigation keep working, and pausing never starts anything. Pausing a paused application changes nothing and answers its current pause. Each change is audited with who made it. Requires applications.write.
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/autonomy-pause"
payload = { "reason": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>'})
};
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 PUT \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/autonomy-pause \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>"
}
'{
"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>"
}{
"detail": "<string>"
}Authorizations
Body
Optional body of the application pause. Omit it, send {}, or name why the application is paused; nothing else is accepted.
Response
The application's pause as the request left it
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