Deployments
Preview

Take an app out of a deployment

The deployment's next snapshot no longer holds the app's objects, and an apply that prunes removes them from the cluster. The last app of a deployment cannot be taken out; delete the deployment instead.

DELETE
/deployments/{deploymentId}/apps/{appId}
cookiebetter-auth.session_token<token>

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

deploymentId*string
Formatuuid
appId*string
Formatuuid
Idempotency-Key?string

Makes retries safe. A repeated key with the same request returns the first result and sets Idempotent-Replayed: true. The same key with a different request answers 409 idempotency.key_reused, and while the first request is still running 409 idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack of sign-in or permission are not kept, so a retry runs again.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255

Response Body

The deployment without the app.

application/json
  1. response

A namespace on a cluster, or on the clusters of an environment, holding one or more apps.

id*string
Formatuuid
name*string
apps*array<>

The apps the deployment holds, in its order. A deployment holds at least one.

state*

The state a list shows for each deployment, so it needs no request per row.

targetKind*DeploymentTargetKind
Value in"cluster""environment"
clusterId*|
Formatuuid
environmentId*|
Formatuuid
targetName*string

The name of the cluster or environment.

namespace*string
arrival*DeploymentArrival

How new snapshots arrive: branch takes one on each push to a branch (Automatic), request takes one only when asked or when a pipeline promotes one in.

Value in"branch""request"
branch*string

The branch tracked. Empty unless arrival is branch.

prune*|

The deployment's own choice. Null follows the organization's default.

pruneEffective*boolean

What applies now.

observe*boolean

An observing deployment renders and compares but is never applied.

previewOf*|

The deployment this one previews a pull request of. Null for a deployment that is not a preview.

import?

What a deployment was imported from, as lists show it ("Imported from Argo CD"). Absent for a deployment made in Wardn.

owners*array<string>

User ids of the deployment's owners, oldest first.

createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X DELETE 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "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"}