tags:

views:

2

answers:

0

Hi,

I just started using WebSphere SDKs and I get stuck on this trivial task: how to get reference to a VMware Host knowing its dnsname?

I want then to use it in a migration like

ManagedObjectReference task = sc.Service.MigrateVM_Task(
VirtualMachine.Create(sc, byVnUUID).getMor(),
null,
?,
VirtualMachineMovePriority.highPriority,
VirtualMachinePowerState.poweredOff, true);

Is there any snippet on how to use it?

Thanks,