xmb.api.v1.HubService
HubService manages media hubs on behalf of their owners.
postGet hub
Returns a single media hub owned by the authenticated caller, within the given server. **Required scopes:** `xmb:admin`
postGet hub release channel
Returns the version the hub release channel currently publishes — what a self-updating hub converges on. **Required scopes:** `xmb:admin`
postGet hub settings
Returns this hub's configuration overrides and the keys that may be set. **Required scopes:** `xmb:admin`
postGet hub token
Returns the hub's token for placing in the hub binary's configuration. **Required scopes:** `xmb:admin`
postList hubs
Returns the authenticated caller's media hubs within the given server. **Required scopes:** `xmb:admin`
postList shared hubs
Returns the hubs other servers have shared with this one, in the reduced shape a sharing server may see. **Required scopes:** `xmb:admin`
postMeasure hub tunnel
Asks the hub to write synthetic bytes at a discard listener — its own (stack-only) or a peer's (through the real path) — and report the rate. Runs for a few seconds and answers synchronously. **Required scopes:** `xmb:admin`
postRegister hub
Registers a new media hub under the given server and allocates its tunnel block. **Required scopes:** `xmb:admin`
postRestart hub
Asks the running hub to re-exec into its current binary, which is how configuration changes take effect. The hub drops off the tunnel for a few seconds. **Required scopes:** `xmb:admin`
postRotate hub token
Replaces the hub's token. The previous token stops authenticating immediately. **Required scopes:** `xmb:admin`
postSet accepted grabbers
Replaces the set of grabbers this hub will accept files from.
postSet hub settings
Replaces this hub's configuration overrides. Keys outside the settable list are refused rather than silently dropped. **Required scopes:** `xmb:admin`
postShare hub
Grants another server the use of this hub — streaming, library paths and its own grabber pairings. The caller must administer both servers. Machine-level administration stays with the home server. **Required scopes:** `xmb:admin`
postTrigger hub self-update
Asks the running hub to check its release channel now and swap itself for the published binary. Synchronous up to the swap: failures come back in the response, and an UPDATING outcome is followed by the hub restarting into the new version. **Required scopes:** `xmb:admin`
postUnshare hub
Withdraws a server's use of a shared hub, removing its library paths, filings and grabber pairings on it. The home server unshares from a tenant; a tenant detaches itself. **Required scopes:** `xmb:admin`