curl --request GET \
--url https://api.sfcompute.com/v2/nodes \
--header 'Authorization: Bearer <token>'{
"object": "list",
"has_more": true,
"data": [
{
"object": "node",
"id": "<string>",
"status": "pending",
"zone": "richmond",
"capacity": "<string>",
"node_template": "<string>"
}
],
"cursor": "nodec_gqXR7s0Kj5mHvE2wNpLc4Q"
}List all nodes.
curl --request GET \
--url https://api.sfcompute.com/v2/nodes \
--header 'Authorization: Bearer <token>'{
"object": "list",
"has_more": true,
"data": [
{
"object": "node",
"id": "<string>",
"status": "pending",
"zone": "richmond",
"capacity": "<string>",
"node_template": "<string>"
}
],
"cursor": "nodec_gqXR7s0Kj5mHvE2wNpLc4Q"
}Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Filter by node ID (repeatable).
node_[0-9a-zA-Z_-]{1,21}Filter by capacity. An ID or name identifying this resource.
(cap_[0-9a-zA-Z_-]{1,21}) | ([a-zA-Z0-9][a-zA-Z0-9._-]{0,254})"cap_k3R-nX9vLm7Qp2Yw5Jd8F"
Filter by node status (repeatable).
pending on creation while waiting for hardware assignment, running once assigned (note: the node may still be booting or loading a custom image), terminated when destroyed, failed on hardware fault.
pending, running, terminated, failed Include deleted nodes in the response. Currently terminated nodes are auto-deleted. Don't expect this behavior to be stable.
1 <= x <= 200Cursor for forward pagination (from a previous response's cursor field).
^nodec_[A-Za-z0-9_-]+$"nodec_gqXR7s0Kj5mHvE2wNpLc4Q"
Cursor for backward pagination.
^nodec_[A-Za-z0-9_-]+$"nodec_gqXR7s0Kj5mHvE2wNpLc4Q"