import requests
url = "https://platform.ankra.app/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/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/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>",
"reason": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Pause Ankra for an application (browser session)
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/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/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/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>",
"reason": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Optional body of the application pause. Omit it, send {}, or name why the application is paused; nothing else is accepted.
Why the application is paused, shown to whoever reads its pause. Surrounding whitespace is trimmed and an empty reason is stored as none.
500Response
The application's pause as the request left it