Dominevo
ReferenceHTTP API

storageEvictable

The storageEvictable router: 2 methods of the storage-evictable capability, with tier, scope, input and output.

Capability storage-evictable · scope system · mode collection · source packages/types/src/capabilities/storage-evictable.cap.ts:34.

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

MethodKindTierToken scopeViewer
getEvictableUsagequeryadminadmin onlyno
evictmutationadminadmin onlyno

storageEvictable.getEvictableUsage

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

Input

{ locationId: string }

Output

{ bytes: number }

storageEvictable.evict

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

Input

{ locationId: string; targetBytes: number }

Output

{ reclaimedBytes: number; exhausted: boolean }