Skip to main content

replication_cycles

Creates, updates, deletes, gets or lists a replication_cycles resource.

Overview

Namereplication_cycles
TypeResource
Idgoogle.vmmigration.replication_cycles

Fields

NameDatatypeDescription
namestringThe identifier of the ReplicationCycle.
cycleNumberintegerThe cycle's ordinal number.
endTimestringThe time the replication cycle has ended.
errorobjectThe Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.
progressPercentintegerThe current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately.
startTimestringThe time the replication cycle has started.
statestringState of the ReplicationCycle.
stepsarrayThe cycle's steps list representing its progress.
totalPauseDurationstringThe accumulated duration the replication cycle was paused.
warningsarrayOutput only. Warnings that occurred during the cycle.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, migratingVmsId, projectsId, replicationCyclesId, sourcesIdGets details of a single ReplicationCycle.
listSELECTlocationsId, migratingVmsId, projectsId, sourcesIdLists ReplicationCycles in a given MigratingVM.

SELECT examples

Lists ReplicationCycles in a given MigratingVM.

SELECT
name,
cycleNumber,
endTime,
error,
progressPercent,
startTime,
state,
steps,
totalPauseDuration,
warnings
FROM google.vmmigration.replication_cycles
WHERE locationsId = '{{ locationsId }}'
AND migratingVmsId = '{{ migratingVmsId }}'
AND projectsId = '{{ projectsId }}'
AND sourcesId = '{{ sourcesId }}';