Security filter options
import requests
url = "https://platform.ankra.app/org/security/filter-options"
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/org/security/filter-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/security/filter-options \
--header 'Authorization: Bearer <token>'{
"namespaces": [
"<string>"
],
"addon_slugs": [
"<string>"
]
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}security
Security filter options
The values the namespace and add-on filters can match: the distinct namespaces and high-confidence add-on slugs on the organisation’s active occurrences, narrowed to one cluster when cluster_id is given. Feeds the console’s filter pickers, so every value returned filters the findings and workloads lists to a non-empty result.
GET
/
org
/
security
/
filter-options
Security filter options
import requests
url = "https://platform.ankra.app/org/security/filter-options"
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/org/security/filter-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/security/filter-options \
--header 'Authorization: Bearer <token>'{
"namespaces": [
"<string>"
],
"addon_slugs": [
"<string>"
]
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Response
Successful response