List the engine containers
const url = 'https://gpu-kitchen.example.lan/api/v1/containers';const options = {method: 'GET', headers: {cookie: 'gpuk_session=<gpuk_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gpu-kitchen.example.lan/api/v1/containers \ --cookie gpuk_session=<gpuk_session>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Success.
object
[API-95] An engine instance. A caller who is not an administrator receives the fields every reader may see (id, recipe_id, deployment_id, public_names, recipe_label, model, status, desired_state, kind and its instants); every other field is an administrator’s.
object
What the engine is doing: starting, running, stopped, error; later states may be added.
What the operator asked for: running or stopped. Differs from status while it is restored.
[VIS-21] The names it answers to at the proxy; none for a benchmark or a test.
[VIS-18] What a page calls the recipe it runs; null without a recipe.
Its first public name, else the recipe’s model.
The share of its card a small engine is held to, in GB; null = whole cards.
Finishing its requests and taking no new one.
[PRX-118] Requests the proxies report running on it now; 0 when none is reported.
[CVC-55] A measure: the VRAM in use on its cards at its node’s last reading. Null when it holds no card now, its node has no reading, or its engine shares its card.
[CVC-56] A measure: the RAM its container held at its node’s last reading, GB. Null when it holds no card now or its node has no reading of it.
Example
{ "containers": [ { "kind": "benchmark", "task_type": "text-generation" } ]}Error codes: auth_required.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: forbidden.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}Error codes: rate_limited.
object
object
Stable snake_case code to branch on.
A sentence to show a person.
Optional structured context.
Optional place where the problem is fixed.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example", "fix": "example" }}