GET /v1/node-traffic
Read interval node traffic, not cumulative lifetime counters
Description (from the contract)
Requires nodes.read or platform.admin in a platform scope. external_only differences each NIC before selecting the current sample's default-route devices. A route change therefore cannot create a lifetime-counter spike. At least two known snapshots with a baseline for each selected NIC are required. Missing evidence is not a zero. Explicitly excluded NICs are omitted after automatic selection. This is monitoring, not billable usage.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
node | query | string(uuid) | Yes | — |
external_only | query | boolean | No | Literal true or false, at most once. Default false preserves old API callers. The management UI explicitly sends true by default. Filters bandwidth/traffic by each sample's reported network_selection; missing or unavailable selection never means all interfaces. Other metric types are unchanged. False exposes all original NIC facts for manual diagnostics. |
start | query | string(date-time) | No | Start of a window no longer than 31 days; defaults to one hour ago for realtime and one day ago for traffic. |
end | query | string(date-time) | No | Defaults to now; must not precede start. |
limit | query | integer | No | — |
excl_nic | query | string | No | Space-separated interface names to exclude. excluded_nic is a compatible alias; both sets are combined. |
Responses
| Status | Description |
|---|---|
200 | Interval bytes at each sample time, without billing settlement claims. Fields: |
400 | Invalid parameters; validation_error. |
401 | Authentication required. |
403 | Platform scope and nodes.read or platform.admin required. |
404 | Node absent from the caller scope; node_metrics_not_found. |
503 | Metrics runtime unavailable; node_metrics_unavailable. |
What to do on failure
400Fix the parameters or body per the field list; do not retry unchanged.401Check the credential format and whether it expired or was rotated.403Check the key scopes, the owner’s current permissions and the tenant scope; never switch to a more privileged account.404The resource does not exist or belongs to another tenant.503A dependency is unavailable: retry later with the original Idempotency-Key.