List pipelines
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.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
limit?integerPage size. Defaults to 50, at most 200.
1 <= value <= 20050cursor?stringOpaque cursor from a previous page's nextCursor.
teamId?stringOnly this team's pipelines.
mine?booleanOnly the pipelines of the teams the caller belongs to.
q?stringOnly pipelines whose name, or the name of an app they carry, contains this text.
length <= 100archived?booleanInclude archived pipelines.
A page of pipelines, by name.
application/json- response
items*array<>nextCursor?stringcounts*curl -X GET 'https://wardn.example.com/api/v1/pipelines'{ "items": [ { "canSkipReview": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "teamId": "string", "archived": true, "version": { "version": 0, "summary": "string", "createdBy": { "id": "string", "name": "string" }, "appliedRole": "string", "draftNumber": 0, "appliedWithoutReview": true, "reviewedBy": { "id": "string", "name": "string" }, "restoredFrom": 0, "createdAt": "2019-08-24T14:15:22Z" }, "newestVersion": 0, "graph": { "stages": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "arrival": "auto_promote", "soakSeconds": 0, "config": { "which": "qualified", "ifSeveral": "replace", "allowRequests": true, "configOnly": true, "incoming": "all", "narrow": [ { "field": "cluster", "op": "is", "value": "string" } ], "rules": [ { "id": "string", "type": "approval", "section": "gate", "title": "string", "note": "string", "locked": true, "params": {} } ], "onReject": "keep", "onQualify": "notify", "notifyTarget": "string", "rollout": { "mode": "all", "waves": [ { "id": "string", "name": "string", "detail": "string", "targets": "string", "verify": "string", "next": "confirm", "soakSeconds": 0, "selector": { "property1": "string", "property2": "string" } } ], "onFail": "pause", "retries": "2", "timeout": "15m" }, "health": { "watchSeconds": 0, "onFail": "pause" }, "requestForm": "string", "agents": { "autonomy": "observe", "cap": "observe", "perHour": 0, "may": { "property1": true, "property2": true }, "read": { "mode": "off", "agentId": "string" } }, "preset": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "version": 1 } }, "position": 0, "environmentName": "string", "environmentClass": "string" } ], "routes": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "fromStageId": "877db427-5907-4b80-a8b2-ab6c3e6f1fc9", "toStageId": "ccc70001-c375-49a1-b702-44689ce3757f", "kind": "main", "must": "qualified", "label": "string" } ] }, "apps": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" } ], "runCounts": { "inProgress": 0, "waiting": 0, "landed": 0, "rejected": 0 }, "runTotal": 0, "hasHotfix": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string", "counts": { "all": 0, "mine": 0 }}List the guardrails that reach an environment GET
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
Create a pipeline POST
Makes version 1 with its stages and routes, gives it its apps and makes the caller its owner. Stages are bound to environments the caller can read, one stage per environment. The main routes must join the stages into one line; hotfix routes skip ahead along it. An app belongs to one pipeline: apps a