Python – Accessing vSphere ESX/ESXi server through python

pythonvirtualizationvmware-esxvmware-vsphere

I'd like to automatically obtain a list or array of the VMs (mac address/name/resource pool) currently created on a vSphere server and use it in a python app. Can someone please suggest a good approach or solution to do this? I'm rather new to the vSphere platform. Thanks.

Best Answer

You should probably look at VMWare VIX API:

http://www.vmware.com/support/developer/vix-api/

Unfortunately it doesn't have python support. I don't know if it would be possible to make python use the C support? You could use perl or Powershell

If it has to be python then there is pyvix:

http://sourceforge.net/projects/pyvix/

I've never used it and don't know if it works.

Related Topic