Nodes
3 operations in the WP Waterfall API.
List nodes
get/nodesPermalink to List nodes
- Scope:
nodes:read - Permission:
nodes.read
Lists the servers your company owns, in pages of up to 200 (default 50). Filter with region and status.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many rows to return in one page: 1 to 200, and 50 when left out. Default: 50. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
region | query | string | |
status | query | string | One of: provisioning, online, degraded, offline, draining, deleting. |
Responses
| Status | Body | Description |
|---|---|---|
200 | NodeList | Nodes |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of Node | The rows of this page. |
data[].id required | string (uuid) | UUIDv7 |
data[].company_id required | string or null (uuid) | Null for the shared fleet. Dedicated nodes carry the owning company. |
data[].name required | string | |
data[].provider required | string | One of: gcp, aws_ec2, aws, other, demo. |
data[].region required | string | |
data[].public_ip required | string or null | |
data[].outbound_ip required | string or null | |
data[].agent_version required | string or null | |
data[].status required | string | One of: provisioning, online, degraded, offline, draining, deleting. |
data[].capacity required | object | |
data[].allocated required | object | |
data[].labels required | object | |
data[].last_heartbeat_at required | string or null (date-time) | |
data[].empty_since required | string or null (date-time) | When the node first held no environment. Null while it holds one. |
data[].auto_delete_at required | string or null (date-time) | When the empty node cleanup deletes this node if it stays empty. Null for a node the cleanup never deletes (dedicated, kept, demo) or one that holds an environment. |
data[].keep required | boolean | Staff override: true keeps the node running when it is empty. |
data[].cleanup_blocked_reason required | string or null | Why the empty node cleanup left this node alone on its last look, for example a container that is still present. Null when nothing blocks it. Staff read this instead of a failed job. |
data[].cleanup_next_attempt_at required | string or null (date-time) | The cleanup does not look at this node again before this time. Null when it is not waiting. |
data[].provider_missing_since | string or null (date-time) | When the provider reconcile first found the cloud instance missing. Null while the instance exists. A second check at least 5 minutes later marks the node deleted. The reconcile checks only the shared fleet, so a server a company owns reads null. |
data[].removed_reason | string or null | Why WP Waterfall marked the node deleted on its own, for example "instance removed outside WP Waterfall". Null for every other node. A company never lists a deleted node, so it reads null here. |
data[].cpu_pressure_avg10 | number or null | CPU pressure of the node from its newest heartbeat (Linux PSI, percent of time some task waited for a CPU) over 10 and 60 seconds. Null until the agent has reported. Staff read it on the Servers page. |
data[].cpu_pressure_avg60 | number or null | |
data[].cpu_pressure | string | The CPU valve: high when the 60 second average passed 60 percent. A node with high takes no new environment until it falls under 45 percent. Sites already on it keep running. One of: ok, high. |
Get a node
get/nodes/{id}Permalink to Get a node
- Scope:
nodes:read - Permission:
nodes.read
Returns one server your company owns: its name, region, status, addresses, agent version, capacity, and what is allocated on it. A server that is not your company's answers 404.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the server. |
Responses
| Status | Body | Description |
|---|---|---|
200 | Node | Node |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
company_id required | string or null (uuid) | Null for the shared fleet. Dedicated nodes carry the owning company. |
name required | string | |
provider required | string | One of: gcp, aws_ec2, aws, other, demo. |
region required | string | |
public_ip required | string or null | |
outbound_ip required | string or null | |
agent_version required | string or null | |
status required | string | One of: provisioning, online, degraded, offline, draining, deleting. |
capacity required | object | |
capacity.environments required | integer | Range: 0 to any. |
capacity.cpu required | integer | Range: 0 to any. |
capacity.memory_mb required | integer | Range: 0 to any. |
capacity.disk_gb required | integer | Range: 0 to any. |
allocated required | object | |
allocated.environments required | integer | Range: 0 to any. |
allocated.cpu required | integer | Range: 0 to any. |
allocated.memory_mb required | integer | Range: 0 to any. |
allocated.disk_gb required | integer | Range: 0 to any. |
labels required | object | |
last_heartbeat_at required | string or null (date-time) | |
empty_since required | string or null (date-time) | When the node first held no environment. Null while it holds one. |
auto_delete_at required | string or null (date-time) | When the empty node cleanup deletes this node if it stays empty. Null for a node the cleanup never deletes (dedicated, kept, demo) or one that holds an environment. |
keep required | boolean | Staff override: true keeps the node running when it is empty. |
Node capacity and headroom
get/nodes/{id}/capacityPermalink to Node capacity and headroom
- Scope:
nodes:read - Permission:
nodes.read
Returns the server's capacity, what is allocated, and what is available: capacity minus the allocation minus the 20% headroom, never below zero. accepting_sites says whether new sites may land on it. A server that is not your company's answers 404.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the server. |
Responses
| Status | Body | Description |
|---|---|---|
200 | NodeCapacity | Capacity |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
node_id required | string (uuid) | UUIDv7 |
capacity required | object | |
capacity.environments required | integer | Range: 0 to any. |
capacity.cpu required | integer | Range: 0 to any. |
capacity.memory_mb required | integer | Range: 0 to any. |
capacity.disk_gb required | integer | Range: 0 to any. |
allocated required | object | |
allocated.environments required | integer | Range: 0 to any. |
allocated.cpu required | integer | Range: 0 to any. |
allocated.memory_mb required | integer | Range: 0 to any. |
allocated.disk_gb required | integer | Range: 0 to any. |
available required | object | Capacity minus allocation minus the 20 percent headroom. Never below zero. |
available.environments required | integer | Range: 0 to any. |
available.cpu required | integer | Range: 0 to any. |
available.memory_mb required | integer | Range: 0 to any. |
available.disk_gb required | integer | Range: 0 to any. |
headroom_percent required | integer | Range: 0 to 100. |
accepting_sites required | boolean |