List the pipelines that move snapshots into an environment
The pipelines the caller reads that have a stage in the environment, by name: where the stage takes snapshots from, its rules, the newest run that reached it and how many deployments of the pipeline's apps are there (those the caller may read). Pipelines out of reach are not listed.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
environmentId*stringuuidlimit?integerPage size. Defaults to 50, at most 200.
1 <= value <= 20050cursor?stringOpaque cursor from a previous page's nextCursor.
mine?booleanOnly the pipelines of the teams the caller belongs to.
A page of pipelines.
application/json- response
items*array<>nextCursor?stringcurl -X GET 'https://wardn.example.com/api/v1/environments/497f6eca-6276-4993-bfeb-53cbbbba6f08/pipelines'{ "items": [ { "pipeline": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "teamId": "string", "version": 0 }, "stage": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "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 } } }, "from": [ { "stageName": "string", "kind": "main" } ], "lastRun": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "version": 0, "snapshotBrief": { "contentId": "string", "origin": "sync", "commitSubject": "string", "commitAuthor": "string", "committedAt": "2019-08-24T14:15:22Z", "change": { "kind": "image", "app": "string", "from": "string", "to": "string" }, "apps": [ { "appId": "28c365d5-df94-4a54-8217-3ce51d068868", "name": "string", "sourceRepo": "string", "sourcePath": "string", "renderType": "string", "commit": "string", "branch": "string", "branchProtected": true, "prNumber": 0, "pusher": "string", "commitSubject": "string", "commitAuthor": "string", "committedAt": "2019-08-24T14:15:22Z", "refKind": "branch", "refName": "string", "commitsSince": 0, "commitRange": [ { "sha": "string", "subject": "string", "author": "string" } ] } ] }, "snapshotContentId": "string", "apps": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" } ], "routeKind": "main", "state": "in_progress", "nowLabel": "string", "waitingOn": "string", "startedBy": { "kind": "user", "id": "string", "name": "string" }, "startedAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z", "stages": [ { "stageId": "4ac83d66-64fa-48da-9505-57df43404af7", "stageName": "string", "status": "pending", "enteredAt": "2019-08-24T14:15:22Z" } ] }, "deployments": 0, "runCounts": { "inProgress": 0, "waiting": 0, "landed": 0, "rejected": 0 } } ], "nextCursor": "string"}Replace an environment's settings PUT
The deploy window is the default for the environment's pipeline stages; a stage may narrow it, never widen it. Notification targets are stored as configuration and nothing is delivered to them yet. The settings of an archived environment cannot be changed.
List the apps in an environment that no pipeline carries GET
They reach the environment some other way. Each has its team, its deployments there that the caller may read and the promotions to them in the last 30 days. Not paged: it holds the apps of one environment.