Most people have the perception that vSphere Java API is for developers. It’s true but actually more than that. Administrators can take advantage of it as well.
Today, William Lam (@lamw) posted a Java version of his vdf tool which was originally written in Perl. For people don’t know William yet, he is a system administrator at Salesforce.com now and Yahoo before. He created and maintains the famous vGehtto script repository that almost every VI Perl developer knows about. William is also a vExpert and the No.1 contributor to the VMware developer community. Having not touched Java for 4+ years, William got his first HelloVM with VI Java API working in less than 5 minutes, and got the code converted in about one hour.
Bothered by SLOW Web UI to manage vSphere? Want to manage ALL your VMware vCenters, AWS, Azure, Openstack, container behind a SINGLE pane of glass? Want to search, analyze, report, visualize VMs, hosts, networks, datastores, events as easily as Google the Web? Find out more about vSearch 3.0: the search engine for all your private and public clouds.
With the automation scope getting bigger and script getting more complicated, using programming languages like Java has big advantages: code manageability and reuse, easy integration with third party tools, performance, less runtime errors, etc.
If you are interested in using VI Java API for your administration and system automation, here is the links to get started:
- Get Started Tutorial. Also try other samples.
- Use Jython with VI Java API. Timo Sugliani also created a virtual appliance here.
- Use Groovy with VI Java API by Aaron Sweemer