This is a simple Jython API for interacting with VMWare machines running on VMWare ESX Server. The library is built around the VI Java API .
- JDK 1.6
- Jython 2.5.1 or greater
- Install Jython
- Make sure all jars in the ‘deps’ directory are available to the Java classpath
Example use from a Jython shell:
>> import esx >> session = esx.login('https://yourserver/sdk','username','password') >> session,results = esx.listAllRegisteredVMS(session) >> for i in results: print i
See ‘testesx.py’ for more examples.
NOTE: Not for production use. We still have some work to do!