简体   繁体   中英

How to create new VM using VMware VSphere API via PHP

I'm trying to create a new Virtual Machine in VSphere via specifications entered into a web form POSTed to php. I found the method call CreateVM_Task (scroll 70% of the way down) which seems to be the right API call. My problem is how to connect the php to this API call. The documentation for VSphere is plentiful, but I'm having trouble getting what I need.

why not try with Perl, its simple, vSphere SDK avail at free ,

http://www.vmware.com/support/developer/viperltoolkit/index.html

here they gave how to connect to vsphere, we can use web services calls to connect to vsphere. all the need is to open https port.

The vSphere API is SOAP. You need to get the WSDL (download from VMware or get it directly from your vCenter) and use it to create a SOAP client.

Maybe this helps: Connecting to vSphere API via PHP5 using SOAP

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM