Report peer status
Reports the gateway's observed WireGuard handshake state per hub. Service-to-service only.
Required scopes: xmb:internal:routing
Authorization
BearerAuth An access token issued by the xeonr identity provider.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
One entry per installed peer. Hubs absent from this shard's peer set are simply not mentioned; this is an observation, not desired state.
items <= 5000The zone this shard answers hub hostnames on — {hub-uuid}.{stream_domain}.
Reported rather than configured on both sides, because the gateway is the one that knows: it is the thing parsing the Host header, and a second copy in the API's environment is a second copy to get wrong. The API needs it to build the URLs it hands players, and until some shard has said so it cannot — which is a failed precondition with a sentence naming the fix, rather than a URL pointing somewhere that does not answer.
Every shard reports the same value; they share one public zone. An API-side override exists for the deployment where that stops being true.
length <= 253Stable identity of the reporting shard, so per-peer byte counters from different shards form separate series the platform can splice and then sum. The shard's hostname in practice; what matters is that it stays put across polls and differs between shards. Empty from a gateway too old to send counters, which also sends none.
length <= 64This process lifetime's identity — the counter-reset boundary for the byte counters above, exactly as a node's boot_id is for its announce.
length <= 64Response Body
application/json
application/json
curl -X POST "https://xmb.gg/xmb.api.v1.RoutingService/ReportPeerStatus" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{}