Reply to Message

View discussion in a popup

Replying to:
admin
Immortal
Immortal

If you are getting the reference of the VM using findByDatastorePath API, then you can proceed further with the CloneVM_Task API.

However, I would like to share that the inventory path of the VM can be crosschecked using the findByInventoryPath API. The path would be:

Now, you can verify your datacenter and vm name using the MOB and verifying the name property of the datacenter and VM, if it is the same. You can directly invoke the findByInventoryPath API using MOB as well.

I have tried and I am successfully able to retrieve the VM reference.

I would suggest you to crosscheck if you are passing the right name, verifying the same using Managed object browser.