Read an approved stack profile summary (browser session)
import requests
url = "https://api.platform.ankra.app/org/stack-profiles/{profile_id}/versions/{version}/summary"
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/stack-profiles/{profile_id}/versions/{version}/summary', 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/stack-profiles/{profile_id}/versions/{version}/summary \
--cookie ankra_session={
"state": "available",
"summary_revision": 1,
"schema_version": 1,
"policy_version": "<string>",
"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>"
}
}
]
}
],
"coverage": [
{
"resource_id": "<string>",
"reason": "unsupported_format"
}
],
"parameters": [
{
"id": "<string>",
"default": true
}
]
}Stack Profiles
Read an approved stack profile summary (browser session)
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
/
org
/
stack-profiles
/
{profile_id}
/
versions
/
{version}
/
summary
Read an approved stack profile summary (browser session)
import requests
url = "https://api.platform.ankra.app/org/stack-profiles/{profile_id}/versions/{version}/summary"
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/stack-profiles/{profile_id}/versions/{version}/summary', 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/stack-profiles/{profile_id}/versions/{version}/summary \
--cookie ankra_session={
"state": "available",
"summary_revision": 1,
"schema_version": 1,
"policy_version": "<string>",
"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>"
}
}
]
}
],
"coverage": [
{
"resource_id": "<string>",
"reason": "unsupported_format"
}
],
"parameters": [
{
"id": "<string>",
"default": true
}
]
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.
Response
Current authorized summary state
- Option 1
- Option 2
- Option 3
Exact-version approved projection. Database failures are errors, never absent. With no approved summary, retain the existing profile description and resource inventory.
Available options:
available Required range:
x >= 0Available options:
1 Maximum array length:
5Show child attributes
Show child attributes
Maximum array length:
256Show child attributes
Show child attributes
Maximum array length:
64Show child attributes
Show child attributes