Hanzo AI
OpenapiSandbox

List sandbox

Lists the caller org's sandboxes, newest first. `?project=` and `?status=` narrow it.

GET /v1/sandbox

Addresshttps://api.hanzo.ai/v1/sandbox
MethodGET
Operationget_sandbox
AuthAuthorization: Bearer $HANZO_API_KEY

Lists the caller org's sandboxes, newest first.

?project= and ?status= narrow it. Only the caller's org's: the store is keyed on the validated org, so another tenant's sandbox is not something this operation can return.

Request

2 fields.

FieldInTypeRequiredDescription
projectquerystring
statusquerystring

Response

StatusBodyMeaning
200sandboxListok

200 body — 15 fields.

FieldInTypeAlwaysDescription
sandboxesbodySandbox[]Sandboxes are the caller org's sandboxes matching the filter.
sandboxes[].classbodystringClass is what the sandbox is FOR, and it decides the image, the working directory and the isolation: "exec" for a code-interpreter call (workdir /mnt/data, no…
sandboxes[].connectedAtbodyintegerConnectedAt is when somebody was last known to have this sandbox's project OPEN, Unix seconds.
sandboxes[].createdAtbodyintegerCreatedAt is when the lease was first taken, Unix seconds.
sandboxes[].errorbodystringError is why the sandbox could not come up, in plain words.
sandboxes[].expiresAtbodyintegerExpiresAt is when the lease ends, Unix seconds.
sandboxes[].idbodystringID is the sandbox's server-minted handle and what every operation addresses it by.
sandboxes[].imagebodystringImage is the container image this sandbox is actually running — the one the class chose, or an override the policy admitted.
sandboxes[].kindbodystringKind is the resource family this row belongs to.
sandboxes[].lastUsedAtbodyintegerLastUsedAt is when the sandbox last did work, Unix seconds.
sandboxes[].orgbodystringOrg is the org that holds the lease — the validated caller's, never a value a request supplied.
sandboxes[].projectbodystringProject is the project this sandbox is bound to.
sandboxes[].runtimebodystringRuntime is the isolation boundary this sandbox GOT, which is not always the one it asked for: a caller states a preference and runtimeFor answers with what the…
sandboxes[].statusbodystringStatus is where the sandbox is in its life: "pending" while the pod is coming up, "running" once it can take work, "error" when it cannot.
sandboxes[].volumebodystringVolume is the persistent volume attached to the sandbox, when it has one.

Failure carries the platform error shape — see Errors.

Examples

hanzo sandbox list

Sandbox API · All Hanzo APIs · Interactive reference

How is this guide?

On this page