Environments
PreviewList the guardrails that reach an environment
The Guardrails tab of an environment: guardrails that name something it matches (`targeting`), those that cover everything (`orgWide`), how many of the environment's deployments each holds and on which clusters, the exceptions that apply here, and the freezes on it that are active, recurring or plan
GET
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
environmentId*stringFormat
uuidThe guardrails.
application/json- response
deployments*integercounts*targeting*array<>orgWide*array<>freezes*array<>curl -X GET 'https://wardn.example.com/api/v1/environments/497f6eca-6276-4993-bfeb-53cbbbba6f08/guardrails'Example Response
{ "deployments": 0, "counts": { "targets": 0, "orgWide": 0, "withExceptions": 0, "warn": 0 }, "targeting": [ { "guardrail": { "actions": [ "release" ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "kind": "rule", "mode": "enforce", "builtin": true, "fromPreset": "string", "builtinKey": "string", "ownerTeamId": "string", "ownerTeamName": "string", "cover": { "deployments": 0, "apps": 0, "clusters": 0, "leftOut": 0, "summary": "string", "lowered": [ "string" ] }, "exceptionsInEffect": 0, "scope": [ { "field": "class", "op": "is", "value": "string", "label": "string" } ], "requires": [ { "id": "string", "kind": "approval", "count": 1, "humanOnly": true, "group": "security", "level": "propose", "when": "freeze", "branch": "string", "system": "servicenow", "afterSeconds": 60, "days": 1, "label": "string" } ], "version": { "version": 1, "summary": "string", "mode": "enforce", "createdBy": { "id": "string", "name": "string" }, "createdAt": "2019-08-24T14:15:22Z" }, "newestVersion": 0, "archived": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "covered": 0, "of": 0, "clusterNames": [ "string" ], "allClusters": true, "exceptionsHere": 0, "exceptionsInEffect": 0, "notedLast30Days": 0 } ], "orgWide": [ { "guardrail": { "actions": [ "release" ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "kind": "rule", "mode": "enforce", "builtin": true, "fromPreset": "string", "builtinKey": "string", "ownerTeamId": "string", "ownerTeamName": "string", "cover": { "deployments": 0, "apps": 0, "clusters": 0, "leftOut": 0, "summary": "string", "lowered": [ "string" ] }, "exceptionsInEffect": 0, "scope": [ { "field": "class", "op": "is", "value": "string", "label": "string" } ], "requires": [ { "id": "string", "kind": "approval", "count": 1, "humanOnly": true, "group": "security", "level": "propose", "when": "freeze", "branch": "string", "system": "servicenow", "afterSeconds": 60, "days": 1, "label": "string" } ], "version": { "version": 1, "summary": "string", "mode": "enforce", "createdBy": { "id": "string", "name": "string" }, "createdAt": "2019-08-24T14:15:22Z" }, "newestVersion": 0, "archived": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "covered": 0, "of": 0, "clusterNames": [ "string" ], "allClusters": true, "exceptionsHere": 0, "exceptionsInEffect": 0, "notedLast30Days": 0 } ], "freezes": [ { "appliesToRestores": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "reason": "string", "scope": [ { "field": "class", "op": "is", "value": "string", "label": "string" } ], "kind": "one_time", "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "schedule": { "days": [ "mon" ], "start": "string", "end": "string" }, "timeZone": "string", "runningReleases": "pause", "bypass": [ { "who": "string", "can": "bypass", "needs": "string" } ], "notify": [ { "who": "string", "when": "string" } ], "status": "active", "until": "2019-08-24T14:15:22Z", "next": "2019-08-24T14:15:22Z", "cover": { "deployments": 0, "apps": 0, "clusters": 0, "leftOut": 0, "summary": "string", "lowered": [ "string" ] }, "canceledAt": "2019-08-24T14:15:22Z", "createdBy": { "id": "string", "name": "string" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ]}Set an environment's protected-branch guardrail PUT
Previous Page
List pipelines GET
The pipelines the caller may read, by name, each with its stages in order, its apps and counts of its runs: what the Pipelines list draws as a card. `counts` is for the tabs above the list (all teams, my teams) and ignores the filters. A pipeline out of reach is not listed.