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.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidlimit?integerPage size. Defaults to 50, at most 200.
1 <= value <= 20050cursor?stringOpaque cursor from a previous page's nextCursor.
from?stringuuidto?stringuuidappId?stringOnly the resources of this app of the deployment. The counts by app still cover every app.
uuidA page of resources.
application/json- response
fromSnapshotId*stringuuidtoSnapshotId*stringuuidcounts*apps*array<>The counts by app, over every page.
items*array<>nextCursor?stringcurl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/diff'{ "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"}Which secrets a restore of a snapshot would find wrong GET
Compares the deployment's secrets as they are now with how they were while the snapshot ran: missing, stale, or with a fingerprint that changed. Secrets that are fine are not listed.
Compare the snapshot a deployment runs with the cluster GET
The objects that differ between the snapshot running and the cluster, as the operator last found them, by object. In each field `from` is the live value and `to` is the value the snapshot sets. An object missing from the cluster is `added`.