Hanzo AI
OpenapiGit

Create pools

Records the capacity an org has, and answers with the secret a runner daemon presents to enter it.

POST /v1/git/pools

Addresshttps://api.hanzo.ai/v1/git/pools
MethodPOST
Operationpost_git_pools
AuthAuthorization: Bearer $HANZO_API_KEY

Records the capacity an org has, and answers with the secret a runner daemon presents to enter it.

Declaring is the ONLY way capacity comes to exist: a daemon cannot register against a pool nobody declared, because the secret it would have to present does not exist until this runs. Re-declaring an existing pool replaces its labels and mints a fresh secret; runners already inside it keep working.

Request

2 fields, body application/json (required).

FieldInTypeRequiredDescription
labelsbodystring[]Labels are what a workflow's runs-on: selects this pool by.
namebodystringName is the pool's handle in this org, e.g.

Response

StatusBodyMeaning
201git.poolDeclaredcreated
defaultproblem-detailsrefused

201 body — 6 fields.

FieldInTypeAlwaysDescription
poolbodygit.poolView
pool.createdAtbodyinteger (int64)CreatedAt is when the pool was declared, in unix seconds.
pool.labelsbodystring[]Labels are what a workflow's runs-on: selects this pool by.
pool.namebodystringName is the pool's handle in this org.
pool.runnersbodyinteger (int64)Runners is how many daemons have entered the pool.
secretbodystringSecret is what a runner daemon presents to enter the pool.

Failure carries the platform error shape — see Errors.

Examples

hanzo git pools create

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page