Hanzo
OpenapiPlatform

Returns your deploy targets, and what is running on each.

Returns your deploy targets, and what is running on each.

GET /v1/platform/environments

Addresshttps://api.hanzo.ai/v1/platform/environments
MethodGET
Operationget_platform_environments
AuthAuthorization: Bearer $HANZO_API_KEY

Returns your deploy targets, and what is running on each.

It returns the org's environments — the distinct deploy targets its applications name, production for anything that names none — each aggregating the apps that target it, a rolled-up status and when it last changed.

An environment is DERIVED, not stored: there is nothing to create or delete here, and an environment exists exactly as long as an app points at it. Requires a validated principal; 403 without one.

Request

GET /v1/platform/environments takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200environmentBoardok

200 body — 7 fields.

FieldInTypeAlwaysDescription
environmentsbodyenvironmentRow[]Environments are the org's deploy targets, in first-seen order.
environments[].idbodystringID is the environment's name, which is also its identity — an environment is derived from the apps that target it, so it has no id of its own.
environments[].namebodystringName is the environment's name as an app declared it.
environments[].servicesbodystring[]Services are the apps that target this environment, by name.
environments[].statusbodystringStatus rolls up the real states of this environment's apps: degraded, active, idle or empty.
environments[].typebodystringType buckets the name for display: production, staging, development or custom.
environments[].updatedAtbodystringUpdatedAt is when any of them last changed, RFC3339 UTC; empty when unset.

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