List deployments
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.
appId?stringOnly the deployments that hold this app.
uuidpreview?stringonly lists only the deployments of pull request previews, exclude leaves them out. Absent lists both.
"only""exclude"previewOf?stringOnly the previews of this deployment.
uuidq?stringOnly the deployments whose name contains this, in any case.
length <= 63sync?stringHow the snapshot running compares with the one wanted. Used by every state, list, timeline and Activity entry.
"synced""out_of_sync""applying""failed"health?stringThe worst health the operators report. Used by every state, list, timeline and Activity entry.
"healthy""progressing""degraded""unknown"clusterId?stringOnly the deployments placed on this cluster.
uuidenvironmentId?stringOnly the deployments placed on this environment or on its clusters.
uuidimport?stringimporting 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.
"importing""imported""none"A page of deployments, by name.
application/json- response
items*array<>nextCursor?stringcurl -X GET 'https://wardn.example.com/api/v1/deployments'{ "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"}List the state of every deployment as of a moment GET
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
Create a deployment POST
Takes the right to manage deployments on the cluster or environment it goes on, and to see each of its apps. The caller becomes the deployment's owner. A deployment set to `observe` renders and compares but is never applied. A namespace in one place holds one deployment.