ReferenceHTTP API
clusterNodes
The clusterNodes router: 2 hand-written core methods, with tier, input and output.
A core router of the hub (not a capability), source server/backend/src/api/core/cluster-nodes.router.ts. Its methods are called at /trpc/clusterNodes.<method>. A core method checks only the tier: a scoped token that is signed in reaches every protected method here, unless the method itself refuses it. See How to call and Authorization.
Inputs and outputs are the validation schemas as written in the source.
| Method | Kind | Tier |
|---|---|---|
repairNodeAddons | mutation | admin |
forgetNode | mutation | admin |
clusterNodes.repairNodeAddons
- Kind: mutation —
POST /trpc/clusterNodes.repairNodeAddons - Tier: admin — an administrator only
- Source:
server/backend/src/api/core/cluster-nodes.router.ts:66 - Try it: open
/system/api-explorer?method=clusterNodes.repairNodeAddonson your hub
Input
RepairNodeAddonsInputSchema = z.object({ nodeId: z.string().min(1) })Output
z.object({ success: z.boolean() })clusterNodes.forgetNode
- Kind: mutation —
POST /trpc/clusterNodes.forgetNode - Tier: admin — an administrator only
- Source:
server/backend/src/api/core/cluster-nodes.router.ts:76 - Try it: open
/system/api-explorer?method=clusterNodes.forgetNodeon your hub
Input
ForgetNodeInputSchema = z.object({ nodeId: z.string().min(1) })Output
ForgetNodeResultSchema = z.object({ forgotten: z.boolean(), historyRemoved: z.boolean(), registryRemoved: z.boolean(), stillListed: z.boolean(), certificates: z.discriminatedUnion('outcome', [ z.object({ outcome: z.literal('not-attempted') }), z.object({ outcome: z.literal('revoked'), serials: z.array(z.string()) }), z.object({ outcome: z.literal('registry-unavailable') }), z.object({ outcome: z.literal('failed'), error: z.string() }) ]), message: z.string() })