Skip to main content

cutover_jobs

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

Overview​

Namecutover_jobs
TypeResource
Idgoogle.vmmigration.cutover_jobs

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. The name of the cutover job.
computeEngineDisksTargetDetailsobjectOutput only. Details of the target Persistent Disks in Compute Engine. (id: ComputeEngineDisksTargetDetails)
computeEngineTargetDetailsobjectOutput only. Details of the target VM in Compute Engine. (id: ComputeEngineTargetDetails)
createTimestring (google-datetime)Output only. The time the cutover job was created (as an API call, not when it was actually created in the target).
endTimestring (google-datetime)Output only. The time the cutover job had finished.
errorobjectOutput only. Provides details for the errors that led to the Cutover Job's state. (id: Status)
progressPercentinteger (int32)Output only. The current progress in percentage of the cutover job.
statestringOutput only. State of the cutover job. (STATE_UNSPECIFIED, PENDING, FAILED, SUCCEEDED, CANCELLED, CANCELLING, ACTIVE, ADAPTING_OS)
stateMessagestringOutput only. A message providing possible extra details about the current state.
stateTimestring (google-datetime)Output only. The time the state was last updated.
stepsarrayOutput only. The cutover steps list representing its progress.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, sourcesId, migratingVmsId, cutoverJobsIdGets details of a single CutoverJob.
listselectprojectsId, locationsId, sourcesId, migratingVmsIdfilter, orderBy, pageSize, pageTokenLists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.
createinsertprojectsId, locationsId, sourcesId, migratingVmsIdcutoverJobId, requestIdInitiates a Cutover of a specific migrating VM. The returned LRO is completed when the cutover job resource is created and the job is initiated.
cancelexecprojectsId, locationsId, sourcesId, migratingVmsId, cutoverJobsIdInitiates the cancellation of a running cutover job.

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
cutoverJobsIdstring
locationsIdstring
migratingVmsIdstring
projectsIdstring
sourcesIdstring
cutoverJobIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring

SELECT examples​

Gets details of a single CutoverJob.

SELECT
name,
computeEngineDisksTargetDetails,
computeEngineTargetDetails,
createTime,
endTime,
error,
progressPercent,
state,
stateMessage,
stateTime,
steps
FROM google.vmmigration.cutover_jobs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND sourcesId = '{{ sourcesId }}' -- required
AND migratingVmsId = '{{ migratingVmsId }}' -- required
AND cutoverJobsId = '{{ cutoverJobsId }}' -- required
;

INSERT examples​

Initiates a Cutover of a specific migrating VM. The returned LRO is completed when the cutover job resource is created and the job is initiated.

INSERT INTO google.vmmigration.cutover_jobs (
projectsId,
locationsId,
sourcesId,
migratingVmsId,
cutoverJobId,
requestId
)
SELECT
'{{ projectsId }}',
'{{ locationsId }}',
'{{ sourcesId }}',
'{{ migratingVmsId }}',
'{{ cutoverJobId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

Lifecycle Methods​

Initiates the cancellation of a running cutover job.

EXEC google.vmmigration.cutover_jobs.cancel
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@sourcesId='{{ sourcesId }}' --required,
@migratingVmsId='{{ migratingVmsId }}' --required,
@cutoverJobsId='{{ cutoverJobsId }}' --required
;