Nova API — /api/warehouses
The operations Nova tags public under /api/warehouses. Generated from reference-src/nova-openapi.json.
GET /api/warehouses
Operation id warehouses_list: in Python client.call("warehouses_list", …), on the command line stardelt api warehouses_list.
GET /api/warehouses: the compute classes of the platform, which one this caller may use and which one a query will land in.
Every SqlWarehouse of the platform namespace, largest class first (large, medium, small, xs; name order inside one size), each row carrying the class size, the numbers the resource group is rendered with (running, queued, memoryShare: the class defaults, overridden by spec.concurrency), default, canUse (one of the caller's groups is in spec.grants) and yours (the first usable row — the class the engine's first matching selector picks — or the default class when nothing is granted). An administrator gets one synthetic row first (name: "admin", displayName: "Administrators", size: null, 50/100/100 %: the admin root group access-sync renders) with yours on it and yours: false on every other row. scale is the scaler's verdict on the one engine the classes share (phase, workers, queriesInFlight, lastQueryAt), read from status.scale; null until the scaler has written one. Non-authoritative: the engine selects by identity, Nova only shows it. Without a cluster connection (a local run) the answer is the one small class. A cluster that refuses or fails is a 502. Answers Cache-Control: no-store.
Responses
| Code | Description |
|---|---|
200 | One row per class, largest first, the administrator's row first of all |
401 | Not signed in |
502 | The cluster did not answer, or Nova may not list sqlwarehouses |
POST /api/warehouses/{name}/start
Operation id warehouses_start: in Python client.call("warehouses_start", …), on the command line stardelt api warehouses_start.
POST /api/warehouses/{name}/start: keep a class warm.
Wake the engine for one SQL compute class by writing the class's stardelt.io/last-query-at annotation (the scaler reads it on its two-minute tick; the replica count is the scaler's, not Nova's). The answer is 202 with phase: "Starting" — status.scale.phase is written by the scaler, not by Nova. An administrator may start any class; a person needs one of their groups in spec.grants. Without a cluster connection the answer is 503; a class that does not exist is 404.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
name | path | string | Yes | The SqlWarehouse (class) name |
Responses
| Code | Description |
|---|---|
202 | The annotation is written; the scaler wakes the engine on its next tick |
401 | Not signed in |
403 | None of the caller's groups is granted this class |
404 | No such warehouse |
502 | The cluster did not answer |
503 | No cluster connection (a local run) |