Dominevo
ReferenceHTTP API

networkAccess

The networkAccess router: 5 methods of the network-access capability, with tier, scope, input and output.

Capability network-access · scope system · mode collection · source packages/types/src/capabilities/network-access.cap.ts:63.

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

MethodKindTierToken scopeViewer
startmutationprotectedcreateno
stopmutationprotectedcreateno
getEndpointqueryprotectedviewno
getStatusqueryprotectedviewno
listEndpointsqueryprotectedviewno

networkAccess.start

  • Kind: mutation — POST /trpc/networkAccess.start
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability network-access, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=networkAccess.start on your hub

Input

void

Output

NetworkEndpointSchema

Shapes: NetworkEndpointSchema

networkAccess.stop

  • Kind: mutation — POST /trpc/networkAccess.stop
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability network-access, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=networkAccess.stop on your hub

Input

void

Output

void

networkAccess.getEndpoint

  • Kind: query — GET /trpc/networkAccess.getEndpoint
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability network-access, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=networkAccess.getEndpoint on your hub

Input

void

Output

NetworkEndpointSchema | null

Shapes: NetworkEndpointSchema

networkAccess.getStatus

  • Kind: query — GET /trpc/networkAccess.getStatus
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability network-access, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=networkAccess.getStatus on your hub

Input

void

Output

NetworkAccessStatusSchema

Shapes: NetworkAccessStatusSchema

networkAccess.listEndpoints

  • Kind: query — GET /trpc/networkAccess.listEndpoints
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability network-access, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=networkAccess.listEndpoints on your hub

Input

void

Output

({ url: string; hostname: string; port: number; protocol: "http" | "https"; stable?: boolean; id: string; label: string; mode?: string; sourcePort?: number })[]