Hanzo
OpenapiProvisioning

CreateKV launches your org's OWN key-value instance and answers with its…

CreateKV launches your org's OWN key-value instance and answers with its `kv://` connection string.

POST /v1/provisioning/kv

Addresshttps://api.hanzo.ai/v1/provisioning/kv
MethodPOST
Operationpost_provisioning_kv
AuthAuthorization: Bearer $HANZO_API_KEY

CreateKV launches your org's OWN key-value instance and answers with its kv:// connection string.

The instance is yours alone — a deployment in your own tenant namespace, so its admin credential is naturally scoped to you and no other tenant shares the process. Off-cluster this fails closed with 503 rather than handing back a shared one.

Request

2 fields, body application/json (required).

FieldInTypeRequiredDescription
instancebodystringInstance binds a DEDICATED add-on to the app instance whose <instance>-addons Secret receives the <KIND>_URL (e.g. "commerce").
namebodystringName is the org-unique slug for the new resource, matching ^a-z0-9?$.

Response

StatusBodyMeaning
201provisionResultcreated

201 body — 10 fields.

FieldInTypeAlwaysDescription
connectionStringbodystringConnectionString is the ready-to-use DSN, credential included.
databasebodystringDatabase is the logical database, collection, index or bucket this resource resolves to on its backend.
hostbodystringHost is the address that 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 provisioned: sql, vector, datastore, kv, search, s3 or docdb.
namebodystringName is the org-unique slug the caller asked for, lower-cased.
passwordbodystringPassword is the minted credential, in plaintext, for the kinds that have one.
portbodyintegerPort is the port a client connects to on Host.
statusbodystringStatus is "ready", or "provisioning" while a dedicated instance is still being materialized by the operator.
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