Creates a new MigratingVm in a given Source.

Scopes

You will need authorization for the https://www.googleapis.com/auth/cloud-platform scope to make a valid call.

If unset, the scope for this method defaults to https://www.googleapis.com/auth/cloud-platform. You can set the scope for this method like this: vmmigration1 --scope <scope> projects locations-sources-migrating-vms-create ...

Required Scalar Argument

  • <parent> (string)
    • Required. The MigratingVm's parent.

Required Request Value

The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure. In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.

For example, a structure like this:

MigratingVm:
  aws-source-vm-details:
    committed-storage-bytes: string
    firmware: string
    vm-capabilities-info:
      last-os-capabilities-update-time: string
      os-capabilities: [string]
  azure-source-vm-details:
    committed-storage-bytes: string
    firmware: string
    vm-capabilities-info:
      last-os-capabilities-update-time: string
      os-capabilities: [string]
  compute-engine-disks-target-defaults:
    target-project: string
    vm-target-defaults:
      additional-licenses: [string]
      boot-disk-defaults:
        device-name: string
        disk-name: string
        disk-type: string
        encryption:
          kms-key: string
        image:
          source-image: string
      compute-scheduling:
        min-node-cpus: integer
        on-host-maintenance: string
        restart-type: string
      encryption:
        kms-key: string
      hostname: string
      labels: { string: string }
      machine-type: string
      machine-type-series: string
      metadata: { string: string }
      network-tags: [string]
      secure-boot: boolean
      service-account: string
      vm-name: string
    zone: string
  compute-engine-target-defaults:
    additional-licenses: [string]
    applied-license:
      os-license: string
      type: string
    boot-option: string
    compute-scheduling:
      min-node-cpus: integer
      on-host-maintenance: string
      restart-type: string
    disk-type: string
    encryption:
      kms-key: string
    hostname: string
    labels: { string: string }
    license-type: string
    machine-type: string
    machine-type-series: string
    metadata: { string: string }
    network-tags: [string]
    secure-boot: boolean
    service-account: string
    target-project: string
    vm-name: string
    zone: string
  create-time: string
  current-sync-info:
    cycle-number: integer
    end-time: string
    error:
      code: integer
      message: string
    name: string
    progress-percent: integer
    start-time: string
    state: string
    total-pause-duration: string
  cutover-forecast:
    estimated-cutover-job-duration: string
  description: string
  display-name: string
  error:
    code: integer
    message: string
  group: string
  labels: { string: string }
  last-replication-cycle:
    cycle-number: integer
    end-time: string
    error:
      code: integer
      message: string
    name: string
    progress-percent: integer
    start-time: string
    state: string
    total-pause-duration: string
  last-sync:
    last-sync-time: string
  name: string
  policy:
    idle-duration: string
    skip-os-adaptation: boolean
  source-vm-id: string
  state: string
  state-time: string
  update-time: string
  vmware-source-vm-details:
    committed-storage-bytes: string
    firmware: string
    vm-capabilities-info:
      last-os-capabilities-update-time: string
      os-capabilities: [string]

can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.

  • -r .aws-source-vm-details committed-storage-bytes=sed
    • The total size of the disks being migrated in bytes.
  • firmware=no
    • The firmware type of the source VM.
  • vm-capabilities-info last-os-capabilities-update-time=nonumy
    • Output only. The last time OS capabilities list was updated.
  • os-capabilities=at

    • Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.
    • Each invocation of this argument appends the given value to the array.
  • ...azure-source-vm-details committed-storage-bytes=sadipscing

    • The total size of the disks being migrated in bytes.
  • firmware=aliquyam
    • The firmware type of the source VM.
  • vm-capabilities-info last-os-capabilities-update-time=dolores
    • Output only. The last time OS capabilities list was updated.
  • os-capabilities=sadipscing

    • Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.
    • Each invocation of this argument appends the given value to the array.
  • ...compute-engine-disks-target-defaults target-project=erat

    • The full path of the resource of type TargetProject which represents the Compute Engine project in which to create the Persistent Disks.
  • vm-target-defaults additional-licenses=aliquyam
    • Optional. Additional licenses to assign to the VM.
    • Each invocation of this argument appends the given value to the array.
  • boot-disk-defaults device-name=amet
    • Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks.
  • disk-name=est
    • Optional. The name of the disk.
  • disk-type=et
    • Optional. The type of disk provisioning to use for the VM.
  • encryption kms-key=sea

    • Required. The name of the encryption key that is stored in Google Cloud KMS.
  • ..image source-image=consetetur

    • Required. The Image resource used when creating the disk.
  • ...compute-scheduling min-node-cpus=55

    • The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
  • on-host-maintenance=stet
    • How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
  • restart-type=est

    • Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to automaticRestart field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
  • ..encryption kms-key=aliquyam

    • Required. The name of the encryption key that is stored in Google Cloud KMS.
  • .. hostname=elitr

    • Optional. The hostname to assign to the VM.
  • labels=key=duo
    • Optional. A map of labels to associate with the VM.
    • the value will be associated with the given key
  • machine-type=diam
    • Required. The machine type to create the VM with.
  • machine-type-series=est
    • Optional. The machine type series to create the VM with. For presentation only.
  • metadata=key=sit
    • Optional. The metadata key/value pairs to assign to the VM.
    • the value will be associated with the given key
  • network-tags=sed
    • Optional. A list of network tags to associate with the VM.
    • Each invocation of this argument appends the given value to the array.
  • secure-boot=false
    • Optional. Defines whether the instance has Secure Boot enabled. This can be set to true only if the VM boot option is EFI.
  • service-account=lorem
    • Optional. The service account to associate the VM with.
  • vm-name=ea

    • Required. The name of the VM to create.
  • .. zone=stet

    • The zone in which to create the Persistent Disks.
  • ..compute-engine-target-defaults additional-licenses=dolores

    • Additional licenses to assign to the VM.
    • Each invocation of this argument appends the given value to the array.
  • applied-license os-license=eos
    • The OS license returned from the adaptation module's report.
  • type=et

    • The license type that was used in OS adaptation.
  • .. boot-option=sea

    • Output only. The VM Boot Option, as set in the source VM.
  • compute-scheduling min-node-cpus=27
    • The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node. Ignored if no node_affinites are configured.
  • on-host-maintenance=at
    • How the instance should behave when the host machine undergoes maintenance that may temporarily impact instance performance.
  • restart-type=dolore

    • Whether the Instance should be automatically restarted whenever it is terminated by Compute Engine (not terminated by user). This configuration is identical to automaticRestart field in Compute Engine create instance under scheduling. It was changed to an enum (instead of a boolean) to match the default value in Compute Engine which is automatic restart.
  • .. disk-type=eirmod

    • The disk type to use in the VM.
  • encryption kms-key=lorem

    • Required. The name of the encryption key that is stored in Google Cloud KMS.
  • .. hostname=accusam

    • The hostname to assign to the VM.
  • labels=key=amet
    • A map of labels to associate with the VM.
    • the value will be associated with the given key
  • license-type=erat
    • The license type to use in OS adaptation.
  • machine-type=dolores
    • The machine type to create the VM with.
  • machine-type-series=erat
    • The machine type series to create the VM with.
  • metadata=key=accusam
    • The metadata key/value pairs to assign to the VM.
    • the value will be associated with the given key
  • network-tags=sea
    • A list of network tags to associate with the VM.
    • Each invocation of this argument appends the given value to the array.
  • secure-boot=true
    • Defines whether the instance has Secure Boot enabled. This can be set to true only if the VM boot option is EFI.
  • service-account=lorem
    • The service account to associate the VM with.
  • target-project=et
    • The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
  • vm-name=at
    • The name of the VM to create.
  • zone=dolor

    • The zone in which to create the VM.
  • .. create-time=et

    • Output only. The time the migrating VM was created (this refers to this resource and not to the time it was installed in the source).
  • current-sync-info cycle-number=53
    • The cycle's ordinal number.
  • end-time=erat
    • The time the replication cycle has ended.
  • error code=91
    • The status code, which should be an enum value of google.rpc.Code.
  • message=nonumy

    • A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  • .. name=et

    • The identifier of the ReplicationCycle.
  • progress-percent=89
    • The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately.
  • start-time=justo
    • The time the replication cycle has started.
  • state=sea
    • State of the ReplicationCycle.
  • total-pause-duration=consetetur

    • The accumulated duration the replication cycle was paused.
  • ..cutover-forecast estimated-cutover-job-duration=sit

    • Output only. Estimation of the CutoverJob duration.
  • .. description=aliquyam

    • The description attached to the migrating VM by the user.
  • display-name=eos
    • The display name attached to the MigratingVm by the user.
  • error code=24
    • The status code, which should be an enum value of google.rpc.Code.
  • message=dolores

    • A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  • .. group=consetetur

    • Output only. The group this migrating vm is included in, if any. The group is represented by the full path of the appropriate Group resource.
  • labels=key=gubergren
    • The labels of the migrating VM.
    • the value will be associated with the given key
  • last-replication-cycle cycle-number=97
    • The cycle's ordinal number.
  • end-time=aliquyam
    • The time the replication cycle has ended.
  • error code=40
    • The status code, which should be an enum value of google.rpc.Code.
  • message=amet.

    • A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  • .. name=ipsum

    • The identifier of the ReplicationCycle.
  • progress-percent=45
    • The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately.
  • start-time=accusam
    • The time the replication cycle has started.
  • state=gubergren
    • State of the ReplicationCycle.
  • total-pause-duration=sadipscing

    • The accumulated duration the replication cycle was paused.
  • ..last-sync last-sync-time=at

    • The most updated snapshot created time in the source that finished replication.
  • .. name=sit

    • Output only. The identifier of the MigratingVm.
  • policy idle-duration=duo
    • The idle duration between replication stages.
  • skip-os-adaptation=true

    • A flag to indicate whether to skip OS adaptation during the replication sync. OS adaptation is a process where the VM's operating system undergoes changes and adaptations to fully function on Compute Engine.
  • .. source-vm-id=magna

    • The unique ID of the VM in the source. The VM's name in vSphere can be changed, so this is not the VM's name but rather its moRef id. This id is of the form vm-.
  • state=et
    • Output only. State of the MigratingVm.
  • state-time=rebum.
    • Output only. The last time the migrating VM state was updated.
  • update-time=dolor
    • Output only. The last time the migrating VM resource was updated.
  • vmware-source-vm-details committed-storage-bytes=lorem
    • The total size of the disks being migrated in bytes.
  • firmware=justo
    • The firmware type of the source VM.
  • vm-capabilities-info last-os-capabilities-update-time=amet.
    • Output only. The last time OS capabilities list was updated.
  • os-capabilities=no
    • Output only. Unordered list. List of certain VM OS capabilities needed for some Compute Engine features.
    • Each invocation of this argument appends the given value to the array.

About Cursors

The cursor position is key to comfortably set complex nested structures. The following rules apply:

  • The cursor position is always set relative to the current one, unless the field name starts with the . character. Fields can be nested such as in -r f.s.o .
  • The cursor position is set relative to the top-level structure if it starts with ., e.g. -r .s.s
  • You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify -r struct.sub_struct=bar.
  • You can move the cursor one level up by using ... Each additional . moves it up one additional level. E.g. ... would go three levels up.

Optional Output Flags

The method's return value a JSON encoded structure, which will be written to standard output by default.

  • -o out
    • out specifies the destination to which to write the server's result to. It will be a JSON-encoded structure. The destination may be - to indicate standard output, or a filepath that is to contain the received bytes. If unset, it defaults to standard output.

Optional Method Properties

You may set the following properties to further configure the call. Please note that -p is followed by one or more key-value-pairs, and is called like this -p k1=v1 k2=v2 even though the listing below repeats the -p for completeness.

  • -p migrating-vm-id=string

    • Required. The migratingVm identifier.
  • -p request-id=string

    • A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Optional General Properties

The following properties can configure any call, and are not specific to this method.

  • -p $-xgafv=string

    • V1 error format.
  • -p access-token=string

    • OAuth access token.
  • -p alt=string

    • Data format for response.
  • -p callback=string

    • JSONP
  • -p fields=string

    • Selector specifying which fields to include in a partial response.
  • -p key=string

    • API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • -p oauth-token=string

    • OAuth 2.0 token for the current user.
  • -p pretty-print=boolean

    • Returns response with indentations and line breaks.
  • -p quota-user=string

    • Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  • -p upload-type=string

    • Legacy upload protocol for media (e.g. "media", "multipart").
  • -p upload-protocol=string

    • Upload protocol for media (e.g. "raw", "multipart").