Hanzo
OpenapiProvisioning

GetSQL returns one Hanzo SQL database's metadata.

GetSQL returns one Hanzo SQL database's metadata.

GET /v1/provisioning/sql/{name}

Addresshttps://api.hanzo.ai/v1/provisioning/sql/{name}
MethodGET
Operationget_provisioning_sql_by_name
AuthAuthorization: Bearer $HANZO_API_KEY

GetSQL returns one Hanzo SQL database's metadata. It carries the database's status, its instance address and the admin user Postgres booted with — never the password, which is returned once at create and otherwise lives only in Hanzo KMS. A still-booting instance reads "provisioning", reconciled from the operator's live view rather than from the row.

Request

1 field.

FieldInTypeRequiredDescription
namepathstringyesName is the resource's org-unique slug, from the path.

Response

StatusBodyMeaning
200provisionedResourceok

200 body — 8 fields.

FieldInTypeAlwaysDescription
databasebodystringDatabase is the logical database, collection, index or bucket this resource resolves to on its backend.
hostbodystringHost is the address that actually routes to this resource — a dedicated instance's own in-cluster Service, or the public gateway for a shared one.
idbodystringID is the resource's server-minted handle, "rs_"-prefixed.
kindbodystringKind is the product: sql, vector, datastore, kv, search, s3 or docdb.
namebodystringName is the org-unique slug the caller provisioned the resource under.
portbodyintegerPort is the port a client connects to on Host.
statusbodystringStatus is "ready", or "provisioning" while a dedicated instance is still being materialized.
usernamebodystringUsername is the credential's user, for the kinds that mint one per resource.

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.


Provisioning API · All Hanzo APIs · Interactive reference

How is this guide?

On this page