Skip to Content
Xeonr Developer Docs

Announce tuner

POST
/xmb.api.v1.TunerAgentService/AnnounceTuner

Reports the tuner's key, storage and capabilities and returns its tunnel configuration. Authenticated by the tuner token.

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

tunerToken?string
Length20 <= length <= 128
wgPublicKey?string
Length44 <= length <= 44
agentVersion?string
Lengthlength <= 64
wgListenPort?integer
Formatint32
Range0 <= value <= 65535
internalAddresses?array<>
Itemsitems <= 32
externalAddresses?array<>
Itemsitems <= 32
advertisedEndpoints?array<>
Itemsitems <= 8
peerLinks?array<>
Itemsitems <= 128
resources?

What a hub can see of the machine it runs on.

Every value here is self-reported and therefore only as trustworthy as the hub: it is diagnostic for the owner, not an input to any platform decision.

Shared verbatim by the grabber's announce — the machine underneath is the same kind of machine, and two vocabularies for one meaning would drift.

storage?

The tuner's disk: the live stores (30 min per lease, more while pinned) and the recording cache share one budget.

bootId?string
Lengthlength <= 64
accel?string

"vaapi", "nvenc", "videotoolbox", or empty.

Lengthlength <= 32
liveSlots?integer

Live encode slots this node offers.

Formatint32
localCsrPem?string

A LAN certificate request, as AnnounceHubRequest carries.

Lengthlength <= 8192
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.TunerAgentService/AnnounceTuner" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "uuid": "7c9e2f14-6a3b-4d58-b0e1-3f2a8c5d9e61",
  "tunnelCidr": "10.100.4.8/29",
  "primaryIp": "10.100.4.9",
  "gateways": [
    "map[endpoint:gw-lon1.xmbsrv.com:51820 tunnelIp:10.100.0.1 wgPublicKey:dHVuZXIgZ2F0ZXdheSBrZXksIG5vdCByZWFsIDAwMDE=]"
  ],
  "jwksUrl": "https://xmb.gg/api/v1/media/jwks.json",
  "nodePeers": [
    "map[candidates:[map[endpoint:192.168.1.20:51820 kind:PEER_CANDIDATE_KIND_LAN] map[endpoint:203.0.113.24:51820 kind:PEER_CANDIDATE_KIND_REFLEXIVE]] tunnelCidr:10.100.0.16/29 uuid:5f0c2a7e-3b1d-4c8e-9a6f-2d4b7e1c9a30 wgPublicKey:bG9mdCBuYXMgaHViIGtleSwgbm90IGEgcmVhbCBvbmU=]"
  ],
  "settings": "map[TUNER_LOG_LEVEL:debug TUNER_WG_MTU:1280]",
  "serverSlug": "the-loft",
  "telemetry": "map[expiresIn:86400s token:eyJhbGciOiJFZERTQSJ9.eyJzdWIiOiJ0dW5lciJ9.c2lnbmF0dXJl url:https://in.lntrn.dev]",
  "sourcesVersion": "9f2c4e6a8b0d1e3f",
  "scheduleVersion": "4b6d8f0a2c4e6a8b",
  "localWildcard": "*.m7q2w8zd.xmbsrv.com",
  "localChainPem": "-----BEGIN CERTIFICATE-----\nMIIBEXAMPLE...\n-----END CERTIFICATE-----\n",
  "controlAuth": "map[audiences:[https://xmb.gg urn:xeonr:auth:application:08fc3508-988f-4074-ae5d-b7fd72c38e0b] enforce:true issuer:https://auth.xeonr.io scopes:[xmb:nodes:admin] subjects:[urn:xeonr:auth:uid:service_account:14]]"
}