Read stack profile summary evidence
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/versions/{version}/summary/evidence/{fact_id}"
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/stack-profiles/{profile_id}/versions/{version}/summary/evidence/{fact_id}', 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/stack-profiles/{profile_id}/versions/{version}/summary/evidence/{fact_id} \
--header 'Authorization: Bearer <token>'{
"summary_revision": 2,
"fact": {
"id": "<string>",
"resource_id": "<string>",
"predicate": "log_collection",
"subject_id": "<string>",
"applicability": "fixed",
"evidence": [
{
"resource_id": "<string>",
"document": 1,
"path": "<string>",
"artifact_digest": "<string>"
}
],
"enabled": true,
"count": 1,
"scope_id": "<string>",
"condition": {
"operator": "equals",
"parameter_id": "<string>",
"equals": true,
"children": "<array>"
}
}
}Stack Profiles
Read stack profile summary evidence
Reads and decisions use the primary database with fresh permission, credential and source checks. Responses are private/no-store. Summary revisions never create or advance a workload profile version. No request accepts snapshots, approval identities or provider configuration.
GET
/
api
/
v1
/
org
/
stack-profiles
/
{profile_id}
/
versions
/
{version}
/
summary
/
evidence
/
{fact_id}
Read stack profile summary evidence
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/{profile_id}/versions/{version}/summary/evidence/{fact_id}"
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/stack-profiles/{profile_id}/versions/{version}/summary/evidence/{fact_id}', 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/stack-profiles/{profile_id}/versions/{version}/summary/evidence/{fact_id} \
--header 'Authorization: Bearer <token>'{
"summary_revision": 2,
"fact": {
"id": "<string>",
"resource_id": "<string>",
"predicate": "log_collection",
"subject_id": "<string>",
"applicability": "fixed",
"evidence": [
{
"resource_id": "<string>",
"document": 1,
"path": "<string>",
"artifact_digest": "<string>"
}
],
"enabled": true,
"count": 1,
"scope_id": "<string>",
"condition": {
"operator": "equals",
"parameter_id": "<string>",
"equals": true,
"children": "<array>"
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Required range:
x >= 1Pattern:
^[a-z][a-z0-9_-]{0,63}$