Deployments
Preview

List the state of every deployment as of a moment

The state each deployment the caller may read held at `at`, by name, for deployments that exist now. A deployment created after `at` is not listed. Without `at` this is the current state of every deployment, which is how a list screen reads them in one request. `environmentId` keeps the deployments

GET
/deployment-states
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.

at?string

The moment to show. Defaults to now.

Formatdate-time
environmentId?string

Only deployments on this environment or on a cluster in it.

Formatuuid

Response Body

A page of periods, one per deployment.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployment-states'
Example Response
{  "items": [    {      "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",      "deploymentName": "string",      "targetKind": "cluster",      "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8",      "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",      "namespace": "string",      "startedAt": "2019-08-24T14:15:22Z",      "endedAt": "2019-08-24T14:15:22Z",      "cause": "created",      "tracking": {        "kind": "branch",        "ref": "string"      },      "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",      "desiredSnapshotId": "772358de-4331-409a-8836-5e8987492b85",      "sync": "synced",      "syncMessage": "string",      "health": "healthy",      "healthMessage": "string",      "drift": {        "status": "none",        "count": 0      }    }  ],  "nextCursor": "string"}