Search code examples
vmwarevsphereesxivcenter

Best Approach to Create and Deploy Configurable Virtual Machine


I am new to Vmware APIs, is there some way to use Rest/Soap APIs to deploy a VM on a given IP of either an ESXi Server or a Vcentre Server?

I know there exists CreateVM_Task in VSphere Web Services SDK but how to use it for an ESXi Server on a remote location?


Solution

  • Theoretically, you run the sample the exact same way. However you authenticate to the ESXi host directly instead of the vCenter server.

    Now that I think about it, you'll probably also have to remove the datacenter parameter since hosts don't contain datacenter objects.