Dominevo
ReferenceHTTP API

nodes

The nodes router: 14 methods of the nodes capability, with tier, scope, input and output.

Capability nodes · scope system · mode singleton · source packages/types/src/capabilities/nodes.cap.ts:220.

Every method is called at /trpc/nodes.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
topologyqueryadminadmin onlyno
directoryqueryadminadmin onlyno
deployAddonmutationadminadmin onlyno
undeployAddonmutationadminadmin onlyno
restartAddonmutationadminadmin onlyno
restartProcessmutationadminadmin onlyno
restartNodemutationadminadmin onlyno
shutdownNodemutationadminadmin onlyno
renameNodemutationadminadmin onlyno
clusterAddonStatusqueryadminadmin onlyno
getCapUsageGraphqueryadminadmin onlyno
getNodeAddonsqueryadminadmin onlyno
setProcessLogLevelmutationadminadmin onlyno
executeQuerymutationadminadmin onlyno

nodes.topology

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

Input

void

Output

TopologyNodeSchema[]

Shapes: TopologyNodeSchema

nodes.directory

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

Input

void

Output

NodeDirectorySchema

Shapes: NodeDirectorySchema

nodes.deployAddon

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

Input

{ nodeId: string; addonId: string }

Output

{ success: boolean }

nodes.undeployAddon

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

Input

{ nodeId: string; addonId: string }

Output

{ success: boolean }

nodes.restartAddon

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

Input

{ nodeId: string; addonId: string }

Output

{ success: boolean }

nodes.restartProcess

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

Input

{ nodeId: string; processName: string }

Output

{ success: boolean; reason?: string }

nodes.restartNode

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

Input

{ nodeId: string }

Output

{ restarted: string[]; failed: string[] }

nodes.shutdownNode

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

Input

{ nodeId: string }

Output

{ success: boolean }

nodes.renameNode

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

Input

{ nodeId: string; name: string }

Output

{ nodeId: string; name: string }

nodes.clusterAddonStatus

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

Input

void

Output

Record<string, ClusterAddonStatusEntrySchema>

Shapes: ClusterAddonStatusEntrySchema

nodes.getCapUsageGraph

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

Input

{ windowSeconds?: number = 60 }

Output

({ callerAddonId: string; providerAddonId: string; capName: string; callsPerMin: number; lastCallAtMs: number })[]

nodes.getNodeAddons

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

Input

{ nodeId: string }

Output

({ id: string; status: string; version?: string; packageName?: string })[]

nodes.setProcessLogLevel

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

Input

{ nodeId: string; level: string }

Output

{ success: boolean }

nodes.executeQuery

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

Input

{ nodeId: string; addonId: string; queryName: string; params?: Record<string, unknown> }

Output

unknown