Environments
Preview

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.

GET
/environments/{environmentId}/pipelines
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

environmentId*string
Formatuuid
limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

mine?boolean

Only the pipelines of the teams the caller belongs to.

Response Body

A page of pipelines.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/environments/497f6eca-6276-4993-bfeb-53cbbbba6f08/pipelines'
Example Response
{  "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"}