Resource: CloneJob
CloneJob describes the process of creating a clone of a MigratingVM
to the requested target based on the latest successful uploaded snapshots. While the migration cycles of a MigratingVm take place, it is possible to verify the uploaded VM can be started in the cloud, by creating a clone. The clone can be created without any downtime, and it is created using the latest snapshots which are already in the cloud. The cloneJob is only responsible for its work, not its products, which means once it is finished, it will never touch the instance it created. It will only delete it in case of the CloneJob being cancelled or upon failure to clone.
JSON representation |
---|
{ "createTime": string, "endTime": string, "name": string, "targetDetails": { object ( |
Fields | |
---|---|
createTime |
Output only. The time the clone job was created (as an API call, not when it was actually created in the target). A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
Output only. The time the clone job was ended. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
name |
Output only. The name of the clone. |
targetDetails |
Output only. Details of the VM to create as the target of this clone job. Deprecated: Use computeEngineTargetDetails instead. |
state |
Output only. State of the clone job. |
stateTime |
Output only. The time the state was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
error |
Output only. Provides details for the errors that led to the Clone Job's state. |
steps[] |
Output only. The clone steps list representing its progress. |
Union field target . Details of the VM to create as the target of this clone job. target can be only one of the following: |
|
computeEngineVmDetails |
Output only. Details of the VM in Compute Engine. Deprecated: Use computeEngineTargetDetails instead. |
Union field target_vm_details . Details of the VM to create as the target of this clone job. target_vm_details can be only one of the following: |
|
computeEngineTargetDetails |
Output only. Details of the target VM in Compute Engine. |
computeEngineDisksTargetDetails |
Output only. Details of the target Persistent Disks in Compute Engine. |
State
Possible states of the clone job.
Enums | |
---|---|
STATE_UNSPECIFIED |
The state is unknown. This is used for API compatibility only and is not used by the system. |
PENDING |
The clone job has not yet started. |
ACTIVE |
The clone job is active and running. |
FAILED |
The clone job finished with errors. |
SUCCEEDED |
The clone job finished successfully. |
CANCELLED |
The clone job was cancelled. |
CANCELLING |
The clone job is being cancelled. |
ADAPTING_OS |
OS adaptation is running as part of the clone job to generate license. |
CloneStep
CloneStep holds information about the clone step progress.
JSON representation |
---|
{ "startTime": string, "endTime": string, // Union field |
Fields | |
---|---|
startTime |
The time the step has started. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
The time the step has ended. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Union field
|
|
adaptingOs |
Adapting OS step. |
preparingVmDisks |
Preparing VM disks step. |
instantiatingMigratedVm |
Instantiating migrated VM step. |
Methods |
|
---|---|
|
Initiates the cancellation of a running clone job. |
|
Initiates a Clone of a specific migrating VM. |
|
Gets details of a single CloneJob. |
|
Lists the CloneJobs of a migrating VM. |