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

NameDatatypeDescription
namestringOutput only. The name of the cutover job.
computeEngineDisksTargetDetailsobjectComputeEngineDisksTargetDetails is a collection of created Persistent Disks details.
computeEngineTargetDetailsobjectComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project.
createTimestringOutput only. The time the cutover job was created (as an API call, not when it was actually created in the target).
endTimestringOutput only. The time the cutover job had finished.
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.
progressPercentintegerOutput only. The current progress in percentage of the cutover job.
statestringOutput only. State of the cutover job.
stateMessagestringOutput only. A message providing possible extra details about the current state.
stateTimestringOutput only. The time the state was last updated.
stepsarrayOutput only. The cutover steps list representing its progress.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcutoverJobsId, locationsId, migratingVmsId, projectsId, sourcesIdGets details of a single CutoverJob.
listSELECTlocationsId, migratingVmsId, projectsId, sourcesIdLists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.
createINSERTlocationsId, migratingVmsId, projectsId, sourcesIdInitiates a Cutover of a specific migrating VM. The returned LRO is completed when the cutover job resource is created and the job is initiated.
cancelEXECcutoverJobsId, locationsId, migratingVmsId, projectsId, sourcesIdInitiates the cancellation of a running cutover job.

SELECT examples

Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.

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

INSERT example

Use the following StackQL query and manifest file to create a new cutover_jobs resource.

/*+ create */
INSERT INTO google.vmmigration.cutover_jobs (
locationsId,
migratingVmsId,
projectsId,
sourcesId
)
SELECT
'{{ locationsId }}',
'{{ migratingVmsId }}',
'{{ projectsId }}',
'{{ sourcesId }}'
;