Hanzo AI
OpenapiPlatform

List diff

Answers what syncing one app would change.

GET /v1/platform/apps/{app}/diff

Addresshttps://api.hanzo.ai/v1/platform/apps/{app}/diff
MethodGET
Operationget_platform_apps_by_app_diff
AuthAuthorization: Bearer $HANZO_API_KEY

Answers what syncing one app would change.

It reads the CD Application the declaration renders as: the commit CD compared the cluster against, the commit it last applied, and every object it manages with CD's verdict on each — the ones that differ from git are what a sync applies. Object-level, as CD reports it; the field-level diff stays on cd.hanzo.ai. SuperAdmin only, the same predicate CD's own RBAC applies to viewing an Application. 404 when CD holds no Application for the declaration.

Request

2 fields.

FieldInTypeRequiredDescription
apppathstringyesApp is the declaration's name, from the path.
orgquerystringOrg is the values directory the declaration lives in, defaulting to the caller's own org.

Response

StatusBodyMeaning
200platform.cdDiffok
defaultproblem-detailsrefused

200 body — 21 fields.

FieldInTypeAlwaysDescription
applicationbodystringApplication is the CD Application the declaration renders as.
appliedbodystringApplied is the universe commit CD last synced, "" before its first sync.
comparedbodystringCompared is the universe commit CD compared the cluster against — the one a sync applies.
operationbodystringOperation is the phase of a sync in flight or last run, "" when none ran.
pendingbodyplatform.CDResource[]Pending are the objects that differ from git: what a sync would apply.
pending[].groupbodystringGroup is the object's API group, "" for the core group.
pending[].healthbodystringHealth is the object's health, "" for a kind CD holds no health for.
pending[].kindbodystringKind is the object's kind.
pending[].namebodystringName is the object's name.
pending[].namespacebodystringNamespace is the object's namespace, "" for a cluster-scoped one.
pending[].prunebodybooleanPrune is true for a live object git no longer declares.
pending[].statusbodystringStatus is CD's verdict on the object: Synced or OutOfSync.
resourcesbodyplatform.CDResource[]Resources is every object the Application manages.
resources[].groupbodystringGroup is the object's API group, "" for the core group.
resources[].healthbodystringHealth is the object's health, "" for a kind CD holds no health for.
resources[].kindbodystringKind is the object's kind.
resources[].namebodystringName is the object's name.
resources[].namespacebodystringNamespace is the object's namespace, "" for a cluster-scoped one.
resources[].prunebodybooleanPrune is true for a live object git no longer declares.
resources[].statusbodystringStatus is CD's verdict on the object: Synced or OutOfSync.
syncbodystringSync is CD's verdict: Synced or OutOfSync.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Platform API · All Hanzo APIs · Interactive reference

How is this guide?

On this page