Get policy audit log
Changed onReturns a filtered, paginated list of policy audit events. Filters match the gateway handler handleListPolicyAudit semantics: action / agent_id / rule_id / type are case-insensitive exact matches; after / before are lexicographic compares against created_at; search is a substring match across action + actor_id + resource_type + resource_id + message lowercased.
Request
- Base URL: http://localhost:8081
- URL: http://localhost:8081/api/v1/policy/audit
- Auth: one of:
- API key in header X-API-Key
- HTTP bearer
Query parameters
Maximum number of entries to return (default 100).
Number of entries to skip (default 0).
Case-insensitive exact match against the entry action verb.
Case-insensitive exact match against the entry's agent_id.
Inclusive lower-bound on created_at. Lexicographic compare on the raw string the backend stores (typically RFC3339).
Exclusive upper-bound on created_at. Lexicographic compare on the raw string the backend stores (typically RFC3339).
Case-insensitive substring search across the lowercased concatenation of `action + actor_id + resource_type + resource_id
- message`.
Case-insensitive exact match against the entry's resource_id. Named rule_id for the common case where the audited resource is a policy rule.
Case-insensitive exact match against the entry's resource_type. The special value output returns only the legacy output-rule audit log via a separate code path that omits total / has_more / offset from the response envelope.
Headers
Tenant isolation header (required on all protected routes).
Response
Audit items envelope
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- breaking
the response's body type changed from
arraytoobjectfor status - info
added the new optional
queryrequest parameteraction - info
added the new optional
queryrequest parameterafter - info
added the new optional
queryrequest parameteragent_id - info
added the new optional
queryrequest parameterbefore - info
added the new optional
queryrequest parameterlimit - info
added the new optional
queryrequest parameteroffset - info
added the new optional
queryrequest parameterrule_id - info
added the new optional
queryrequest parametersearch - info
added the new optional
queryrequest parametertype - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status
- breaking