Hanzo
OpenapiVisor

Attaches a BYO cluster to the caller's org — the kubeconfig is validated,…

Attaches a BYO cluster to the caller's org — the kubeconfig is validated, KMS-sealed and added to the fleet — and answers 201 with the cluster as it now…

POST /v1/visor/clusters

Addresshttps://api.hanzo.ai/v1/visor/clusters
MethodPOST
OperationattachCluster
AuthAuthorization: Bearer $HANZO_API_KEY

Attaches a BYO cluster to the caller's org — the kubeconfig is validated, KMS-sealed and added to the fleet — and answers 201 with the cluster as it now appears on GET /v1/visor/clusters. Billed the nominal management fee: the customer brings the compute, Hanzo meters the management plane.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
defaultbodybooleanDefault marks this the org's default cluster for scheduling.
kubeconfigbodystringKubeconfig is the cluster's kubeconfig, verbatim.
namebodystringName is the fleet-local name for the cluster; lower-cased, and the key the detach route addresses it by.
providerbodystringProvider is a free-form label for where the cluster runs ("gke", "on-prem"); it is display only, not a routing key.

Response

StatusBodyMeaning
200clusterViewok

200 body — 19 fields.

FieldInTypeAlwaysDescription
amdGpubodyintegerAmdGPU is the same count for amd.com/gpu: AMD accelerators across the BYO cluster's nodes, as of the attach.
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…
doClusterIdbodystringDoClusterID carries the SAME id as DoksClusterID.
doksClusterIdbodystringDoksClusterID is the provider's own id for the cluster, and the value the /v1/visor/k8s/clusters/:id routes take.
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…
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…
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…
nodePoolsbodynodePoolView[]NodePools is the authoritative node inventory — every pool, each with its own size and count.
nodePools[].autoScalebodybooleanAutoScale reports whether the provider's cluster autoscaler owns this pool's size, moving Count between MinNodes and MaxNodes as workloads demand.
nodePools[].countbodyintegerCount is how many nodes the pool has right now.
nodePools[].maxNodesbodyintegerMaxNodes is the ceiling the autoscaler will not grow the pool past, and so the bound on what this pool can cost.
nodePools[].minNodesbodyintegerMinNodes is the floor the autoscaler will not shrink the pool below.
nodePools[].namebodystringName is the pool's name as the provider knows it.
nodePools[].poolIdbodystringPoolID is the provider's id for the pool — the value the scale and delete routes address it by.
nodePools[].sizebodystringSize is the provider size slug every node in the pool runs at ("s-4vcpu-8gb", "gpu-h100x8-640gb").
nodeSizebodystringNodeSize is a display convenience: the size slug of the FIRST pool.
nvidiaGpubodyintegerNvidiaGPU is how many NVIDIA accelerators the cluster's nodes advertise, the sum of nvidia.com/gpu allocatable across them.
regionbodystringRegion is the provider region slug for a managed cluster.
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…

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