Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

MigrationService

platform.v1.MigrationService

MigrationService is operator-only. Mutations return an Operation.

  • Request: MigrateInstanceRequest
  • Response: Operation
  • REST mapping: POST /v1/admin/migrations/instance/{id}
  • Request: MigrateVolumeRequest
  • Response: Operation
  • REST mapping: POST /v1/admin/migrations/volume/{id}
  • Request: MigrateImageRequest
  • Response: Operation
  • REST mapping: POST /v1/admin/migrations/image/{id}
  • Request: MigrateSnapshotRequest
  • Response: Operation
  • REST mapping: POST /v1/admin/migrations/snapshot/{id}
  • Request: DrainProviderRequest
  • Response: Operation
  • REST mapping: POST /v1/admin/migrations:drain
  • Request: GetMigrationRequest
  • Response: Migration
  • REST mapping: GET /v1/admin/migrations/{id}
  • Request: ListMigrationsRequest
  • Response: ListMigrationsResponse
  • REST mapping: GET /v1/admin/migrations
FieldType#Notes
providerstring1
dest_providerstring2optional; empty = platform picks a destination
decommissionbool3delete source resources after successful moves
FieldType#Notes
idstring1
FieldType#Notes
providerstring1optional filter (source or dest)
statestring2optional filter
FieldType#Notes
migrationsMigration1
FieldType#Notes
idstring1
dest_providerstring2
FieldType#Notes
idstring1source instance platform id
dest_providerstring2
FieldType#Notes
idstring1
dest_providerstring2
FieldType#Notes
idstring1
dest_providerstring2

--- Cross-provider migration (admin/internal, Phase 5) --- This service is operator-only (admin.migration.*) and is NOT wired into the end-user web app. Users have no concept of providers, so which provider a resource lives on — and when it moves — are platform decisions. Migration is one recorded cross-provider move.

FieldType#Notes
idstring1
kindstring2instance | volume | image | snapshot
source_providerstring3
dest_providerstring4
resource_idstring5source platform id
dest_resource_idstring6created destination platform id
statestring7pending | running | done | failed | pending_manual_action
methodstring8native | broker | ssh | manual
formatstring9raw | qcow2 | fs-tar | oci
bytesint6410
checksumstring11
errorstring12
appstring13

Operation is returned by every mutating RPC. Clients poll GetOperation or subscribe to the SSE stream to observe progress.

FieldType#Notes
idstring1opaque, type-prefixed: op_…
actionstring2permission string, e.g. compute.instance.create
resource_idstring3
resource_typestring4e.g. compute.instance
stateOperationState5
messagestring6
progressint3270..100
appstring8