Dominevo
ReferenceHTTP API

databaseSnapshot

The databaseSnapshot router: 2 methods of the database-snapshot capability, with tier, scope, input and output.

Capability database-snapshot · scope system · mode singleton · source packages/types/src/capabilities/database-snapshot.cap.ts:126.

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

MethodKindTierToken scopeViewer
listDatabasesqueryadminadmin onlyno
writeSnapshotmutationadminadmin onlyno

databaseSnapshot.listDatabases

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

Input

{}

Output

DatabaseSnapshotTargetsSchema

Shapes: DatabaseSnapshotTargetsSchema

databaseSnapshot.writeSnapshot

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

Input

DatabaseSnapshotRequestSchema

Output

DatabaseSnapshotWrittenSchema

Shapes: DatabaseSnapshotRequestSchema · DatabaseSnapshotWrittenSchema