List what Ankra did on its own (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/autonomous-actions"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/autonomous-actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/autonomous-actions \
--cookie ankra_session={
"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>"
},
"actor_name": "<string>",
"image_tag": "<string>",
"previous_image_tag": "<string>",
"environment_id": "<string>",
"commit_subject": "<string>",
"commit_author": "<string>",
"commit_author_login": "<string>",
"commit_pushed_at": "2023-11-07T05:31:56Z",
"cluster_outside_projects": true,
"schedule": {
"source": "pipeline",
"cron": "<string>",
"timezone": "<string>",
"ref": "<string>",
"schedule_id": "<string>",
"is_cron_current": true
}
}
],
"capped": true,
"capped_sources": [
"remediation_runs"
],
"unavailable_sources": [
"remediation_runs"
]
}Applications
List what Ankra did on its own (browser session)
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.
GET
/
org
/
applications
/
autonomous-actions
List what Ankra did on its own (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/autonomous-actions"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/autonomous-actions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/autonomous-actions \
--cookie ankra_session={
"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>"
},
"actor_name": "<string>",
"image_tag": "<string>",
"previous_image_tag": "<string>",
"environment_id": "<string>",
"commit_subject": "<string>",
"commit_author": "<string>",
"commit_author_login": "<string>",
"commit_pushed_at": "2023-11-07T05:31:56Z",
"cluster_outside_projects": true,
"schedule": {
"source": "pipeline",
"cron": "<string>",
"timezone": "<string>",
"ref": "<string>",
"schedule_id": "<string>",
"is_cron_current": true
}
}
],
"capped": true,
"capped_sources": [
"remediation_runs"
],
"unavailable_sources": [
"remediation_runs"
]
}Authorizations
Response
200 - application/json
Successful Response