Announcing vSphere Java API 2.1 GA Release
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.
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)
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.
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
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 ????
Thanks for offering help Nikita! Let’s consider it for crescendo release.
-Steve
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)
Hi Nikita,
You can try HTTP access to download the png file.
Steve
Nikita – Could you get it working?
Check out this blog for detailed answer.
http://www.doublecloud.org/2010/09/really-easy-ways-to-capture-vm-screenshot/
-Steve
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.
Check out this thread at VMware forum: http://communities.vmware.com/thread/278342. Good luck!
Steve