Home > vSphere API > Announcing vSphere Java API 2.1 GA Release

Announcing vSphere Java API 2.1 GA Release

August 26th, 2010 Leave a comment Go to comments

Right after vSphere 4.1 released, VI Java API 2.1 beta supporting vSphere 4.1 was released on July 15. After 40 days, I am pleased to announce GA of the 2.1 release. Many thanks to all vijava community memembers who helped to try 2.1 beta and give feedbacks.

The 2.1 beta is pretty good in terms of quality. I got several emails reporting greeen. I did get several bugs, some of which are carry-overs that should have been fixed in previous releases. Check the end of this blog for a list of bug fixes.

Lost VMs or Containers? Too Many Consoles? Too Slow GUI? Time to learn how to "Google" and manage your VMware and clouds in a fast and secure HTML5 App.

During the beta period, I started a poweredby page which now features 10 companies/products which use vijava API. If you would like your organizations/products included, please let me know.

Enough being said, are you ready to give 2.1 a try? Please feel to download it here. Even you are new to this API, 5 minutes is good enough to have your first HelloVSphere running with this tutorial.

Bug Fixes
3049871 Missing SetPublicKey in ExtensionManager
3040909 getProfile in HostProfilesManager throws a classcastexceptio
3042149 match version in SessionManager.cloneSession() method
3042167 xml characters not escaped (partial fix with password which is more likely to contain special chars)

Categories: vSphere API Tags: ,
  1. August 26th, 2010 at 03:47 | #1

    Steve , that’s awesome news.
    I’ve got another one question – is there any ability to take screenshot from VM console by means of native API or your library???
    We’re developing large distributed testing framework, so screenshots from the consoles could be extremely usefull.

  2. August 26th, 2010 at 09:58 | #2

    Thanks Nikita,

    You want to take a look at the createScreenshot_Task() method defined in VirtualMachine type.
    http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/vim.VirtualMachine.html#createScreenshot

    BTW, I have created a poweredby page (http://vijava.sf.net/poweredby.php) featuring 10 companies/products. Do you want your testing framework listed there? Let me know.

    Steve

  3. August 26th, 2010 at 13:59 | #3

    Thanks Steeve, there is no need to advertise ouк framework, it’s very speical product, possibly in further we will integrate it with Vmware vCenter Lab Manager and then it will be whole product.
    Possibly I can help you MAVENize youк awesome library, what is about it ????

  4. August 29th, 2010 at 11:58 | #4

    Thanks for offering help Nikita! Let’s consider it for crescendo release.

    -Steve

  5. September 1st, 2010 at 06:19 | #5

    Steve, I’ve tried to take screenshot by means of this task – it works, but i still can’t find the way to retrieve it from ESX host.
    In the Task returned by CreateScreenshot_Task() result field contains following

    /vmfs/volumes/4acb13ba-589015d6-9aeb-001a6496f275/AT-WindowsXP-SP3/AT-Manager-screenshot-2.png

    Is therу any way to retrieve it using API?

    (Also i’ve tried to send HTTPs request to ESX(https://esxhost/screen?id=VmName) but there was not any response)

  6. September 3rd, 2010 at 10:16 | #6

    Hi Nikita,

    You can try HTTP access to download the png file.

    Steve

  7. Abhinav
    September 6th, 2010 at 08:18 | #7

    Nikita – Could you get it working?

  8. September 11th, 2010 at 00:41 | #8
  9. Amaresh
    October 25th, 2010 at 10:13 | #9

    Hi Steve,
    I had VCenter server 4.0 on my VM and registred my plug-in. I used to get some pre-defined set of request parameters locale,serviceUrl,moref,sessionId and serverGuid, And I refer this parameter to get the username/pwd for authentication.

    But with 4.1 version of VCenter server, sessionId parameter is missing and it fails to authenticate.

    Any help/fix on this? Is there any work-around for this.

    Thanks in advance.

  10. October 25th, 2010 at 20:19 | #10

    Check out this thread at VMware forum: http://communities.vmware.com/thread/278342. Good luck!
    Steve

  1. No trackbacks yet.