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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
plan | query | admin | admin only | no |
start | mutation | admin | admin only | no |
status | query | admin | admin only | no |
cancel | mutation | admin | admin only | no |
movers | query | admin | admin only | no |
moverClearance | query | admin | admin only | no |
residue | query | admin | admin only | no |
drain | mutation | admin | admin only | no |
cleanupStart | mutation | admin | admin only | no |
cleanupStatus | query | admin | admin only | no |
cleanupCancel | mutation | admin | admin only | no |
history | query | admin | admin only | no |
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.planon 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.starton 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.statuson 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 } | nullstorageMigration.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.cancelon 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.moverson 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.moverClearanceon 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.residueon 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.drainon 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.cleanupStarton 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.cleanupStatuson 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 } | nullstorageMigration.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.cleanupCancelon 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.historyon 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 })[]