Deployments
Preview

Compare two snapshots of a deployment

The resources that were added, removed or changed from one snapshot to the other, and for each the fields that differ, by resource in reference order. `from` defaults to the snapshot running and `to` to the snapshot wanted (or the one running when none is). Both must be snapshots of this deployment.

GET
/deployments/{deploymentId}/diff
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.

from?string
Formatuuid
to?string
Formatuuid
appId?string

Only the resources of this app of the deployment. The counts by app still cover every app.

Formatuuid

Response Body

A page of resources.

application/json
  1. response
fromSnapshotId*string
Formatuuid
toSnapshotId*string
Formatuuid
counts*
apps*array<>

The counts by app, over every page.

items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/diff'
Example Response
{  "fromSnapshotId": "ceabd718-e64e-40ec-ad68-fcfc4459663b",  "toSnapshotId": "47f12387-185e-4425-93d1-f25eda56f6dc",  "counts": {    "added": 0,    "removed": 0,    "changed": 0  },  "apps": [    {      "appId": "28c365d5-df94-4a54-8217-3ce51d068868",      "appName": "string",      "added": 0,      "removed": 0,      "changed": 0    }  ],  "items": [    {      "before": "string",      "after": "string",      "appId": "28c365d5-df94-4a54-8217-3ce51d068868",      "appName": "string",      "group": "string",      "version": "string",      "kind": "string",      "namespace": "string",      "name": "string",      "change": "added",      "fields": [        {          "path": "string",          "change": "added",          "from": "string",          "to": "string"        }      ],      "review": {        "state": "open",        "change": "changed",        "fingerprint": "string",        "words": "string",        "scope": "annotations",        "count": 0,        "classes": [          "content"        ],        "imagePin": "same_digest",        "hook": true,        "acceptedBy": {          "id": "string",          "name": "string"        },        "acceptedAt": "2019-08-24T14:15:22Z",        "reason": "string"      }    }  ],  "nextCursor": "string"}