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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
topology | query | admin | admin only | no |
directory | query | admin | admin only | no |
deployAddon | mutation | admin | admin only | no |
undeployAddon | mutation | admin | admin only | no |
restartAddon | mutation | admin | admin only | no |
restartProcess | mutation | admin | admin only | no |
restartNode | mutation | admin | admin only | no |
shutdownNode | mutation | admin | admin only | no |
renameNode | mutation | admin | admin only | no |
clusterAddonStatus | query | admin | admin only | no |
getCapUsageGraph | query | admin | admin only | no |
getNodeAddons | query | admin | admin only | no |
setProcessLogLevel | mutation | admin | admin only | no |
executeQuery | mutation | admin | admin only | no |
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.topologyon your hub
Input
voidOutput
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.directoryon your hub
Input
voidOutput
NodeDirectorySchemaShapes: 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.deployAddonon 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.undeployAddonon 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.restartAddonon 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.restartProcesson 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.restartNodeon 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.shutdownNodeon 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.renameNodeon 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.clusterAddonStatuson your hub
Input
voidOutput
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.getCapUsageGraphon 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.getNodeAddonson 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.setProcessLogLevelon 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.executeQueryon your hub
Input
{ nodeId: string; addonId: string; queryName: string; params?: Record<string, unknown> }Output
unknown