Deployments
Preview

List what happened to a deployment

The snapshot history, newest first: each snapshot that was made and each time the cluster was found to differ from what Wardn applied. A snapshot event says what changed in each app against the snapshot before it, which secrets changed fingerprint, how many commits came with it where the git host ca

GET
/deployments/{deploymentId}/history
cookiebetter-auth.session_token<token>

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

deploymentId*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.

Response Body

A page of events.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/history'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "kind": "snapshot",      "at": "2019-08-24T14:15:22Z",      "contentId": "string",      "actor": {        "kind": "user",        "id": "string",        "label": "string"      },      "snapshot": {        "promotedFrom": {          "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",          "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2"        },        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43",        "origin": "sync",        "commit": "string",        "branch": "string",        "sourceRepo": "string",        "commitSubject": "string",        "commitAuthor": "string",        "committedAt": "2019-08-24T14:15:22Z",        "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"              }            ]          }        ],        "manifestDigest": "string",        "contentId": "string",        "resourceCount": 0,        "totalBytes": 0,        "createdBy": "string",        "createdAt": "2019-08-24T14:15:22Z",        "reviewState": "held"      },      "apps": [        {          "appId": "28c365d5-df94-4a54-8217-3ce51d068868",          "name": "string",          "commit": "string",          "previousCommit": "string",          "change": "added",          "resources": 0,          "changedResources": 0,          "kinds": {            "image": true,            "values": 0,            "config": 0,            "secrets": 0          },          "commits": 0        }      ],      "commits": 0,      "secrets": [        {          "name": "string",          "appId": "28c365d5-df94-4a54-8217-3ce51d068868",          "was": "string",          "now": "string"        }      ],      "jobs": {        "total": 0,        "failed": 0      },      "drift": {        "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8",        "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",        "objects": 0,        "fields": [          {            "appName": "string",            "kind": "string",            "name": "string",            "path": "string",            "desired": "string",            "live": "string"          }        ]      }    }  ],  "nextCursor": "string"}