Find the image tags that carry a fix (browser session)
import requests
url = "https://api.platform.ankra.app/org/security/fix-candidates"
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/security/fix-candidates', 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/security/fix-candidates \
--cookie ankra_session={
"image": "<string>",
"cve_id": "<string>",
"running": {
"tag": "<string>",
"packages": [
{
"finding_id": "<string>",
"package": "<string>",
"package_type": "<string>",
"installed_version": "<string>",
"fixed_version": "<string>",
"occurrences": 123
}
],
"detail": "<string>",
"digest": "<string>"
},
"answer": {
"smallest_step_with_fix": {
"tag": "<string>",
"pin": "<string>",
"verdict": "carries_fix"
},
"newest_release": {
"tag": "<string>",
"pin": "<string>",
"verdict": "carries_fix"
},
"summary": "<string>"
},
"candidates": [
{
"tag": "<string>",
"line": "<string>",
"same_line": true,
"index_digest": "<string>",
"pin": "<string>",
"verdict": "carries_fix",
"evidence": [
{
"package": "<string>",
"verdict": "carries_fix",
"source": "finding_occurrence",
"detail": "<string>",
"installed_version": "<string>",
"fixed_version": "<string>"
}
],
"registry_detail": "<string>"
}
],
"registry": {
"registry": "<string>",
"repository": "<string>",
"state": "read",
"tags_listed": 123,
"listing_complete": true,
"newer_tags": 123,
"manifests_read": 123,
"detail": "<string>"
},
"unexamined_tags": [
"<string>"
],
"how_to_read": "<string>"
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Security
Find the image tags that carry a fix (browser session)
Which newer tags of an image carry the fix for one vulnerability: the registry’s tag listing, each candidate’s verdict (carries_fix, still_affected or not_scanned) and the evidence for it, read from the findings, scans and bills of materials Ankra already holds. A registry that could not be read, a listing cut at its budget and newer tags left unexamined are said in the answer, never answered as an empty list. A read: nothing is changed.
GET
/
org
/
security
/
fix-candidates
Find the image tags that carry a fix (browser session)
import requests
url = "https://api.platform.ankra.app/org/security/fix-candidates"
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/security/fix-candidates', 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/security/fix-candidates \
--cookie ankra_session={
"image": "<string>",
"cve_id": "<string>",
"running": {
"tag": "<string>",
"packages": [
{
"finding_id": "<string>",
"package": "<string>",
"package_type": "<string>",
"installed_version": "<string>",
"fixed_version": "<string>",
"occurrences": 123
}
],
"detail": "<string>",
"digest": "<string>"
},
"answer": {
"smallest_step_with_fix": {
"tag": "<string>",
"pin": "<string>",
"verdict": "carries_fix"
},
"newest_release": {
"tag": "<string>",
"pin": "<string>",
"verdict": "carries_fix"
},
"summary": "<string>"
},
"candidates": [
{
"tag": "<string>",
"line": "<string>",
"same_line": true,
"index_digest": "<string>",
"pin": "<string>",
"verdict": "carries_fix",
"evidence": [
{
"package": "<string>",
"verdict": "carries_fix",
"source": "finding_occurrence",
"detail": "<string>",
"installed_version": "<string>",
"fixed_version": "<string>"
}
],
"registry_detail": "<string>"
}
],
"registry": {
"registry": "<string>",
"repository": "<string>",
"state": "read",
"tags_listed": 123,
"listing_complete": true,
"newer_tags": 123,
"manifests_read": 123,
"detail": "<string>"
},
"unexamined_tags": [
"<string>"
],
"how_to_read": "<string>"
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Query Parameters
Response
Successful response
Which newer tags of an image carry the fix for one vulnerability, read from what Ankra has already scanned. A registry that could not be read is named in registry.state, never answered as an empty list.