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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe identifier of the ReplicationCycle.
cycleNumberinteger (int32)The cycle's ordinal number.
endTimestring (google-datetime)The time the replication cycle has ended.
errorobjectOutput only. Provides details on the state of the cycle in case of an error. (id: Status)
progressPercentinteger (int32)The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately.
startTimestring (google-datetime)The time the replication cycle has started.
statestringState of the ReplicationCycle.
stepsarrayThe cycle's steps list representing its progress.
totalPauseDurationstring (google-duration)The accumulated duration the replication cycle was paused.
warningsarrayOutput only. Warnings that occurred during the cycle.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, sourcesId, migratingVmsId, replicationCyclesIdGets details of a single ReplicationCycle.
listselectprojectsId, locationsId, sourcesId, migratingVmsIdpageSize, pageToken, filter, orderByLists ReplicationCycles in a given MigratingVM.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
migratingVmsIdstring
projectsIdstring
replicationCyclesIdstring
sourcesIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets details of a single ReplicationCycle.

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