Edgeweir
Reference

API: Clusters and nodes

Procedures for clusters, revisions and canary, network settings, enrollment tokens, node groups, nodes, logs, regions, upgrades, port pools and L4 apps.

Access levels, authentication, idempotency keys and the error format: API overview.

Clusters

  • Creating a cluster also creates its default node group default and publishes revision 1 (reason cluster_created).
  • Audit: cluster.create, cluster.update, cluster.delete.
  • Behaviour: Clusters and nodes.
ProcedureMethod and pathAccess
clusters.listGET /clustersread; service account clusters:read
clusters.getGET /clusters/{id}read; service account clusters:read
clusters.createPOST /clusterswrite
clusters.updatePATCH /clusters/{id}write
clusters.deleteDELETE /clusters/{id}write

clusters.list

GET /clusters · read · service account clusters:read

No parameters.

Response: Cluster[], oldest first.

clusters.get

GET /clusters/{id} · read · service account clusters:read

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Cluster ID

Response: Cluster.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

clusters.create

POST /clusters · write

ParameterInTypeRequiredConstraints and defaultDescription
namebodystringyes1–64 characters after trimming; lowercase letters, digits and -, starting with a lowercase letter or digitCluster name, unique
descriptionbodystringnoAt most 500 characters after trimming, default ""Description

Response: Cluster.

ErrorStatusCondition
CLUSTER_NAME_TAKEN409Another cluster has the name; data.name

clusters.update

PATCH /clusters/{id} · write

Publishes no revision.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Cluster ID
namebodystringnoAs in clusters.create; unchanged when omittedCluster name
descriptionbodystringnoAt most 500 characters after trimming; unchanged when omittedDescription

Response: Cluster.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
CLUSTER_NAME_TAKEN409Another cluster has the name; data.name

clusters.delete

DELETE /clusters/{id} · write

Only a cluster without nodes and sites can be deleted. The cluster's platform alerts end with it.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Cluster ID

Response: { ok: true }.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
CLUSTER_NOT_EMPTY409The cluster still has nodes (disabled ones included) or sites; data.nodes, data.sites are the counts
DNS_BINDING_IN_USE409The cluster's DNS binding is in automatic mode or still holds records at the provider

Revisions and canary

  • Revision reason codes: rollback (reasonParams.revision is the rollback target), rollout_rollback (reasonParams.revision is the candidate).
  • Audit: cluster.rollback, cluster.rollout_policy_update, cluster.rollout_promote, cluster.rollout_abort.
  • Behaviour: Revisions and Configuration canary.
ProcedureMethod and pathAccess
clusters.revisionsGET /clusters/{id}/revisionsread
clusters.rollbackPOST /clusters/{id}/rollbackwrite
clusters.rollbackPreviewGET /clusters/{id}/rollback-previewread
clusters.rolloutGET /clusters/{id}/rolloutread
clusters.setRolloutPolicyPUT /clusters/{id}/rollout-policywrite
clusters.promoteRolloutPOST /clusters/{id}/rollout/promotewrite
clusters.abortRolloutPOST /clusters/{id}/rollout/abortwrite

clusters.revisions

GET /clusters/{id}/revisions · read

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Cluster ID
beforequeryintegerno≥1Return only revisions below this number, excluding it
limitqueryintegerno1–100, default 100Maximum number of revisions per request

Response: Revision[], in descending revision order. Pass the last entry's revision as the next request's before until fewer than limit entries are returned (possibly none) to read every retained revision. Revision numbers may have gaps. Without pagination parameters, the latest 100 entries are still returned.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

clusters.rollback

POST /clusters/{id}/rollback · write

Publishes the content of the chosen revision as the cluster's next revision. The origin address allow list, the platform error pages, the offline hosts and the IP lists are taken as they are now, not as the old revision had them. When the content equals the latest revision, no revision is created and the latest one is returned. With the configuration canary on, the new revision goes to every node at once; the rollout state becomes promoted with outcome manual_rollback.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Cluster ID
revisionbodyintegeryes≥1Revision to roll back to

Response: Revision.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
REVISION_NOT_FOUND404The cluster has no such revision (including revisions pruned beyond the retention)
ROLLBACK_RESOURCE_UNAVAILABLE409The target revision references a deleted site, domain or IP list, or an unavailable or expired certificate
CLUSTER_SITE_LIMIT409The published site count would exceed the cluster's limit; data.limit

clusters.rollbackPreview

GET /clusters/{id}/rollback-preview · read

Builds the content as the rollback would and compares it with the latest revision. Writes nothing.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Cluster ID
revisionqueryintegeryes≥1Revision to roll back to

Response: { revision, currentRevision, unchanged, sites: { added, changed, removed } }. currentRevision is the cluster's latest revision number, null without revisions; unchanged is true when the rollback content equals the latest revision and the rollback would publish nothing new; the three sites arrays are [{ id, name }], the sites added, changed and removed (compared by name).

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
REVISION_NOT_FOUND404The cluster has no such revision
ROLLBACK_RESOURCE_UNAVAILABLE409As in clusters.rollback

clusters.rollout

GET /clusters/{id}/rollout · read

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Cluster ID

Response: Rollout. Before a policy was ever saved, policy holds the defaults: enabled: false, windowSeconds: 300, autoPromote: true, errorRatioMultiplier: 2, errorRatioFloor: 0.05, minRequests: 100.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

clusters.setRolloutPolicy

PUT /clusters/{id}/rollout-policy · write

Replaces the policy. Turning it on pins the current latest revision as the stable revision; turning it off during a rollout gives the candidate to every node (outcome policy_disabled).

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Cluster ID
enabledbodybooleanyes—Configuration canary on
windowSecondsbodyintegeryes60–3600Observation window (seconds)
autoPromotebodybooleanyes—Promote when the window passes; false waits for the operator
errorRatioMultiplierbodynumberyes1–100Roll back when the canary 5xx ratio exceeds max(baseline × errorRatioMultiplier, errorRatioFloor)
errorRatioFloorbodynumberyes0.001–1See above
minRequestsbodyintegeryes1–1000000Requests the canary nodes must serve in the window before the ratio counts
expectedUpdatedAtbodydatetimeno—Optimistic concurrency: the policyUpdatedAt last read (updatedAt is accepted too)

Response: Rollout.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
UPDATED_AT_MISMATCH409expectedUpdatedAt is neither the current policyUpdatedAt nor updatedAt; data.updatedAt

clusters.promoteRollout

POST /clusters/{id}/rollout/promote · write

The candidate becomes the stable revision of every node now (outcome manual_promote).

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Cluster ID

Response: Rollout.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
ROLLOUT_NOT_ACTIVE409No canary rollout is running (policy off, state not canary / awaiting_promotion, or no candidate)

clusters.abortRollout

POST /clusters/{id}/rollout/abort · write

Publishes the stable content as a new revision (reason rollout_rollback), which becomes the stable revision of every node; the state becomes rolled_back with outcome manual_abort, and the platform alert config_rollout_failed is raised.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Cluster ID

Response: Rollout.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
ROLLOUT_NOT_ACTIVE409As in clusters.promoteRollout

Cluster network settings (listen ports, client IP, unknown hosts, connection limits, cache zone)

  • The set* procedures replace the setting. A setting equal to the current one publishes nothing and writes no audit entry; otherwise a revision is published and audited.
  • Revision reason codes and audit actions:
ProcedureReason codeAudit
clusters.setListenPortslisten_ports_updatedcluster.listen_ports_update
clusters.setClientIpclient_ip_updatedcluster.client_ip_update
clusters.setUnknownHostsunknown_hosts_updatedcluster.unknown_hosts_update
clusters.setConnectionLimitsconnection_limits_updatedcluster.connection_limits_update
clusters.setCachecluster_cache_updatedcluster.cache_update
ProcedureMethod and pathAccess
clusters.listenPortsGET /clusters/{clusterId}/listen-portsread
clusters.setListenPortsPUT /clusters/{clusterId}/listen-portswrite
clusters.clientIpGET /clusters/{clusterId}/client-ipread
clusters.setClientIpPUT /clusters/{clusterId}/client-ipwrite
clusters.unknownHostsGET /clusters/{clusterId}/unknown-hostsread
clusters.setUnknownHostsPUT /clusters/{clusterId}/unknown-hostswrite
clusters.connectionLimitsGET /clusters/{clusterId}/connection-limitsread
clusters.setConnectionLimitsPUT /clusters/{clusterId}/connection-limitswrite
clusters.setCachePUT /clusters/{id}/cachewrite

clusters.listenPorts

GET /clusters/{clusterId}/listen-ports · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID

Response: { clusterId, httpPorts, httpsPorts, nodesWithout }. httpPorts and httpsPorts are the extra ports, ascending, without 80 and 443 (always listened on); nodesWithout lists active nodes without edge-ports-v1.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

clusters.setListenPorts

PUT /clusters/{clusterId}/listen-ports · write

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID
httpPortsbodyarray<integer>yesAt most 16; 1–65535, not 80 or 443; saved deduplicated and ascendingExtra HTTP ports
httpsPortsbodyarray<integer>yesAs aboveExtra HTTPS ports

Response: as clusters.listenPorts.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
LISTEN_PORT_CONFLICT400A port is in both httpPorts and httpsPorts; data.port
LISTEN_PORT_IN_POOL400A port is inside a port pool of the cluster (any protocol); data.port, data.pools (from-to/protocol, comma-separated)
LISTEN_PORT_IN_USE409A removed port is still used by a site of the cluster; data.port, data.sites (first 5 site names)

clusters.clientIp

GET /clusters/{clusterId}/client-ip · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID

Response: { clusterId, settings: { mode, trustedCidrs, header, dropForwardedFor }, nodesWithout }. Never set: settings is direct, [], "", false; nodesWithout lists active nodes without client-ip-v1.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

clusters.setClientIp

PUT /clusters/{clusterId}/client-ip · write

trustedCidrs and header are saved in header mode only; dropForwardedFor in direct mode only.

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID
settingsbodyobjectyes—Client address setting
settings.modebodyenumnodirect / proxy_protocol / header, default directdirect: the TCP peer; proxy_protocol: the PROXY protocol header every TCP connection starts with (QUIC keeps the UDP peer); header: a header sent by peers inside the trusted ranges
settings.trustedCidrsbodyarray<string>noAt most 64 IP addresses or CIDRs, normalized (10.1.2.3/8 is saved as 10.0.0.0/8), deduplicated and sorted; IPv4-mapped IPv6 ranges refused; default []; at least 1 in header modeTrusted proxy ranges
settings.headerbodystringnoAfter trimming and lowercasing 1–64 of [a-z0-9-]; not starting with x-edgeweir-, not connection, keep-alive, proxy-connection, transfer-encoding, upgrade, te, trailer, host, content-length, content-type, cookie, authorization, cdn-loop, x-request-id; default ""; required in header modeHeader carrying the client address, such as x-forwarded-for, x-real-ip, cf-connecting-ip, true-client-ip
settings.dropForwardedForbodybooleannoDefault false; direct mode onlySend the origins only the TCP peer as X-Forwarded-For

Response: as clusters.clientIp.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

clusters.unknownHosts

GET /clusters/{clusterId}/unknown-hosts · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID

Response: { clusterId, settings, defaultSite, nodesWithout }. settings has the fields of settings in clusters.setUnknownHosts; defaultSite is { id, name, enabled, certificate } (certificate: the site has a certificate) or null without a default site; while the default site is disabled or has no certificate, nodes answer as with page (and abort unknown SNI); nodesWithout lists active nodes without unknown-host-v1.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

clusters.setUnknownHosts

PUT /clusters/{clusterId}/unknown-hosts · write

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID
settingsbodyobjectyes—Unknown host settings
settings.unknownHostbodyenumnopage / close / site, default pageA host no site serves: page the platform's unknown host page (404), close no response (444), site the default site
settings.ipAccessbodyenumnoAs above, default pageRequests by node IP or without a Host
settings.defaultSiteIdbodyuuidnoMay be null, default null; required when unknownHost or ipAccess is site, an enabled site of this cluster; not saved when neither is siteDefault site
settings.defaultCertificatebodybooleannoDefault false; true only with unknownHost siteComplete TLS handshakes for unknown SNI with the default site's certificate
settings.scanbodyobjectnoDefault {}Scan protection (platform-wide automatic bans)
settings.scan.enabledbodybooleannoDefault falseScan protection on
settings.scan.thresholdbodyintegerno10–10000, default 100Requests to unknown hosts or by node IP within 60 seconds; one more bans
settings.scan.banSecondsbodyintegerno60–86400, default 3600Ban duration (seconds)

Response: as clusters.unknownHosts.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
DEFAULT_SITE_INVALID400The default site does not exist, belongs to another cluster or is disabled
DEFAULT_SITE_CERTIFICATE_REQUIRED409defaultCertificate is true and the default site has no certificate

clusters.connectionLimits

GET /clusters/{clusterId}/connection-limits · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID

Response: { clusterId, settings, effectivePorts, nodes }.

FieldTypeDescription
settingsobjectFields of settings in clusters.setConnectionLimits; never set: enabled: false, perIp: 256, newPerSecond: 50, burst: 100, ports: null
effectivePortsarray<object>Port ranges the nodes limit, [{ start, end }]: the merged settings.ports; with ports null, the listener ports and TCP L4 app ports of the latest revision
nodes.totalintegerActive nodes
nodes.enforcingintegerNodes enforcing the limits in the kernel
nodes.unsupportedarray<object>Active nodes without conn-limit-v1, [{ id, name }]
nodes.failingarray<object>Nodes with conn-limit-v1 that do not enforce the limits (such as without nftables), [{ id, name, error }], error being the node's reason; [] while the limits are off
ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

clusters.setConnectionLimits

PUT /clusters/{clusterId}/connection-limits · write

Nodes limit TCP connections per IPv4 address or IPv6 /64 in the kernel (nftables) and drop packets over a limit; UDP is not limited.

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID
settingsbodyobjectyes—Connection limits
settings.enabledbodybooleanyesWhen on, perIp and newPerSecond are not both 0Limits on
settings.perIpbodyintegeryes0–100000; 0 means no limitConcurrent connections per client
settings.newPerSecondbodyintegeryes0–100000; 0 means no limitNew connections per second per client
settings.burstbodyintegeryes0–1000000; when not 0, at least newPerSecond, and newPerSecond is not 0; 0 means newPerSecondNew connections above the rate a client may open at once
settings.portsbodyarray<object>yesMay be null; 1–64 ranges, not overlapping; saved sorted with adjacent ranges mergedLimited port ranges; null means the cluster's listener ports and TCP L4 app ports
settings.ports[].startbodyintegeryes1–65535First port
settings.ports[].endbodyintegeryes1–65535, not below startLast port

Response: as clusters.connectionLimits.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

clusters.setCache

PUT /clusters/{id}/cache · write

A structural change: nodes rewrite the cache zone and reload nginx. A node may override the size with nodes.setCache.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Cluster ID
maxSizeGbbodyintegeryes1–65536Cache zone size on every node (GiB)
inactiveDaysbodyintegeryes1–90Days unrequested objects stay

Response: Cluster.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

Enrollment tokens

ProcedureMethod and pathAccess
clusters.createEnrollmentTokenPOST /enrollment-tokenswrite
clusters.getEnrollmentTokenGET /enrollment-tokens/{id}read

clusters.createEnrollmentToken

POST /enrollment-tokens · write · refuses Idempotency-Key

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdbodyuuidyes—Cluster the node joins
nodeGroupIdbodyuuidnoMust belong to clusterId; default the cluster's default node groupNode group the node joins
nodeNamebodystringnoAt most 64 characters after trimming, default ""Name of the enrolled node; empty: the node's host name, without one node-<first 8 characters of the token ID>
ttlMinutesbodyintegerno5–10080, default 60Validity (minutes)

Response:

FieldTypeDescription
tokenIduuidToken ID, for clusters.getEnrollmentToken
tokenstringEnrollment token, starting with ewt_
expiresAtdatetimeExpiry
serverUrlstringNode channel URL in effect
caSha256stringSHA-256 fingerprint of the node channel CA
installCommandstringComplete shell command read from stdin: a 0700 temporary directory, a 0600 token file, root/sudo execution with --token-file, and cleanup on success, failure and INT/TERM. Copy both heredoc delimiters.
warningsarray<enum>Addresses nodes on other networks may not reach: console_url_local, console_url_private, console_url_http, node_api_url_local, node_api_url_private
ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
NODE_GROUP_NOT_FOUND404The node group does not exist
NODE_GROUP_CLUSTER_MISMATCH400The node group belongs to another cluster

clusters.getEnrollmentToken

GET /enrollment-tokens/{id} · read

Never returns the token itself.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—tokenId

Response: { tokenId, expiresAt, usedAt, node }. usedAt is when the token was used, null before; node is the enrolled Node, null before use or after the node was deleted.

ErrorStatusCondition
ENROLLMENT_TOKEN_NOT_FOUND404The token does not exist

Node groups

  • Node group names are unique within a cluster. Each cluster has one default node group, which cannot be deleted.
  • Audit: node_group.create, node_group.update, node_group.delete.
  • Behaviour: Node groups.
ProcedureMethod and pathAccess
nodeGroups.listGET /node-groupsread
nodeGroups.createPOST /node-groupswrite
nodeGroups.updatePATCH /node-groups/{id}write
nodeGroups.deleteDELETE /node-groups/{id}write

nodeGroups.list

GET /node-groups · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdqueryuuidno—Only this cluster's node groups; [] when the cluster does not exist

Response: Node group[], the default group first, the rest oldest first.

nodeGroups.create

POST /node-groups · write

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdbodyuuidyes—Cluster ID
namebodystringyes1–64 characters after trimmingNode group name
regionIdbodyuuidnoMay be null, default nullRegion
isCanarybodybooleannoDefault falseCanary group: its nodes get candidate revisions first

Response: Node group.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
NODE_GROUP_NAME_TAKEN409The cluster has a node group of that name; data.name
REGION_NOT_FOUND404The region does not exist

nodeGroups.update

PATCH /node-groups/{id} · write

Changing isCanary changes the target revision of the group's nodes.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node group ID
namebodystringno1–64 characters after trimming; unchanged when omittedNode group name
regionIdbodyuuidnoMay be null (clears the region); unchanged when omittedRegion
isCanarybodybooleannoUnchanged when omittedCanary group

Response: Node group.

ErrorStatusCondition
NODE_GROUP_NOT_FOUND404The node group does not exist
NODE_GROUP_NAME_TAKEN409The cluster has a node group of that name; data.name
REGION_NOT_FOUND404The region does not exist

nodeGroups.delete

DELETE /node-groups/{id} · write

The group's nodes move to the cluster's default node group.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node group ID

Response: { ok: true }.

ErrorStatusCondition
NODE_GROUP_NOT_FOUND404The node group does not exist
NODE_GROUP_IS_DEFAULT409The default node group cannot be deleted

Nodes

  • Audit: node.update (rename, or rename and move), node.move (move only), node.disable, node.enable, node.delete, node.set_probe, node.set_addresses, node.cache_update.
  • nodes.setCache publishes a revision with reason code node_cache_updated (reasonParams.node); nodes.setAddresses publishes the cluster's DNS revision (reason manual).
  • Behaviour: Nodes, Scheduling addresses and backup IPs, Nodes that also probe.
ProcedureMethod and pathAccess
nodes.listGET /nodesread
nodes.getGET /nodes/{id}read
nodes.updatePATCH /nodes/{id}write
nodes.disablePOST /nodes/{id}/disablewrite
nodes.enablePOST /nodes/{id}/enablewrite
nodes.deleteDELETE /nodes/{id}write
nodes.decommissionPOST /nodes/{id}/decommissionwrite
nodes.cancelDecommissionDELETE /nodes/{id}/decommissionwrite
nodes.setProbePUT /nodes/{id}/probewrite
nodes.setAddressesPUT /nodes/{id}/addresseswrite
nodes.setCachePUT /nodes/{id}/cachewrite

nodes.list

GET /nodes · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdqueryuuidno—Only this cluster's nodes; [] when the cluster does not exist

Response: Node[], oldest first.

nodes.get

GET /nodes/{id} · read

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID

Response: Node.

ErrorStatusCondition
NODE_NOT_FOUND404The node does not exist

nodes.update

PATCH /nodes/{id} · write

Moving a node into or out of a canary group changes its target revision.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID
namebodystringno1–64 characters after trimming; unchanged when omittedNode name
nodeGroupIdbodyuuidnoA node group of the same cluster; null refused; unchanged when omittedNode group

Response: Node.

ErrorStatusCondition
NODE_NOT_FOUND404The node does not exist
NODE_GROUP_NOT_FOUND404The node group does not exist
NODE_GROUP_CLUSTER_MISMATCH400The node group belongs to another cluster

nodes.disable

POST /nodes/{id}/disable · write

The node channel refuses a disabled node (except for certificate renewal); it keeps serving its last-known-good configuration. Its unfinished cache task deliveries are marked skipped, and it leaves unfinished upgrades.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID

Response: Node.

ErrorStatusCondition
NODE_NOT_FOUND404The node does not exist

nodes.enable

POST /nodes/{id}/enable · write

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID

Response: Node.

ErrorStatusCondition
NODE_NOT_FOUND404The node does not exist

nodes.delete

DELETE /nodes/{id} · write

Deletes the node and revokes its client certificate (also the one a renewal replaced that is still accepted); the agent needs a new enrollment token to come back. The node leaves unfinished upgrades, and the results it measured as a probe are deleted.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID

Response: { ok: true }.

ErrorStatusCondition
NODE_NOT_FOUND404The node does not exist

nodes.decommission

POST /nodes/{id}/decommission · write

Asks the node to stop serving and delete its identity (capability decommission-v1, edgeweir-node 1.7.0 and later); once the node reports it done, the console revokes its certificate and deletes the node, see Decommissioning a node. An offline node gets the task when it connects again. Service accounts cannot call it. Audit node.decommission; when the node reports a failure, node.decommission_failed, the request is cleared and decommissionError holds the reason.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID

Response: Node with decommissionRequestedAt set.

ErrorStatusWhen
NODE_NOT_FOUND404No such node
NODE_CAPABILITY_REQUIRED409The node lacks decommission-v1
NODE_DECOMMISSION_DISABLED409The node is disabled
NODE_DECOMMISSION_PENDING409A request is already pending

nodes.cancelDecommission

DELETE /nodes/{id}/decommission · write

Withdraws a decommission the node has not carried out yet. Audit node.decommission_cancel.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID

Response: Node.

ErrorStatusWhen
NODE_NOT_FOUND404No such node
NODE_DECOMMISSION_NOT_PENDING409No request is pending

nodes.setProbe

PUT /nodes/{id}/probe · write

The node probes the other nodes from its node group's region. Turning it off deletes the results it measured.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID
enabledbodybooleanyes—Also act as a probe

Response: Node.

ErrorStatusCondition
NODE_NOT_FOUND404The node does not exist
NODE_REGION_REQUIRED409Turning it on while the node's group has no region

nodes.setAddresses

PUT /nodes/{id}/addresses · write

Replaces the node's configured scheduling addresses; DNS and probes use them instead of the addresses the node reports.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID
addressesbodyarray<object>yesAt most 8; when not empty, one has level 0; [] goes back to the public addresses the node reportsScheduling addresses
addresses[].addressbodystringyes1–64 characters after trimming; a single unicast IP (private ranges included), no CIDR, no duplicatesAddress
addresses[].levelbodyintegeryes0–20 primary, 1 first backup, 2 second backup

Response: Node.

ErrorStatusCondition
NODE_NOT_FOUND404The node does not exist
NODE_ADDRESS_INVALID400An address is not a single unicast IP (CIDR, host name, loopback, link-local, multicast…) or is repeated; data.address

nodes.setCache

PUT /nodes/{id}/cache · write

Only this node reloads nginx. The node's own size takes effect once every active node of the cluster reports cache-zone-v1.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID
maxSizeGbbodyintegeryes1–65536; may be nullThe node's cache zone size (GiB); null uses the cluster's

Response: Node.

ErrorStatusCondition
NODE_NOT_FOUND404The node does not exist

SSH install

  • Requests, states, failure reasons and the handling of credentials: SSH install. Service accounts cannot call these; read-only AccessKeys can call capabilities and get. Scan, start and retry refuse Idempotency-Key. capabilities.version:2 identifies the SSH connection capabilities.
ProcedureMethod and pathAccess
sshInstalls.capabilitiesGET /ssh-installs/capabilitiesread
sshInstalls.scanHostKeysPOST /ssh-installs/host-keyswrite
sshInstalls.startPOST /ssh-installswrite
sshInstalls.getGET /ssh-installs/{id}read
sshInstalls.cancelPOST /ssh-installs/{id}/cancelwrite
sshInstalls.retryPOST /ssh-installs/{id}/retrywrite

Node logs

  • Node logs need the node capability node-logs-v1, debug logs debug-logs-v1; supported in responses tells whether the node has it.
  • For the demo account, client addresses in fields.client of entries are reduced.
  • Audit: node.debug_logs_pull.
  • Behaviour: Node logs and Debug logs.
ProcedureMethod and pathAccess
nodes.logsGET /nodes/{id}/logsread
nodes.debugLogsGET /nodes/{id}/debug-logsread
nodes.debugLogGET /nodes/{id}/debug-logs/{pullId}read
nodes.pullDebugLogsPOST /nodes/{id}/debug-logswrite

nodes.logs

GET /nodes/{id}/logs · read

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID
minLevelqueryenumnoinfo / warn / error; default allThis level and above
sourcequeryenumnoagent / supervisor / nginx / luaSource
fromquerydatetimeno—Happened on the node at or after
toquerydatetimeno—Happened on the node at or before
qquerystringnoAt most 200 characters after trimmingMessage contains (any case)
cursorquerystringnoAt most 200 charactersnextCursor of the previous page (older entries)
limitqueryintegerno1–200, default 100Entries per page

Response: { entries, nextCursor, supported }. entries is Node log entry[], newest first; nextCursor is null when there are no older entries.

ErrorStatusCondition
NODE_NOT_FOUND404The node does not exist
NODE_LOG_CURSOR_INVALID400cursor cannot be read

nodes.debugLogs

GET /nodes/{id}/debug-logs · read

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID

Response: { pulls, supported }. pulls is Debug log pull[] (without entries), newest first, at most 10; pulls past their deadline are failed first.

ErrorStatusCondition
NODE_NOT_FOUND404The node does not exist

nodes.debugLog

GET /nodes/{id}/debug-logs/{pullId} · read

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID
pullIdpathuuidyes—Pull ID

Response: Debug log pull with entries.

ErrorStatusCondition
NODE_DEBUG_LOG_NOT_FOUND404The node has no such pull (also when the node does not exist)

nodes.pullDebugLogs

POST /nodes/{id}/debug-logs · write

Asks the node to upload its in-memory debug log buffer; a pull fails when the node has not uploaded within 120 seconds (errorCode debug_logs_timeout). A node has at most one open pull.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Node ID
frombodydatetimenoBefore to when both are givenStart
tobodydatetimeno—End
componentsbodyarray<string>noAt most 16, each 1–64 of [a-z0-9_.-]; default [] (no filter)Components
sourcesbodyarray<enum>noagent / supervisor / nginx / lua, at most 4; default [] (no filter)Sources

Response: Debug log pull (without entries).

ErrorStatusCondition
NODE_NOT_FOUND404The node does not exist
NODE_CAPABILITY_REQUIRED409The node lacks debug-logs-v1; data.features, data.nodes
NODE_DEBUG_LOGS_BUSY409The node has an open pull

Regions

  • Region codes are unique.
  • Audit: region.create, region.update, region.delete.
  • Behaviour: Regions.
ProcedureMethod and pathAccess
regions.listGET /regionsread
regions.createPOST /regionswrite
regions.updatePATCH /regions/{id}write
regions.deleteDELETE /regions/{id}write

regions.list

GET /regions · read

No parameters.

Response: Region[], by code.

regions.create

POST /regions · write

ParameterInTypeRequiredConstraints and defaultDescription
namebodystringyes1–64 characters after trimmingRegion name
codebodystringyesAfter trimming and lowercasing 1–32 characters, lowercase letters, digits and -, starting with a letter or digitRegion code

Response: Region.

ErrorStatusCondition
REGION_CODE_TAKEN409The code is in use; data.code

regions.update

PATCH /regions/{id} · write

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Region ID
namebodystringnoAs in regions.create; unchanged when omittedRegion name
codebodystringnoAs in regions.create; unchanged when omittedRegion code

Response: Region.

ErrorStatusCondition
REGION_NOT_FOUND404The region does not exist
REGION_CODE_TAKEN409Another region uses the code; data.code

regions.delete

DELETE /regions/{id} · write

Node groups that referenced the region stay, without a region.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Region ID

Response: { ok: true }.

ErrorStatusCondition
REGION_NOT_FOUND404The region does not exist
REGION_IN_USE409Probes belong to the region; data.probes is their count

Node upgrades

  • An upgrade covers every active node of the cluster: the nodes of the chosen group are the canary (canary), the others rollout; after promotion they follow in batches, with at most 25% of the rollout nodes (at least one) upgrading at once.
  • Audit: node.upgrade_create, node.upgrade_promote, node.upgrade_cancel.
  • Prerequisites, states and the checks on the node: Node upgrades.
ProcedureMethod and pathAccess
upgrades.releaseGET /node-releases/{version}read
upgrades.latestVersionGET /node-upgrades/latest-versionread
upgrades.listGET /node-upgradesread
upgrades.createPOST /node-upgradeswrite
upgrades.promotePOST /node-upgrades/{id}/promotewrite
upgrades.cancelPOST /node-upgrades/{id}/cancelwrite

upgrades.release

GET /node-releases/{version} · read

Reads v<version>/checksums.txt from the node release source (at most 2 MiB, 15-second timeout).

ParameterInTypeRequiredConstraints and defaultDescription
versionpathstringyesmajor.minor.patch, optionally with a -prerelease suffix, at most 64 characters; a leading v is droppedVersion

Response: { version, artifacts }. artifacts has one item per supported architecture, { arch, archiveUrl, sha256, checksumsUrl, signatureUrl }: arch is amd64 / arm64; archiveUrl points to edgeweir-node_<version>_linux_<arch>.tar.gz; signatureUrl to checksums.txt.sigstore.json.

ErrorStatusCondition
UPGRADE_RELEASE_UNAVAILABLE502The manifest cannot be read, lists an archive twice, or has no supported archive

upgrades.latestVersion

GET /node-upgrades/latest-version · read

A GitHub release source is asked through the releases API, a mirror through <source>/latest. Cached per source for 10 minutes, a failed lookup for 1 minute.

No parameters.

Response: { version }, version being null when it cannot be told.

upgrades.list

GET /node-upgrades · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdqueryuuidno—Only this cluster's upgrades

Response: Upgrade[], newest first, at most 50.

upgrades.create

POST /node-upgrades · write

ParameterInTypeRequiredConstraints and defaultDescription
versionbodystringyesAs in upgrades.releaseTarget version
nodeGroupIdbodyuuidyes—Node group upgraded first (the canary)

Response: Upgrade.

ErrorStatusCondition
UPGRADE_RELEASE_UNAVAILABLE502As in upgrades.release
NODE_GROUP_NOT_FOUND404The node group does not exist
UPGRADE_TOO_MANY_NODES409The cluster has more active nodes than data.limit (1000)
UPGRADE_CANARY_EMPTY409The chosen node group has no active nodes
UPGRADE_NODES_UNAVAILABLE409An active node fails a prerequisite (Linux, an archive for its architecture, self-upgrade-v1, online, healthy data plane, target revision applied); data.nodes (at most 10, then +N)
UPGRADE_BUSY409A node is already in an unfinished upgrade; data.nodes

upgrades.promote

POST /node-upgrades/{id}/promote · write

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Upgrade ID

Response: Upgrade.

ErrorStatusCondition
UPGRADE_NOT_FOUND404The upgrade does not exist
UPGRADE_NOT_READY409canPromote is false

upgrades.cancel

POST /node-upgrades/{id}/cancel · write

Cancels the held and pending deliveries; the upgrade becomes cancelled.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—Upgrade ID

Response: Upgrade.

ErrorStatusCondition
UPGRADE_NOT_FOUND404The upgrade does not exist
UPGRADE_BUSY409A node is upgrading (running); data.nodes
UPGRADE_FINISHED409The upgrade is not canary or rollout

Port pools and L4 apps

  • Revision reason codes: l4_app_created, l4_app_updated, l4_app_deleted (reasonParams.app is the app name). clusters.setPortPools publishes no revision.
  • Audit: cluster.port_pools_update, l4_app.create, l4_app.update, l4_app.enable, l4_app.disable, l4_app.delete, l4.cname_update.
  • Node capabilities: a configuration with L4 apps needs l4-v1; port ranges, originPortMode: same and TLS termination need l4-v2.
  • Limits: at most 256 apps per cluster (disabled ones included) and 2048 app ports per cluster (ranges counted in full).
  • Behaviour: L4 forwarding.
ProcedureMethod and pathAccess
clusters.portPoolsGET /clusters/{clusterId}/port-poolsread
clusters.setPortPoolsPUT /clusters/{clusterId}/port-poolswrite
l4Apps.listGET /l4-appsread
l4Apps.getGET /l4-apps/{id}read
l4Apps.createPOST /l4-appswrite
l4Apps.updatePATCH /l4-apps/{id}write
l4Apps.deleteDELETE /l4-apps/{id}write
l4Apps.setEnabledPUT /l4-apps/{id}/enabledwrite
l4Apps.setCnamePrefixPUT /l4-apps/{id}/cname-prefixwrite
l4Apps.statsGET /l4-apps/{id}/statsread

clusters.portPools

GET /clusters/{clusterId}/port-pools · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID

Response:

FieldTypeDescription
clusterIduuidCluster ID
poolsarray<object>Port pools [{ protocol, from, to }], by first port, then protocol; protocol is tcp / udp / both
reservedPortsarray<integer>Ports of the cluster's HTTP / HTTPS listeners (80, 443, the extra ports and the listener ports of the latest revision); never part of a pool
nodesWithoutL4array<object>Active nodes without l4-v1, [{ id, name }]; they refuse configurations with L4 apps until upgraded
nodesWithoutL4V2array<object>Active nodes without l4-v2, [{ id, name }]
ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist

clusters.setPortPools

PUT /clusters/{clusterId}/port-pools · write

Replaces the port pools.

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdpathuuidyes—Cluster ID
poolsbodyarray<object>yesAt most 64Port pools
pools[].protocolbodyenumyestcp / udp / bothboth counts for TCP and UDP
pools[].frombodyintegeryes1024–65535First port (inclusive)
pools[].tobodyintegeryes1024–65535, not below fromLast port (inclusive)

Response: as clusters.portPools.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
L4_PORT_POOL_OVERLAP400Pools of a protocol overlap (both overlaps tcp and udp); data.pools (from-to/protocol, comma-separated)
L4_PORT_RESERVED400A pool contains a port of the cluster's HTTP / HTTPS listeners; data.port
L4_PORT_IN_USE409The new pools would leave an app's port (disabled apps included) outside; data.apps (name (port/protocol), comma-separated)

l4Apps.list

GET /l4-apps · read

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdqueryuuidno—Only this cluster's apps

Response: L4 app[], by port, then protocol.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The given cluster does not exist

l4Apps.get

GET /l4-apps/{id} · read

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—App ID

Response: L4 app.

ErrorStatusCondition
L4_APP_NOT_FOUND404The app does not exist

l4Apps.create

POST /l4-apps · write · 201

ParameterInTypeRequiredConstraints and defaultDescription
clusterIdbodyuuidyes—Cluster ID
namebodystringyes1–100 characters after trimmingApp name
protocolbodyenumyestcp / udpProtocol
portbodyintegeryes1024–65535; inside a port pool of the cluster for the protocolListening port (first port of a range)
portEndbodyintegerno1024–65535, may be null, default null; above port, at most 1000 ports in the range, all inside one poolLast port of a range; null for a single port
originPortModebodyenumnofixed / same, default fixedfixed: each origin's port; same: the port the connection arrived on
certificateIdbodyuuidnoMay be null, default null; TCP only; issued and unexpiredThe node terminates TLS with this certificate and forwards plain TCP; the SNI must be one of its names; null for plain TCP
tlsMinimumVersionbodyenumno1.2 / 1.3, default 1.2Minimum TLS version
enabledbodybooleannoDefault trueEnabled
acceptProxyProtocolbodybooleannoDefault false; TCP onlyThe listener expects a PROXY protocol header (v1 or v2)
proxyProtocolVersionbodyintegerno0–2, default 0; not 0 for TCP onlyPROXY protocol version sent to the origins; 0 sends none
originsbodyarray<object>yes1–32, at least one with backup falseOrigins
origins[].addressbodystringyesHost name or IP, 1–253 characters; the origin address policy applies as for sitesOrigin address
origins[].portbodyintegerno1–65535; required with originPortMode fixed, ignored with same (saved as 0)Origin port
origins[].weightbodyintegerno1–100, default 1Weight
origins[].backupbodybooleannoDefault falseBackup origin: used only while every other origin is down
maxFailsbodyintegerno1–100, default 3Passive health check: consecutive connection failures that take an origin out
failTimeoutSecondsbodyintegerno1–3600, default 30Passive health check: seconds before a failed origin is tried again
connectTimeoutMsbodyintegerno100–60000, default 5000Origin connect timeout (ms)
idleTimeoutSecondsbodyintegerno1–86400; omitted: 600 for TCP, 30 for UDPIdle timeout of a connection (TCP) or session (UDP)
allowListIdsbodyarray<uuid>noAt most 16, deduplicated; default []Accept only addresses of these IP lists; empty accepts every address
blockListIdsbodyarray<uuid>noAt most 16, deduplicated; default []Refuse addresses of these IP lists
maxConnectionsbodyintegerno0–10000000, default 0Concurrent connections or sessions per node; 0 means no limit
newConnectionsPerSecondbodyintegerno0–1000000, default 0New connections or sessions per second and node; 0 means no limit

Response: { app, revision }: the L4 app and the published Revision. A new app's cnamePrefix is 8 random characters.

ErrorStatusCondition
CLUSTER_NOT_FOUND404The cluster does not exist
L4_APP_LIMIT409The cluster already has 256 apps; data.limit
L4_PROXY_PROTOCOL_UNSUPPORTED400A UDP app with acceptProxyProtocol or a non-zero proxyProtocolVersion
L4_TLS_UNSUPPORTED400A UDP app with certificateId
L4_PORT_RANGE_INVALID400portEnd is not above port, or the range holds more than data.max (1000) ports
L4_PORT_RESERVED400A port of the cluster's HTTP / HTTPS listeners; data.port
L4_PORT_OUTSIDE_POOL400A port outside the cluster's pools for the protocol; data.port is the first such port
L4_PORT_IN_USE409Another app of the cluster (disabled ones included) uses the port and protocol; data.apps
L4_PORT_LIMIT409The cluster's app ports would exceed data.limit (2048)
CERTIFICATE_NOT_FOUND404The certificate does not exist
L4_CERTIFICATE_UNAVAILABLE400The certificate is not issued yet or has expired
CERTIFICATE_CHAIN_EXPLICIT_CURVE400The certificate's EC public key does not name its curve; nodes cannot load it
CERTIFICATE_KEY_EXPLICIT_CURVE400The certificate's EC private key does not name its curve; nodes cannot load it
IP_LIST_NOT_FOUND404A list in allowListIds or blockListIds does not exist
ORIGIN_ADDRESS_FORBIDDEN400An origin is a special-purpose address not in the origin address allow list; data.address, data.range
L4_ORIGIN_PORT_REQUIRED400An origin without port while originPortMode is fixed

l4Apps.update

PATCH /l4-apps/{id} · write

Changes the fields given; the result is checked as in l4Apps.create. origins replaces the list; an origin with the address and port of an existing one keeps its ID (and with it the nodes' passive health state). Changing protocol does not change idleTimeoutSeconds. Changing originPortMode alone rewrites the saved origin ports for the new mode: to same they are saved as 0; from same to fixed without origins the request fails with L4_ORIGIN_PORT_REQUIRED.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—App ID
expectedUpdatedAtbodydatetimeno—Optimistic concurrency: the updatedAt last read
name, protocol, port, portEnd, originPortMode, certificateId, tlsMinimumVersion, acceptProxyProtocol, proxyProtocolVersion, origins, maxFails, failTimeoutSeconds, connectTimeoutMs, idleTimeoutSeconds, allowListIds, blockListIds, maxConnections, newConnectionsPerSecondbody—noAs in l4Apps.create, without defaults; unchanged when omittedAs in l4Apps.create

Response: { app, revision }.

ErrorStatusCondition
L4_APP_NOT_FOUND404The app does not exist
UPDATED_AT_MISMATCH409expectedUpdatedAt is not the current value; data.updatedAt
L4_PROXY_PROTOCOL_UNSUPPORTED and others—As in l4Apps.create (except CLUSTER_NOT_FOUND and L4_APP_LIMIT)

l4Apps.delete

DELETE /l4-apps/{id} · write

Deletes the app with its origins and statistics.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—App ID

Response: { revision }: the published Revision.

ErrorStatusCondition
L4_APP_NOT_FOUND404The app does not exist

l4Apps.setEnabled

PUT /l4-apps/{id}/enabled · write

A disabled app keeps its port and settings; it is not shipped to nodes and has no DNS record. When enabled equals the current state, nothing is published or audited, expectedUpdatedAt is not checked, and the latest revision is returned.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—App ID
enabledbodybooleanyes—Enabled
expectedUpdatedAtbodydatetimeno—Optimistic concurrency: the updatedAt last read

Response: { app, revision }.

ErrorStatusCondition
L4_APP_NOT_FOUND404The app does not exist
UPDATED_AT_MISMATCH409expectedUpdatedAt is not the current value; data.updatedAt

l4Apps.setCnamePrefix

PUT /l4-apps/{id}/cname-prefix · write

Sets the first label of the app's CNAME target; without prefix, a new random one. The replaced name keeps resolving for 24 hours when the cluster's automatic DNS had published it. A changed prefix publishes the cluster's DNS revision (reason cname). Rules: CNAME prefixes.

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—App ID
prefixbodystringnoAfter trimming and lowercasing 1–30 of [a-z0-9-], not starting or ending with -; unique across sites and apps (replaced prefixes still resolving included), not all, all-<n> or a record name of a DNS binding. A UUID is accepted only as the app's own prefix from before CNAME prefixes (its current one, or one replaced within 24 hours)New prefix

Response: { prefix, retired }. retired lists replaced prefixes still resolving, [{ prefix, expiresAt }].

ErrorStatusCondition
L4_APP_NOT_FOUND404The app does not exist
CNAME_PREFIX_INVALID400prefix is a UUID that is not the app's; data.prefix
CNAME_PREFIX_CONFLICT409The prefix is taken or reserved, or the zone of the automatic DNS holds a record at that name the cluster does not manage; data.prefix

l4Apps.stats

GET /l4-apps/{id}/stats · read

The range is [from, to). Per-minute counters are summed over nodes (a minute's peakConcurrent is the sum of the nodes' peaks).

ParameterInTypeRequiredConstraints and defaultDescription
idpathuuidyes—App ID
fromquerydatetimeyesBefore to; at most 7 daysStart
toquerydatetimeyes—End

Response:

FieldTypeDescription
appIduuidApp ID
from, todatetimeThe range
bucketSecondsintegerWidth of a point: 60 for ranges up to a day, 300 up to five days, else 3600
pointsarray<object>One { time, …counters } per bucket from the bucket of from, oldest first; empty buckets are zero
totalsobjectCounters over the range
nodesarray<object>Each node that reported, { nodeId, nodeName, …counters }, most connections first

Counters: connections (TCP connections or UDP sessions accepted), refused (refused by the IP lists or the limits), peakConcurrent (in points and totals the highest per-minute sum of peaks in the bucket or range, in nodes the node's own highest), bytesReceived (bytes from clients), bytesSent (bytes to clients).

ErrorStatusCondition
L4_APP_NOT_FOUND404The app does not exist

Objects

Cluster object

FieldTypeDescription
iduuidCluster ID
namestringName
descriptionstringDescription
nodeCountintegerNodes (disabled ones included)
onlineNodeCountintegerOnline nodes (disabled ones included)
liveNodeCountintegerOnline active nodes: what the configuration is delivered to now
appliedNodeCountintegerOf those, nodes running their target revision (with a canary running: stable or candidate)
siteCountintegerSites
latestRevisionobjectThe latest Revision, or null
clientIpModeenumClient address mode: direct / proxy_protocol / header; details in clusters.clientIp
cache.maxSizeGbintegerCache zone size on every node (GiB); a node may override it
cache.inactiveDaysintegerDays unrequested objects stay
createdAtdatetimeCreated

Revision object

FieldTypeDescription
clusterIduuidCluster ID
revisionintegerRevision number
contentHashstringContent hash
siteCountintegerSites in the revision
reasonstringEnglish reason text
reasonCodestringReason code; "" for revisions published before reason codes existed
reasonParamsobjectReason parameters, string or number values
createdAtdatetimePublished

Rollout object

FieldTypeDescription
clusterIduuidCluster ID
policyobjectPolicy: enabled, windowSeconds, autoPromote, errorRatioMultiplier, errorRatioFloor, minRequests, as in clusters.setRolloutPolicy
stateenumidle, canary, awaiting_promotion, promoted, rolled_back, direct; idle while the policy is off
stableRevisionintegerRevision of the non-canary nodes, or null
candidateRevisionintegerRevision of the canary nodes while a rollout runs, or null
lastCandidateRevisionintegerThe candidate promoted or rolled back last, or null
windowStartedAtdatetimeObservation window start, or null
windowEndsAtdatetimeObservation window end, or null
outcomeenum"", auto_promote, manual_promote, apply_failed, apply_timeout, unhealthy, error_ratio, manual_abort, no_canary, policy_disabled, manual_rollback, withdrawn
finishedAtdatetimeEnd of the last rollout, or null
canaryNodesarray<object>Active nodes of canary groups, and nodes of the running window that left them: { id, name, online, appliedRevision, participating }, participating meaning part of the running window
windowobjectTraffic of the running window { canaryRequests, canary5xx, baselineRequests, baseline5xx }, null without a running rollout
candidateChangesobjectWhile a rollout runs, { sites: { added, changed, removed }, reasons }: sites the candidate adds, changes and removes against the stable revision ([{ id, name }]), and the Revisions published after the stable one (without repeated reasons); otherwise null
policyUpdatedAtdatetimeLast policy change; expectedUpdatedAt of clusters.setRolloutPolicy compares with it
updatedAtdatetimeLast change of any kind (every rollout step)

Node group object

FieldTypeDescription
iduuidNode group ID
clusterIduuidCluster ID
namestringName
isDefaultbooleanThe cluster's default node group
isCanarybooleanCanary group: its nodes get candidate revisions first
regionIduuidRegion ID, or null
regionNamestringRegion name, or null
regionCodestringRegion code, or null
nodeCountintegerNodes
createdAtdatetimeCreated

Region object

FieldTypeDescription
iduuidRegion ID
namestringName
codestringCode
nodeGroupCountintegerNode groups using the region
createdAtdatetimeCreated

Node object

FieldTypeDescription
iduuidNode ID
namestringName
clusterIduuidCluster ID
clusterNamestringCluster name
nodeGroupIduuidNode group ID, or null
nodeGroupNamestringNode group name, or null
regionNamestringRegion name of the node group, or null
hostnamestringHost name
statusenumactive / disabled
decommissionRequestedAtdatetimeWhen a decommission waiting for the node was requested, or null
decommissionErrorstringWhy the last decommission failed (decommission_failed: …), or null
onlinebooleanOnline
lastSeenAtdatetimeLast heartbeat, or null
enrolledAtdatetimeEnrolled, or null
agentVersionstringAgent version
supportedFeaturesarray<string>Capabilities the node reports, see below
upgradeRequiredbooleanThe node lacks a capability the cluster's latest configuration requires, or lacks stats-sequence-v1
enginestringData-plane engine
engineVersionstringEngine version
osstringOperating system
archstringArchitecture
ipAddressesarray<string>Addresses the node reports, sorted (configured ones are in schedulingAddresses)
certFingerprintstringClient certificate fingerprint, or null
certNotAfterdatetimeClient certificate expiry, or null
appliedRevisionintegerApplied revision number; 0 without one
appliedContentHashstringContent hash of the applied revision; "" without one
targetRevisionintegerRevision the node should run (with a canary running: stable or candidate), or null
applyStateenumapplying / applied / failed, or null
applyMessagestringApply message
dataPlaneHealthybooleanData plane healthy
banStatusobjectDynamic ban state from the last heartbeat (nodes with bans-v1), else null
banStatus.appliedSequencestringHighest ban sequence applied to the data plane (decimal)
banStatus.entriesintegerBan entries
banStatus.capacityintegerBan capacity
banStatus.unappliedIdsarray<string>Manual bans the node could not hold (at most 100 IDs)
banStatus.unappliedintegerManual bans the node could not hold
banStatus.kernelEntriesintegerPlatform bans held by nftables (kernel-ban-v1)
banStatus.autoEvictedstringAutomatic bans dropped to make room since the agent started (decimal)
banStatus.reportedAtdatetimeReported
banStatus.connectionLimitsActivebooleanOptional; the cluster's connection limits are enforced in the kernel (conn-limit-v1)
banStatus.connectionLimitsErrorstringOptional; why they are not (the node's message)
probeEnabledbooleanAlso acts as a probe
metricsobjectHost metrics of the last heartbeat (metrics-v1), null until the node reports them
metrics.cpuPercentnumberCPU used by the whole host, 0–100
metrics.load1, metrics.load5, metrics.load15numberLoad
metrics.memoryUsedBytes, metrics.memoryTotalBytesnumberUsed and total memory (bytes)
metrics.egressBpsnumberBits per second sent on non-loopback interfaces
metrics.activeConnectionsnumberActive connections
metrics.reportedAtdatetimeReported
schedulingAddressesarray<object>Addresses DNS and probes use, { address, level, source, reachable }: source is configured (set by the operator, with a level) or reported (a public address the node reports while none is configured, level 0); reachable is false while the probes count it as down
schedulingLevelintegerAddress level DNS uses now (0 primary; higher while lower levels are unreachable)
remoteAddressstringSource address of the node's latest connection to the console (its public address behind NAT, or a proxy's), null before it connects
locationobjectThe current public address's { address, country, subdivision, latitude, longitude }, or null without data; node-provided city coordinates take precedence. Console offline IPinfo Lite country lookups add source: "ipinfo" with null coordinates. Locations for earlier addresses are discarded
dnsIssueenumno_public_address: the node reports no public address and none is configured, so DNS cannot answer with it; else null
authErrorstringWhy the node channel refused the node's own certificate since its last heartbeat (an OpenSSL verify code; CERT_HAS_EXPIRED means it must enroll again), else null
cache.maxSizeGbintegerThe node's own cache zone size (GiB), or null (the cluster's)
cache.usageobjectCache disk usage as last measured, { usedBytes, maxBytes, measuredAt }; null until a node with cache-zone-v1 reports it
certificateFailuresarray<object>Certificates of the applied revision the node could not load (certificate-isolation-v1): { certificateId, certificateName, reason, servingEarlier }; certificateName is "" when the certificate no longer exists; reason is invalid_material / fingerprint_mismatch / unavailable; servingEarlier true means the node serves the certificate's earlier material, else it refuses its handshakes
channelobjectThe node channel address the node uses, null until it connects with a console that records it
channel.urlstringAddress the node reports (channel-follow-v1), null for older agents
channel.serverNamestringServer name checked at that address
channel.fallbackUrlstringAddress before the last switch, tried while url fails, or null
channel.fallbackServerNamestringServer name of the fallback
channel.onFallbackbooleanRunning on the fallback because url failed
channel.sourceenumHow url was set: enroll / console / command (edgeweir-node set-server), or null
channel.switchedAtdatetimeSwitched, or null
channel.errorobjectLast failed address check { code, message, url, serverName, at }, code being unreachable, websocket_refused, tls_untrusted, rejected, wrong_identity or invalid_address and message the agent's; or null
channel.observedServerNamestringTLS server name of the latest connection; "" when it sent none (an IP address)
channel.observedWebSocketbooleanThe latest connection came through the WebSocket entry
channel.observedAtdatetimeLatest connection
clockobjectThe node's clock against the console's, { offsetMs, measuredAt, skewed }: positive offsetMs means the node is ahead; skewed means the offset reaches the alert policy's clockSkewSeconds; null for nodes before v1.5.0
locationobjectWhere the node's public address is, from the node's GeoIP databases, { address, country, subdivision, latitude, longitude }: country is ISO 3166-1 alpha-2, "" when unknown; coordinates need a City MMDB, else null; null for nodes before v1.6.2

Capabilities in supportedFeatures the console tells apart (every capability a feature requires: Node capabilities):

CapabilityMeaning
purge-tag-v1Purges by host and Cache-Tag; such tasks are refused while an active node of the cluster lacks it
prefetch-v2Prefetch device variants and sitemap tasks
probe-health-v1Health endpoint /.edgeweir/health on the edge listeners; probes use HTTP / HTTPS when every active node of the cluster has it
metrics-v1Host metrics in heartbeats (metrics)
rule-log-v1Per-minute matches of rules with the log action
stats-dims-v1Statistics dimensions
origin-stats-v1Per-minute fetches of each origin
l4-v1L4 apps and their statistics
l4-v2L4 port ranges, origins on the arriving port and TLS termination
cache-zone-v1A node's own cache zone size and cache usage in heartbeats
auth-identity-headers-v1Removes identity headers of disabled and former access authentication rules; never required
certificate-isolation-v1A certificate that cannot be loaded is left out and reported (certificateFailures); never required
encoded-path-exemptions-v1A site's encoded path exemptions; never required
channel-follow-v1Reports and follows the node channel address the console gives out (channel)
node-logs-v1Uploads node logs; never required
debug-logs-v1Debug log buffer and pulls; never required, nodes.pullDebugLogs is refused without it
geoip-city-v1, geoip-country-v1, geoip-subdivision-v1GeoIP country and subdivision data; for nodes without geoip-country-v1, geoip-city-v1 stands for subdivision data
edge-ports-v1, client-ip-v1, unknown-host-v1, conn-limit-v1Cluster network settings, see Cluster network settings
self-upgrade-v1Signed upgrades; required by upgrades.create
stats-sequence-v1Statistics reports with sequence numbers; without it upgradeRequired is always true
bans-v1, kernel-ban-v1Dynamic bans (banStatus) and platform bans in nftables

Node log entry object

FieldTypeDescription
idstringEntry ID
timedatetimeWhen it happened on the node
receivedAtdatetimeWhen the console received it
kindenumentry: an entry the node uploaded; dropped: how many entries the node dropped before a batch
levelenuminfo / warn / error
sourceenumagent / supervisor / nginx / lua
componentstringComponent
messagestringMessage, redacted
fieldsobjectFields (string → string), redacted
repeatedintegerIdentical entries the node folded into this one
truncatedbooleanTruncated
eventstringEvent of an info entry: agent_started, config_applied, last_known_good, engine_started, certificate_renewed, channel_switched, upgrade_applied, engine_logs_unavailable; "" otherwise
droppedobjectWith kind dropped, { rateLimited, overflow } (entries over the node's rate limits and for its buffers), else null

Debug log pull object

FieldTypeDescription
iduuidPull ID
nodeIduuidNode ID
stateenumpending / running / succeeded / failed
from, todatetimeTime filter of the pull, or null
componentsarray<string>Component filter; empty for none
sourcesarray<enum>Source filter; empty for none
createdAtdatetimeCreated
deadlineAtdatetimeWhen an unanswered pull fails
finishedAtdatetimeFinished, or null
errorCodestringdebug_logs_timeout, debug_logs_failed (errorParams.reason disabled / upload_failed), task_unsupported; "" on success
errorParamsobjectError parameters (string → string)
entryCountintegerEntries
truncatedbooleanOlder matching entries were left out for the upload limits (10000 entries, 4 MiB)
bufferSincedatetimeOldest entry the node still held (nothing older can be in the pull), or null
overwrittenintegerEntries the node's buffers overwrote for their capacity since they started
supervisorMissingbooleanThe supervisor's entries (and OpenResty's under it) could not be read
entriesarray<object>nodes.debugLog only: entries { time, level, source, component, message, fields, truncated, event }, oldest first; level is debug / info / warn / error; [] until the node uploads

Upgrade object

FieldTypeDescription
idstringUpgrade ID
clusterIdstringCluster ID
clusterNamestringCluster name
groupNamestringName of the node group upgraded first
versionstringTarget version
stateenumcanary, rollout, succeeded, failed, cancelled
createdAtstringCreated (ISO 8601)
canPromotebooleanState canary, rollout nodes waiting, and every canary node succeeded, runs the target version, is online, has a healthy data plane, applied its target configuration and stayed so for two heartbeat intervals
deliveriesarray<object>Per-node tasks, by phase, then node name
deliveries[].idstringDelivery ID
deliveries[].nodeIdstringNode ID
deliveries[].nodeNamestringNode name
deliveries[].phaseenumcanary / rollout
deliveries[].stateenumheld, pending, running, succeeded, failed, cancelled
deliveries[].messagestringMessage
deliveries[].errorCodestringError code, such as upgrade_cancelled, upgrade_expired, upgrade_node_removed (node disabled or deleted), or a code the node reported; "" without one
deliveries[].deadlineAtstringDeadline of pending and running deliveries (30 minutes after release), null in other states
deliveries[].finishedAtstringFinished, or null

L4 app object

FieldTypeDescription
iduuidApp ID
clusterIduuidCluster ID
clusterNamestringCluster name
namestringName
protocolenumtcp / udp
portintegerListening port (first port of a range)
enabledbooleanEnabled; a disabled app is not shipped to nodes and has no DNS record
acceptProxyProtocolbooleanThe listener expects a PROXY protocol header
proxyProtocolVersionintegerPROXY protocol version sent to the origins; 0 sends none
portEndintegerLast port of the range, null for a single port
originPortModeenumfixed / same
certificateIduuidCertificate for TLS termination, or null
certificateNamestringCertificate name, null without TLS
tlsMinimumVersionenum1.2 / 1.3
originsarray<object>Origins { id, address, port, weight, backup }, in the order saved; port is 0 with originPortMode same
maxFailsintegerConsecutive failures of the passive health check
failTimeoutSecondsintegerRetry seconds of the passive health check
connectTimeoutMsintegerOrigin connect timeout (ms)
idleTimeoutSecondsintegerIdle timeout (seconds)
allowListIdsarray<uuid>Allow lists
blockListIdsarray<uuid>Block lists
maxConnectionsintegerConcurrency limit per node; 0 means none
newConnectionsPerSecondintegerNew connections per second limit per node; 0 means none
cnamePrefixstringFirst label of the CNAME target (random for new apps, the ID for older ones)
dnsTargetstringThe CNAME clients connect to, <cnamePrefix>.<cluster DNS domain> (published while the app is enabled); null while the cluster's DNS is off
dnsLinesarray<object>Per DNS line { name, target }: <line>.<cnamePrefix>.<domain> with line aliases, else <line>.<domain>
dnsRetiredarray<object>Replaced names that keep resolving until expiresAt, { name, expiresAt } (with a DNS binding)
createdAtdatetimeCreated
updatedAtdatetimeUpdated

Exact NIC traffic limits

PUT /nodes/{id}/traffic-limit accepts { bytesLimit: "1500000000000", interfaces: ["eth0"], reset: false }. bytesLimit: null removes the limit; an empty interface list counts every non-loopback interface. Saving requires fresh metrics.network from a node with network-counters-v1; changing the interface list requires reset: true. The response is the node DTO with trafficLimit (nullable): bytesLimit, interfaces, bytesReceived, bytesSent, startedAt, measuredAt, reachedAt. Internal baselines are not exposed. All byte values are decimal integer strings.

The policy uses actual RX+TX counter deltas, persists across agent/Core restarts and disables scheduling once a heartbeat reaches the limit. Raising the limit or resetting usage does not implicitly enable a disabled node. The read-write API permission and audit requirements match other node mutations; no vendor license is involved. Disabled quota nodes may continue reporting accounting and statistics, but cannot obtain configurations or tasks. DNS TTLs and existing connections retain their usual behavior; this is scheduling removal, not an instantaneous NIC firewall cap.

metrics.network contains bootId, sampledAt and interfaces: [{ name, bytesReceived, bytesSent }]. Missing counter reads are omitted. Select uplink interfaces explicitly on hosts with bridges, tunnels or container interfaces to avoid counting the same packet at several interface layers.

Edit on GitHub

On this page