Dominevo
ReferenceHTTP API

storageMigration

The storageMigration router: 12 methods of the storage-migration capability, with tier, scope, input and output.

Capability storage-migration · scope system · mode singleton · source packages/types/src/capabilities/storage-migration.cap.ts:21.

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

MethodKindTierToken scopeViewer
planqueryadminadmin onlyno
startmutationadminadmin onlyno
statusqueryadminadmin onlyno
cancelmutationadminadmin onlyno
moversqueryadminadmin onlyno
moverClearancequeryadminadmin onlyno
residuequeryadminadmin onlyno
drainmutationadminadmin onlyno
cleanupStartmutationadminadmin onlyno
cleanupStatusqueryadminadmin onlyno
cleanupCancelmutationadminadmin onlyno
historyqueryadminadmin onlyno

storageMigration.plan

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

Input

{ destinations: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; sources?: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; throttleMbps?: number; mode?: "blocking" | "nonBlocking" }

Output

{ destinations: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; sources?: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; mode: "blocking" | "nonBlocking"; moves: ({ storageClass: "recordings" | "recordingsLow" | "eventMedia" | "backups" | "galleryMedia"; fromLocationId: string; toLocationId: string; freezeSource?: boolean })[]; findings: ({ code: "sharesDeviceWithSource" | "deviceIdentityUnknown" | "unstampedEventMediaRows" | "blockingOnly" | "noMover"; storageClass: "recordings" | "recordingsLow" | "eventMedia" | "backups" | "galleryMedia"; message: string })[] }

storageMigration.start

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

Input

{ destinations: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; sources?: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; throttleMbps?: number; mode?: "blocking" | "nonBlocking" }

Output

{ jobId: string }

storageMigration.status

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

Input

{ jobId?: string }

Output

{ jobId: string; phase: "planning" | "sealing" | "pausing" | "moving" | "draining" | "verifying" | "repointing" | "refreshing" | "resuming" | "done" | "failed" | "cancelled"; mode: "blocking" | "nonBlocking"; destinations: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; sources?: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; throttleMbps: number; moves: ({ storageClass: "recordings" | "recordingsLow" | "eventMedia" | "backups" | "galleryMedia"; fromLocationId: string; toLocationId: string; freezeSource?: boolean; moverJobId: string | null; state: "queued" | "running" | "done" | "failed" | "cancelled" | null; error: string | null; progress: { filesMoved: number; filesTotal: number | null; bytesMoved: number; rowsReconciled?: number; startedAt: number; observedAt: number } | null })[]; pauseLeaseId: string | null; pausedParticipants: ("pipeline" | "recorder" | "analytics")[]; repointed: boolean; cancelRequested: boolean; startedAt: number; updatedAt: number; finishedAt: number | null; error: string | null } | null

storageMigration.cancel

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

Input

{ jobId: string }

Output

{ cancelled: boolean }

storageMigration.movers

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

Input

{}

Output

({ lane: "footage" | "media"; job: { jobId: string; state: "queued" | "running" | "done" | "failed" | "cancelled"; fromLocationId: string; toLocationId: string; deviceId: number | null; entities: string[]; filesMoved: number; bytesMoved: number; filesTotal: number | null; rowsReconciled?: number; rowsForgotten?: number; startedAt: number; finishedAt: number | null; error: string | null }; migrationJobId: string | null; observedAt: number })[]

storageMigration.moverClearance

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

Input

{ locationIds: string[] }

Output

{ clear: boolean; repointLocationId?: string }

storageMigration.residue

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

Input

{}

Output

({ storageClass: "recordings" | "recordingsLow" | "eventMedia" | "backups" | "galleryMedia"; fromLocationId: string; toLocationId: string; items: number | null; bytes: number | null })[]

storageMigration.drain

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

Input

{ classes: ("recordings" | "recordingsLow" | "eventMedia" | "backups" | "galleryMedia")[]; throttleMbps?: number }

Output

{ jobId: string }

storageMigration.cleanupStart

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

Input

{ includeDebugMedia?: boolean }

Output

{ jobId: string }

storageMigration.cleanupStatus

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

Input

{ jobId?: string }

Output

{ jobId: string; phase: "orphans" | "debug-media" | "ghost-ledger" | "done" | "failed" | "cancelled"; includeDebugMedia: boolean; orphansReclaimed: number; orphanBytesReclaimed: number; debugMediaReclaimed: number; debugMediaBytesReclaimed: number; ghostsForgotten: number; ghostBytesForgotten: number; detail: string | null; cancelRequested: boolean; startedAt: number; updatedAt: number; finishedAt: number | null; error: string | null } | null

storageMigration.cleanupCancel

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

Input

{ jobId: string }

Output

{ cancelled: boolean }

storageMigration.history

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

Input

{}

Output

({ jobId: string; phase: "planning" | "sealing" | "pausing" | "moving" | "draining" | "verifying" | "repointing" | "refreshing" | "resuming" | "done" | "failed" | "cancelled"; mode: "blocking" | "nonBlocking"; destinations: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; sources?: { recordings?: string; recordingsLow?: string; eventMedia?: string; backups?: string; galleryMedia?: string }; throttleMbps: number; moves: ({ storageClass: "recordings" | "recordingsLow" | "eventMedia" | "backups" | "galleryMedia"; fromLocationId: string; toLocationId: string; freezeSource?: boolean; moverJobId: string | null; state: "queued" | "running" | "done" | "failed" | "cancelled" | null; error: string | null; progress: { filesMoved: number; filesTotal: number | null; bytesMoved: number; rowsReconciled?: number; startedAt: number; observedAt: number } | null })[]; pauseLeaseId: string | null; pausedParticipants: ("pipeline" | "recorder" | "analytics")[]; repointed: boolean; cancelRequested: boolean; startedAt: number; updatedAt: number; finishedAt: number | null; error: string | null })[]