List guardrail exceptions
Exceptions in effect first, then those that ended, each newest first, across guardrails or for one: what the Exceptions board and the editor's "Doesn't apply to" table draw. `counts` are the tiles and ignore the filters.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
guardrailId?stringOnly this guardrail's exceptions.
uuidstate?stringOnly those in effect, or only those that ended.
"in_effect""ended"q?stringOnly exceptions whose target, reason or guardrail contains this text.
length <= 100The exceptions.
application/json- response
items*array<>counts*tabs*The counts on the Rules, Freezes and Exceptions tabs.
curl -X GET 'https://wardn.example.com/api/v1/guardrail-exceptions'{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "guardrailId": "38609d44-fd52-49c4-9173-fad4575825f6", "guardrailName": "string", "ownerTeamId": "string", "ownerTeamName": "string", "target": { "kind": "app", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "reason": "string", "addedBy": { "id": "string", "name": "string" }, "createdAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "reviewAt": "2019-08-24T14:15:22Z", "endedAt": "2019-08-24T14:15:22Z", "state": "in_effect", "permanent": true, "expiring": true, "reviewOverdue": true } ], "counts": { "inEffect": 0, "permanent": 0, "expiring": 0, "reviewOverdue": 0, "ended": 0 }, "tabs": { "rules": 0, "activeFreezes": 0, "exceptions": 0 }}Add an exception to a guardrail POST
Excuses an app, a cluster, an environment or a deployment from the guardrail, for good or until a date. A permanent exception gets a review date (six months on when none is given). Only the team that owns the guardrail, or the organization's owners for one with no owner team, may add one; anyone els
Change an exception PUT
Its reason, end date and review date. The target does not change; end it and add another.