Hanzo
OpenapiDeploy

Returns the argocd ClusterList of the destinations the caller's applications…

Returns the argocd ClusterList of the destinations the caller's applications reconcile into: one entry per distinct destination server, carrying the count…

GET /v1/deploy/clusters

Addresshttps://api.hanzo.ai/v1/deploy/clusters
MethodGET
Operationget_deploy_clusters
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the argocd ClusterList of the destinations the caller's applications reconcile into: one entry per distinct destination server, carrying the count of applications reconciling into it. The in-cluster destination is always present, so an empty fleet still answers one cluster, and no cluster credential can appear — the projected type physically has no config field.

It is TENANT-SCOPED and reads the SAME App CRs the applications list reads: a platform SuperAdmin counts the whole fleet, a validated org member counts only its own org's applications, anyone else is refused.

Request

GET /v1/deploy/clusters takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200argoClusterListok

200 body — 16 fields.

FieldInTypeAlwaysDescription
itemsbodyargoCluster[]Items is one entry per distinct destination server, in first-seen order with the in-cluster destination first.
items[].connectionStatebodyargoConnectionState
items[].connectionState.attemptedAtbodystringAttemptedAt is when the connection was last probed.
items[].connectionState.messagebodystringMessage is why a connection failed.
items[].connectionState.statusbodystringStatus is ArgoCD's ConnectionStatus — Successful, Failed or Unknown.
items[].infobodyargoClusterInfo
items[].info.applicationsCountbodyintegerApplicationsCount is how many of THE CALLER'S applications reconcile into this cluster, so a tenant sees its own count and a SuperAdmin the fleet's.
items[].info.connectionStatebodyargoConnectionState
items[].info.connectionState.attemptedAtbodystringAttemptedAt is when the connection was last probed.
items[].info.connectionState.messagebodystringMessage is why a connection failed.
items[].info.connectionState.statusbodystringStatus is ArgoCD's ConnectionStatus — Successful, Failed or Unknown.
items[].info.serverVersionbodystringServerVersion is the kubernetes version of the destination.
items[].namebodystringName is what the Destination column shows: "in-cluster" for this cluster, otherwise whatever spec.destination.name declares, falling back to the server URL…
items[].serverbodystringServer is the destination's API URL, and the key the list is deduplicated by.
metadatabodyargoListMeta
metadata.resourceVersionbodystringResourceVersion is the k8s list version a watch would resume from.

Failure carries the platform error shape — see Errors.

Examples

hanzo deploy clusters

Deploy API · All Hanzo APIs · Interactive reference

How is this guide?

On this page