List the fleet's nodes
const url = 'https://gpu-kitchen.example.lan/api/v1/nodes';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/nodes \ --cookie gpuk_session=<gpuk_session>Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Success.
object
object
[GPU-238] The IP the worker connects from; null before it connects or on loopback.
[GPU-25] Whether the node is online: connected to this controller, or reported online with a heartbeat younger than 90 s. Every view reads this answer.
[GPU-25] The same answer as online, as online or offline.
object
What the worker reported it can do, as it reported it.
object
[GPU-179] in: takes work; freeing: being freed; out: freed, takes no new work.
Why the node stays out of placement.
Example
{ "nodes": [ { "build_info": { "build_profile": "debug" }, "driver": { "kernel_module": "open" }, "placement": "in", "free": { "mode": "stop" }, "driver_change": { "state": "scheduled" }, "self_update_failure": "signature", "worker_update": { "state": "available" }, "worker_catch_up": { "state": "updating" } } ]}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" }}