Dominevo
ReferenceHTTP API

deviceMesh

The deviceMesh router: 4 methods of the device-mesh capability, with tier, scope, input and output.

Capability device-mesh · scope device · mode singleton · source packages/types/src/capabilities/device-mesh.cap.ts:208.

Every method is called at /trpc/deviceMesh.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.

MethodKindTierToken scopeViewer
getTopologyqueryadminadmin onlyno
getNodeDiagnosticsqueryadminadmin onlyno
readNowmutationadminadmin onlyno
refreshmutationadminadmin onlyno

deviceMesh.getTopology

  • Kind: query — GET /trpc/deviceMesh.getTopology
  • 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=deviceMesh.getTopology on your hub

Input

{ deviceId: number }

Output

MeshTopologySchema

Shapes: MeshTopologySchema

deviceMesh.getNodeDiagnostics

  • Kind: query — GET /trpc/deviceMesh.getNodeDiagnostics
  • 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=deviceMesh.getNodeDiagnostics on your hub

Input

{ deviceId: number }

Output

MeshNodeDiagnosticsSchema

Shapes: MeshNodeDiagnosticsSchema

deviceMesh.readNow

  • Kind: mutation — POST /trpc/deviceMesh.readNow
  • 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=deviceMesh.readNow on your hub

Input

{ deviceId: number }

Output

{ readOk: boolean; error: string | null; diagnostics: MeshNodeDiagnosticsSchema }

Shapes: MeshNodeDiagnosticsSchema

deviceMesh.refresh

  • Kind: mutation — POST /trpc/deviceMesh.refresh
  • 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=deviceMesh.refresh on your hub

Input

{ deviceId: number }

Output

{ readNodes: number; failedNodes: number; skippedNodes: number }