Skip to Content
Xeonr Developer Docs
API Specificationxmb.api.v1.RoutingService

Get routing table

POST
/xmb.api.v1.RoutingService/GetRoutingTable

Returns the hub routing table for gateway reconciliation. Service-to-service only.

Required scopes: xmb:internal:routing

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

knownVersion?string

The version from the caller's last successful fetch. Zero fetches unconditionally. int64.gte = 0

Formatint64
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.RoutingService/GetRoutingTable" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "version": "1843",
  "notModified": "false",
  "entries": [
    "map[allowedIps:10.100.0.24/29 hubUuid:c7e2a4b1-5d93-4f60-8e1a-2b9c6d3f7a05 kind:ROUTING_NODE_KIND_HUB primaryIp:10.100.0.24 wgPublicKey:mF2n8Qe5Yx1vR7kT4pL9sW3cA6dH0jB2uN5gZ8yK1E=]",
    "map[allowedIps:10.100.0.32/29 hubUuid:4e9b1c7a-8d25-4f3e-b6a0-1c8f2d5e9b73 kind:ROUTING_NODE_KIND_GRABBER primaryIp:10.100.0.32 wgPublicKey:Zp4qT8wB2nX6vK0mR5yL1cF9hJ3sD7aE4uG8iN2oW0Q=]"
  ]
}