import requests
url = "https://platform.ankra.app/api/v1/org/applications/autonomous-actions"
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/autonomous-actions', 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/autonomous-actions \
--header 'Authorization: Bearer <token>'{
"actions": [
{
"id": "<string>",
"kind": "<string>",
"status": "<string>",
"occurred_at": "<string>",
"applications": [
{
"id": "<string>",
"name": "<string>"
}
],
"cluster_name": "<string>",
"namespace": "<string>",
"commit_sha": "<string>",
"ref": "<string>",
"url": "<string>",
"message": "<string>",
"verdict": "<string>",
"pr_number": 123,
"duration_seconds": 123,
"reason": "<string>",
"component": "<string>",
"actor": "ankra",
"rule": "<string>",
"undo": {
"available": true,
"reason": "<string>"
}
}
],
"capped": true,
"capped_sources": [
"remediation_runs"
],
"unavailable_sources": [
"remediation_runs"
]
}List what Ankra did on its own
What Ankra did on its own across every application, newest first: auto-remediation runs on an application’s placements, Cost Autopilot actions the autopilot approved itself on an application’s cluster, and build fixes the automatic lane sent. Each action is one item naming every application it was on, with who acted, the rule that allowed it and whether it can be undone. At most 20 actions; a source with more is named in capped_sources and a source that could not be read in unavailable_sources.
import requests
url = "https://platform.ankra.app/api/v1/org/applications/autonomous-actions"
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/autonomous-actions', 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/autonomous-actions \
--header 'Authorization: Bearer <token>'{
"actions": [
{
"id": "<string>",
"kind": "<string>",
"status": "<string>",
"occurred_at": "<string>",
"applications": [
{
"id": "<string>",
"name": "<string>"
}
],
"cluster_name": "<string>",
"namespace": "<string>",
"commit_sha": "<string>",
"ref": "<string>",
"url": "<string>",
"message": "<string>",
"verdict": "<string>",
"pr_number": 123,
"duration_seconds": 123,
"reason": "<string>",
"component": "<string>",
"actor": "ankra",
"rule": "<string>",
"undo": {
"available": true,
"reason": "<string>"
}
}
],
"capped": true,
"capped_sources": [
"remediation_runs"
],
"unavailable_sources": [
"remediation_runs"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response
Show child attributes
Show child attributes
True when more actions exist than the response carries.
Each source that had more actions than it returned.
remediation_runs, autopilot_actions, build_fixes Each source that could not be read. An empty actions list beside one is not "Ankra did nothing".
remediation_runs, autopilot_actions, build_fixes