List an application's security fixes (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/security-fixes"
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/{application_id}/security-fixes', 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/{application_id}/security-fixes \
--cookie ankra_session={
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fixes": [
{
"attempts": 123,
"checks": {
"pipeline_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "running",
"url": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"findings": [
{
"from": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"package": "<string>",
"severity": "<string>",
"to": "<string>",
"vulnerability_id": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "image_rebuild",
"max_attempts": 123,
"merge": {
"approved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"can_approve": true,
"merged_at": "2023-11-07T05:31:56Z",
"mode": "wait_for_you",
"state": "not_ready"
},
"pull_request": {
"branch": "<string>",
"head_sha": "<string>",
"number": 123,
"repository": "<string>",
"url": "<string>"
},
"review": {
"findings_addressed": 123,
"findings_open": 123,
"state": "none"
},
"started_by": {
"actor": "person",
"trigger": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"status": "working",
"status_reason": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Applications
List an application's security fixes (browser session)
Every security fix pull request opened for the application’s findings, newest first (at most 50), each with the remediation run that follows it: the findings it fixes, the checks on its latest pipeline run, the AI review of its head, and whether Ankra merges it when green or waits for a person. Requires applications.read.
GET
/
org
/
applications
/
{application_id}
/
security-fixes
List an application's security fixes (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/security-fixes"
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/{application_id}/security-fixes', 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/{application_id}/security-fixes \
--cookie ankra_session={
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fixes": [
{
"attempts": 123,
"checks": {
"pipeline_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "running",
"url": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"findings": [
{
"from": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"package": "<string>",
"severity": "<string>",
"to": "<string>",
"vulnerability_id": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "image_rebuild",
"max_attempts": 123,
"merge": {
"approved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"can_approve": true,
"merged_at": "2023-11-07T05:31:56Z",
"mode": "wait_for_you",
"state": "not_ready"
},
"pull_request": {
"branch": "<string>",
"head_sha": "<string>",
"number": 123,
"repository": "<string>",
"url": "<string>"
},
"review": {
"findings_addressed": 123,
"findings_open": 123,
"state": "none"
},
"started_by": {
"actor": "person",
"trigger": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"status": "working",
"status_reason": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}