Skip to content

rjkrish/vimjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vimjson

Lightweight JSON data binding wrapper for the VMware vSphere webservices SDK.

Design Principles

  • Follow the grain of the vSphere SDK - no new abstractions, no wrapper classes, decorators etc.
  • Low conceptual overhead - low learning curve for those who are familiar with the vSphere MOB.
  • Provide a resource-oriented, functional interface; not a hierarchical object model
  • Favor utility over completeness - address the common cases first

vSphere SDK setup

  1. Download SDK zip file
  2. Unzip
  3. cd vsphere-ws/java/JAXWS
  4. Run build.sh
  5. cd lib
  6. Install vim25.jar into local Maven repo. mvn install:install-file -Dfile=./vim25.jar -DgroupId=com.vmware -DartifactId=vim25 -Dversion=6.0.0 -Dpackaging=jar

Running the code

mvn test -DargLine="-Dvc.host=127.0.0.1 -Dvc.username=[email protected] -Dvc.password='password' -Dvc.vmname='VMware vCenter Server Appliance'"

Notes

  1. If you are running vSphere 6.5 or higher you dont need any of this. One of the new features in 6.5 is the vCenter REST API which natively offers a modernized programmatic interface to vCenter. See https://blogs.vmware.com/developer/2016/10/whats-new-developer-automation-interfaces-65.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages