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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
start | mutation | protected | create | no |
stop | mutation | protected | create | no |
getEndpoint | query | protected | view | no |
getStatus | query | protected | view | no |
listEndpoints | query | protected | view | no |
networkAccess.start
- Kind: mutation —
POST /trpc/networkAccess.start - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynetwork-access, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=networkAccess.starton your hub
Input
voidOutput
NetworkEndpointSchemaShapes: NetworkEndpointSchema
networkAccess.stop
- Kind: mutation —
POST /trpc/networkAccess.stop - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilitynetwork-access, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=networkAccess.stopon your hub
Input
voidOutput
voidnetworkAccess.getEndpoint
- Kind: query —
GET /trpc/networkAccess.getEndpoint - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitynetwork-access, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=networkAccess.getEndpointon your hub
Input
voidOutput
NetworkEndpointSchema | nullShapes: NetworkEndpointSchema
networkAccess.getStatus
- Kind: query —
GET /trpc/networkAccess.getStatus - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitynetwork-access, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=networkAccess.getStatuson your hub
Input
voidOutput
NetworkAccessStatusSchemaShapes: NetworkAccessStatusSchema
networkAccess.listEndpoints
- Kind: query —
GET /trpc/networkAccess.listEndpoints - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitynetwork-access, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=networkAccess.listEndpointson your hub
Input
voidOutput
({ url: string; hostname: string; port: number; protocol: "http" | "https"; stable?: boolean; id: string; label: string; mode?: string; sourcePort?: number })[]