List Policy Attachments
List all policy attachments from the database and config.yaml.
Config-defined attachments are returned with definition_location "config" and a synthetic attachment_id ("config-<index>").
Example Request:
curl -X GET "http://localhost:4000/policies/attachments/list" \
-H "Authorization: Bearer <your_api_key>"
Example Response:
{
"attachments": [
{
"attachment_id": "123e4567-e89b-12d3-a456-426614174000",
"policy_name": "global-baseline",
"scope": "*",
"teams": [],
"keys": [],
"models": [],
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"total_count": 1
}
Response
Successful Response
Changes
Changed in 14 of the 42 revisions of this API.29
- ○
api tag
policy_engineaddedapi-tag-added
- ○
api tag
Policiesremovedapi-tag-removed
- ○
- ○
api tag
Policiesaddedapi-tag-added
- ○
api tag
policy_engineremovedapi-tag-removed
- ○
- ○
api tag
policy_engineaddedapi-tag-added
- ○
api tag
Policiesremovedapi-tag-removed
- ○
- ○
api tag
Policiesaddedapi-tag-added
- ○
api tag
policy_engineremovedapi-tag-removed
- ○
- ○
api tag
policy_engineaddedapi-tag-added
- ○
api tag
Policiesremovedapi-tag-removed
- ○
- ○
api tag
Policiesaddedapi-tag-added
- ○
api tag
policy_engineremovedapi-tag-removed
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
policy_engineaddedapi-tag-added
- ○
api tag
Policiesremovedapi-tag-removed
- ○
- ○
api tag
Policiesaddedapi-tag-added
- ○
api tag
policy_engineremovedapi-tag-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
policy_engineaddedapi-tag-added
- ○
api tag
Policiesremovedapi-tag-removed
This revision also has 17 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
Policiesaddedapi-tag-added
- ○
api tag
policy_engineremovedapi-tag-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○