Read a stack profile summary generation
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/summary-generations/{generation_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/summary-generations/{generation_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/summary-generations/{generation_id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "queued",
"review_state": "unreviewed",
"revision": 2,
"candidate_revision": 1,
"summary_revision": 1,
"source_revision": 2,
"outcomes": [
{
"kind": "logging",
"claims": [
{
"fact_id": "<string>",
"resource_id": "<string>",
"subject_id": "<string>",
"statement": "<string>",
"applicability": "fixed",
"scope_id": "<string>",
"condition": {
"operator": "equals",
"parameter_id": "<string>",
"equals": true,
"children": "<array>"
}
}
]
}
],
"selection": [
{
"kind": "logging",
"fact_ids": [
"<string>"
]
}
],
"facts": [
{
"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>"
}
}
],
"coverage": [
{
"resource_id": "<string>",
"reason": "unsupported_format"
}
],
"parameters": [
{
"id": "<string>",
"default": true
}
],
"error_code": "quota_exceeded"
}Stack Profiles
Read a stack profile summary generation
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
/
summary-generations
/
{generation_id}
Read a stack profile summary generation
import requests
url = "https://platform.ankra.app/api/v1/org/stack-profiles/summary-generations/{generation_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/summary-generations/{generation_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/summary-generations/{generation_id} \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "queued",
"review_state": "unreviewed",
"revision": 2,
"candidate_revision": 1,
"summary_revision": 1,
"source_revision": 2,
"outcomes": [
{
"kind": "logging",
"claims": [
{
"fact_id": "<string>",
"resource_id": "<string>",
"subject_id": "<string>",
"statement": "<string>",
"applicability": "fixed",
"scope_id": "<string>",
"condition": {
"operator": "equals",
"parameter_id": "<string>",
"equals": true,
"children": "<array>"
}
}
]
}
],
"selection": [
{
"kind": "logging",
"fact_ids": [
"<string>"
]
}
],
"facts": [
{
"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>"
}
}
],
"coverage": [
{
"resource_id": "<string>",
"reason": "unsupported_format"
}
],
"parameters": [
{
"id": "<string>",
"default": true
}
],
"error_code": "quota_exceeded"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Current authorized summary state
Available options:
queued, running, succeeded, failed, cancelled, expired, superseded Available options:
unreviewed, approved, rejected, stale Required range:
x >= 1Required range:
x >= 0Current approved-pointer revision to supply as expected_approved_revision when reviewing; advances on withdrawal too.
Required range:
x >= 0Required range:
x >= 1Maximum array length:
5Show child attributes
Show child attributes
Maximum array length:
5Show child attributes
Show child attributes
Maximum array length:
512Show child attributes
Show child attributes
Maximum array length:
256Show child attributes
Show child attributes
Maximum array length:
64Show child attributes
Show child attributes
Available options:
quota_exceeded, provider_unavailable, unsupported_source, stale_source, invalid_output, cancelled, timed_out, permission_denied