How to Add VM to Inventory?

331 Views Asked by At

I'm writing a code for VMware ESX to add a .vmx file to the Inventory. This action should be the same as going in the GUI to the Datastore and right-clicking on a .vmx file --> Add to Inventory.

I believe I am supposed to use the method registerVM_Task() and the only parameter I'm missing is the 'host'.

Anyone got any ideas?

0

There are 0 best solutions below