Skip to main content

clone_jobs

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

Overview

Nameclone_jobs
TypeResource
Idgoogle.vmmigration.clone_jobs

Fields

NameDatatypeDescription
namestringOutput only. The name of the clone.
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 clone job was created (as an API call, not when it was actually created in the target).
endTimestringOutput only. The time the clone job was 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.
statestringOutput only. State of the clone job.
stateTimestringOutput only. The time the state was last updated.
stepsarrayOutput only. The clone steps list representing its progress.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcloneJobsId, locationsId, migratingVmsId, projectsId, sourcesIdGets details of a single CloneJob.
listSELECTlocationsId, migratingVmsId, projectsId, sourcesIdLists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed.
createINSERTlocationsId, migratingVmsId, projectsId, sourcesIdInitiates a Clone of a specific migrating VM.
cancelEXECcloneJobsId, locationsId, migratingVmsId, projectsId, sourcesIdInitiates the cancellation of a running clone job.

SELECT examples

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

SELECT
name,
computeEngineDisksTargetDetails,
computeEngineTargetDetails,
createTime,
endTime,
error,
state,
stateTime,
steps
FROM google.vmmigration.clone_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 clone_jobs resource.

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