Get organisation security history
import requests
url = "https://platform.ankra.app/api/v1/org/security/history"
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/security/history', 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/security/history \
--header 'Authorization: Bearer <token>'{
"days": 123,
"clusters_in_scope": 123,
"items": [
{
"date": "2023-12-25",
"clusters_reporting": 123,
"critical": 123,
"high": 123,
"medium": 123,
"low": 123,
"unknown": 123,
"fixable_critical": 123,
"fixable_high": 123,
"known_exploited": 123,
"accepted_risk": 123
}
]
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Security
Get organisation security history
Returns the organisation’s daily security posture over the last days UTC days (default 90, at most 365): per day, the clusters reporting and the sums of their actionable critical, high, medium, low and unknown occurrences, the fixable critical and high ones, the distinct CISA known-exploited CVEs and the accepted-risk occurrences. Optionally narrowed with cluster_id; requires security.read.
GET
/
api
/
v1
/
org
/
security
/
history
Get organisation security history
import requests
url = "https://platform.ankra.app/api/v1/org/security/history"
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/security/history', 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/security/history \
--header 'Authorization: Bearer <token>'{
"days": 123,
"clusters_in_scope": 123,
"items": [
{
"date": "2023-12-25",
"clusters_reporting": 123,
"critical": 123,
"high": 123,
"medium": 123,
"low": 123,
"unknown": 123,
"fixable_critical": 123,
"fixable_high": 123,
"known_exploited": 123,
"accepted_risk": 123
}
]
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Query Parameters
Response
The daily posture, oldest day first.
The organisation's daily security posture over the window, oldest day first. A cluster reports on a day from its newest daily snapshot dated that day or up to two days before; a day no cluster reports on is left out rather than listed as zero.