cutover_jobs
Creates, updates, deletes, gets or lists a cutover_jobs
resource.
Overview
Name | cutover_jobs |
Type | Resource |
Id | google.vmmigration.cutover_jobs |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The name of the cutover job. |
computeEngineDisksTargetDetails | object | ComputeEngineDisksTargetDetails is a collection of created Persistent Disks details. |
computeEngineTargetDetails | object | ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project. |
createTime | string | Output only. The time the cutover job was created (as an API call, not when it was actually created in the target). |
endTime | string | Output only. The time the cutover job had finished. |
error | object | The 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. |
progressPercent | integer | Output only. The current progress in percentage of the cutover job. |
state | string | Output only. State of the cutover job. |
stateMessage | string | Output only. A message providing possible extra details about the current state. |
stateTime | string | Output only. The time the state was last updated. |
steps | array | Output only. The cutover steps list representing its progress. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | cutoverJobsId, locationsId, migratingVmsId, projectsId, sourcesId | Gets details of a single CutoverJob. |
list | SELECT | locationsId, migratingVmsId, projectsId, sourcesId | Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed. |
create | INSERT | locationsId, migratingVmsId, projectsId, sourcesId | 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. |
cancel | EXEC | cutoverJobsId, locationsId, migratingVmsId, projectsId, sourcesId | Initiates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.vmmigration.cutover_jobs (
locationsId,
migratingVmsId,
projectsId,
sourcesId
)
SELECT
'{{ locationsId }}',
'{{ migratingVmsId }}',
'{{ projectsId }}',
'{{ sourcesId }}'
;
- name: your_resource_model_name
props:
- name: computeEngineTargetDetails
value:
- name: vmName
value: string
- name: project
value: string
- name: zone
value: string
- name: machineTypeSeries
value: string
- name: machineType
value: string
- name: networkTags
value:
- string
- name: networkInterfaces
value:
- - name: network
value: string
- name: subnetwork
value: string
- name: internalIp
value: string
- name: externalIp
value: string
- name: networkTier
value: string
- name: serviceAccount
value: string
- name: diskType
value: string
- name: labels
value: object
- name: licenseType
value: string
- name: appliedLicense
value:
- name: type
value: string
- name: osLicense
value: string
- name: computeScheduling
value:
- name: onHostMaintenance
value: string
- name: restartType
value: string
- name: nodeAffinities
value:
- - name: key
value: string
- name: operator
value: string
- name: values
value:
- string
- name: minNodeCpus
value: integer
- name: secureBoot
value: boolean
- name: enableVtpm
value: boolean
- name: enableIntegrityMonitoring
value: boolean
- name: bootOption
value: string
- name: metadata
value: object
- name: additionalLicenses
value:
- string
- name: hostname
value: string
- name: encryption
value:
- name: kmsKey
value: string
- name: bootConversion
value: string
- name: computeEngineDisksTargetDetails
value:
- name: disksTargetDetails
value: []
- name: vmTargetDetails
value:
- name: vmUri
value: string
- name: disks
value:
- - name: sourceDiskNumber
value: integer
- name: diskUri
value: string
- name: createTime
value: string
- name: endTime
value: string
- name: name
value: string
- name: state
value: string
- name: stateTime
value: string
- name: progressPercent
value: integer
- name: error
value:
- name: code
value: integer
- name: message
value: string
- name: details
value:
- object
- name: stateMessage
value: string
- name: steps
value:
- - name: previousReplicationCycle
value:
- name: name
value: string
- name: cycleNumber
value: integer
- name: startTime
value: string
- name: endTime
value: string
- name: totalPauseDuration
value: string
- name: progressPercent
value: integer
- name: steps
value:
- - name: initializingReplication
value: []
- name: replicating
value:
- name: totalBytes
value: string
- name: replicatedBytes
value: string
- name: lastTwoMinutesAverageBytesPerSecond
value: string
- name: lastThirtyMinutesAverageBytesPerSecond
value: string
- name: postProcessing
value: []
- name: startTime
value: string
- name: endTime
value: string
- name: state
value: string
- name: warnings
value:
- - name: code
value: string
- name: warningMessage
value:
- name: locale
value: string
- name: message
value: string
- name: helpLinks
value:
- - name: description
value: string
- name: url
value: string
- name: warningTime
value: string
- name: shuttingDownSourceVm
value: []
- name: preparingVmDisks
value: []
- name: instantiatingMigratedVm
value: []
- name: startTime
value: string
- name: endTime
value: string