Hanzo
OpenapiVisor

Lists the org's DOKS clusters (Visor, house account) folded with the org's BYO…

Lists the org's DOKS clusters (Visor, house account) folded with the org's BYO clusters — ONE fleet cluster view under the unified k8s noun.

GET /v1/visor/k8s/clusters

Addresshttps://api.hanzo.ai/v1/visor/k8s/clusters
MethodGET
OperationlistKubernetesClusters
AuthAuthorization: Bearer $HANZO_API_KEY

Lists the org's DOKS clusters (Visor, house account) folded with the org's BYO clusters — ONE fleet cluster view under the unified k8s noun. A Visor outage is logged and skipped so a down optional provider never hides the BYO list.

Request

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

Response

StatusBodyMeaning
200clusterListok

200 body — 23 fields.

FieldInTypeAlwaysDescription
clustersbodyclusterView[]Clusters is the merged fleet — kind "managed" for Visor-provisioned, "byo" for an attached kubeconfig.
clusters[].amdGpubodyintegerAmdGPU is the same count for amd.com/gpu: AMD accelerators across the BYO cluster's nodes, as of the attach.
clusters[].createdAtbodystringCreatedAt is when the cluster started existing: the earliest creation time among its pools for a managed cluster, and for a BYO one the RFC 3339 moment it was…
clusters[].doClusterIdbodystringDoClusterID carries the SAME id as DoksClusterID.
clusters[].doksClusterIdbodystringDoksClusterID is the provider's own id for the cluster, and the value the /v1/visor/k8s/clusters/:id routes take.
clusters[].kindbodystringKind says which of the two kinds of cluster this row is, and there are only two: "managed" — Visor provisioned it and Hanzo's account pays the provider — or…
clusters[].namebodystringName is the cluster's name: the provider's for a managed cluster, and for a BYO one the lower-cased fleet name it was attached under — which is also how the…
clusters[].nodeCountbodyintegerNodeCount is how many worker nodes the cluster has — the sum over its pools for a managed cluster, and for a BYO one the node count read off the cluster when…
clusters[].nodePoolsbodynodePoolView[]NodePools is the authoritative node inventory — every pool, each with its own size and count.
clusters[].nodePools[].autoScalebodybooleanAutoScale reports whether the provider's cluster autoscaler owns this pool's size, moving Count between MinNodes and MaxNodes as workloads demand.
clusters[].nodePools[].countbodyintegerCount is how many nodes the pool has right now.
clusters[].nodePools[].maxNodesbodyintegerMaxNodes is the ceiling the autoscaler will not grow the pool past, and so the bound on what this pool can cost.
clusters[].nodePools[].minNodesbodyintegerMinNodes is the floor the autoscaler will not shrink the pool below.
clusters[].nodePools[].namebodystringName is the pool's name as the provider knows it.
clusters[].nodePools[].poolIdbodystringPoolID is the provider's id for the pool — the value the scale and delete routes address it by.
clusters[].nodePools[].sizebodystringSize is the provider size slug every node in the pool runs at ("s-4vcpu-8gb", "gpu-h100x8-640gb").
clusters[].nodeSizebodystringNodeSize is a display convenience: the size slug of the FIRST pool.
clusters[].nvidiaGpubodyintegerNvidiaGPU is how many NVIDIA accelerators the cluster's nodes advertise, the sum of nvidia.com/gpu allocatable across them.
clusters[].regionbodystringRegion is the provider region slug for a managed cluster.
clusters[].statusbodystringStatus is the cluster's state: the provider's own word for a managed cluster ("running", "provisioning"), "unknown" when the provider stated none, and always…
degradedbodysourceFailure[]Degraded names any source that did not answer, so an empty Clusters means "you have none" only when this is absent.
degraded[].reasonbodystringReason is a terse, log-safe summary — never the upstream's response body.
degraded[].sourcebodystringSource is the dependency that failed, named as an operator names it.

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.


Visor API · All Hanzo APIs · Interactive reference

How is this guide?

On this page