ReferenceHTTP API
mqttBroker
The mqttBroker router: 7 methods of the mqtt-broker capability, with tier, scope, input and output.
Capability mqtt-broker · scope system · mode collection · source packages/types/src/capabilities/mqtt-broker.cap.ts:120.
Every method is called at /trpc/mqttBroker.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | no |
listBrokers | query | protected | view | no |
getBrokerConfig | query | admin | admin only | no |
addBroker | mutation | admin | admin only | no |
removeBroker | mutation | admin | admin only | no |
startEmbeddedBroker | mutation | admin | admin only | no |
stopEmbeddedBroker | mutation | admin | admin only | no |
mqttBroker.getStatus
- Kind: query —
GET /trpc/mqttBroker.getStatus - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitymqtt-broker, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=mqttBroker.getStatuson your hub
Input
voidOutput
MqttBrokerStatusSchemaShapes: MqttBrokerStatusSchema
mqttBroker.listBrokers
- Kind: query —
GET /trpc/mqttBroker.listBrokers - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitymqtt-broker, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=mqttBroker.listBrokerson your hub
Input
voidOutput
MqttBrokerInfoSchema[]Shapes: MqttBrokerInfoSchema
mqttBroker.getBrokerConfig
- Kind: query —
GET /trpc/mqttBroker.getBrokerConfig - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=mqttBroker.getBrokerConfigon your hub
Input
{ id: string }Output
BrokerConnectionDetailsSchemaShapes: BrokerConnectionDetailsSchema
mqttBroker.addBroker
- Kind: mutation —
POST /trpc/mqttBroker.addBroker - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=mqttBroker.addBrokeron your hub
Input
AddBrokerInputSchemaOutput
{ id: string }Shapes: AddBrokerInputSchema
mqttBroker.removeBroker
- Kind: mutation —
POST /trpc/mqttBroker.removeBroker - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=mqttBroker.removeBrokeron your hub
Input
{ id: string }Output
voidmqttBroker.startEmbeddedBroker
- Kind: mutation —
POST /trpc/mqttBroker.startEmbeddedBroker - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=mqttBroker.startEmbeddedBrokeron your hub
Input
StartEmbeddedInputSchemaOutput
{ id: string; url: string }Shapes: StartEmbeddedInputSchema
mqttBroker.stopEmbeddedBroker
- Kind: mutation —
POST /trpc/mqttBroker.stopEmbeddedBroker - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=mqttBroker.stopEmbeddedBrokeron your hub
Input
{ id: string }Output
void