Nodes

`PUT /internal/nodes/{node_id}/network/wireguard`

Called by the node's own agent. Stores its mesh public key and endpoint, assigns a mesh address on first call, makes that address the node's overlay underlay, and allocates the node's compute CIDR if the join could not (a node that registered with a public address has no private underlay until now).

put/internal/nodes/{node_id}/network/wireguard

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/internal/nodes/{node_id}/network/wireguard
  • Auth: none declared

Path parameters

node_idinteger required

Node id, must match the bearer token's node

Request body

endpointstring required

ip:port other nodes dial to reach this node's WireGuard socket.

public_keystring required

Base64 WireGuard public key. The private key never leaves the node.

Response

Mesh address and port for this node

addressstring required

Mesh address assigned to this node; also its overlay underlay.

listen_portinteger required
prefix_leninteger required

Changes