Interface VmService.MigrateRequest

    • Method Detail

      • cluster

        VmService.MigrateRequest cluster​(ClusterBuilder cluster)
        Specifies the cluster the virtual machine should migrate to. This is an optional parameter. By default, the virtual machine is migrated to another host within the same cluster. WARNING: Live migration to another cluster is not supported. Strongly consider the target cluster's hardware architecture and network architecture before attempting a migration.
      • force

        VmService.MigrateRequest force​(Boolean force)
        Specifies that the virtual machine should migrate even if the virtual machine is defined as non-migratable. This is an optional parameter. By default, it is set to `false`.
      • host

        VmService.MigrateRequest host​(HostBuilder host)
        Specifies a specific host that the virtual machine should migrate to. This is an optional parameter. By default, the {engine-name} automatically selects a default host for migration within the same cluster. If an API user requires a specific host, the user can specify the host with either an `id` or `name` parameter.
      • migrateVmsInAffinityClosure

        VmService.MigrateRequest migrateVmsInAffinityClosure​(Boolean migrateVmsInAffinityClosure)
        Migrate also all other virtual machines in positive enforcing affinity groups with this virtual machine, that are running on the same host. The default value is `false`.