latestOpenAPI 3.1.02026-08-236994571.1 MB

79928a3d37d3

Policies

List Policy Attachments

List all policy attachments from the database.

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
}
get/policies/attachments/list

Response

Successful Response

total_countinteger

Total number of attachments.