Deployments
Preview

List deployments

GET
/deployments
cookiebetter-auth.session_token<token>

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

limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

appId?string

Only the deployments that hold this app.

Formatuuid
preview?string

only lists only the deployments of pull request previews, exclude leaves them out. Absent lists both.

Value in"only""exclude"
previewOf?string

Only the previews of this deployment.

Formatuuid
q?string

Only the deployments whose name contains this, in any case.

Lengthlength <= 63
sync?string

How the snapshot running compares with the one wanted. Used by every state, list, timeline and Activity entry.

Value in"synced""out_of_sync""applying""failed"
health?string

The worst health the operators report. Used by every state, list, timeline and Activity entry.

Value in"healthy""progressing""degraded""unknown"
clusterId?string

Only the deployments placed on this cluster.

Formatuuid
environmentId?string

Only the deployments placed on this environment or on its clusters.

Formatuuid
import?string

importing lists the deployments an import made that still observe or are cutting over (the "Importing" quick filter), imported every deployment an import made, none those made in Wardn. Absent lists all.

Value in"importing""imported""none"

Response Body

A page of deployments, by name.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "apps": [        {          "appId": "28c365d5-df94-4a54-8217-3ce51d068868",          "name": "string",          "sourceId": "797f5a94-3689-4ac8-82fd-d749511ea2b2",          "sourceName": "string",          "sourceKind": "git",          "sourceUrl": "string",          "sourcePath": "string",          "renderType": "helm",          "position": 0,          "branch": "string",          "trackedBranch": "string",          "values": {},          "revision": {            "running": {              "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",              "commit": "string",              "branch": "string",              "prNumber": 0            },            "latest": {              "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",              "commit": "string",              "branch": "string",              "prNumber": 0            },            "renderStatus": "rendered",            "lastSeenCommit": "string"          },          "summary": {            "health": "healthy",            "podsReady": 0,            "podsTotal": 0,            "resources": 0,            "jobs": 0,            "restarts24h": 0          }        }      ],      "state": {        "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",        "snapshotContentId": "string",        "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"                }              ]            }          ]        },        "sync": "synced",        "health": "healthy",        "drift": {          "status": "none",          "count": 0        },        "appsHealthy": 0      },      "targetKind": "cluster",      "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8",      "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",      "targetName": "string",      "namespace": "string",      "arrival": "branch",      "branch": "string",      "prune": true,      "pruneEffective": true,      "observe": true,      "previewOf": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string",        "visible": true      },      "import": {        "tool": "argocd",        "state": "observing",        "source": {          "kind": "string",          "namespace": "string",          "name": "string"        },        "generator": {          "kind": "string",          "namespace": "string",          "name": "string"        },        "cutover": {          "state": "awaiting_approval",          "trigger": "person",          "releasable": true,          "releasedAt": "2019-08-24T14:15:22Z"        }      },      "owners": [        "string"      ],      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": "string"}