There have been a variety of improvements to the SDK with Citrix XenServer 6.5.
- The old style PowerShell SDK, which was shipped as a PowerShell v1.0 Snap-In in XenServer versions prior to 6.5 and was deprecated as of XenServer 6.2, has now been removed.
- Previously released as a PowerShell v2.0 Snap-In, the XenServer PowerShell SDK is now shipped as a more versatile PowerShell v2.0 Module
- XenServer’s per host HTTP interface has now been exposed in the PowerShell SDK, enabling users to perform operations such as VM importing and exporting, patch upload, retrieval of performance statistics and VNC consoles etc. (Previously only available in C# SDK)
- C SDK: Support has been provided for building on Windows machines with cygwin.
- C# SDK:
- Exceptions are now serializable.
- XML documentation has been added to the class methods and public properties.
The XenAPI reference is now shipped within the XenServer-SDK.zip file in both pdf and html format.
There is lots of advice about developing commercial as well as open source products for XenServer using the SDK and APIs (available in C#, C, Java, Python and PowerShell) and also XenCenter plugins; including code examples, development and debug tools and how-to-guides, all available here.
The enhancements to the PowerShell SDK are particularly useful for XenDesktop and XenApp administrators. I’m particularly excited about the options for admins to access the XenServer metrics and create patch update scripts with greater ease. Together with the wealth of functionality added by including Citrix XenServer Work Load Balancing for free with Citrix XenDesktop licenses, this XenServer 6.5 release really does look good for our XenDesktop and XenApp users.
Where to find the SDK
You will need to login to your Citrix account: if you use this direct link
The SDK is available under development components.
If you login via www.citrix.com and go to the download tab, you may get confused like I did, as the main page shows an icon with (“Multi”) on it, I didn’t realise you need to click on it get the full list of XenServer 6.5 components and downloads and the above page listing “Development Components”.
You can also access the nightly development builds of the SDK along with all the other upstream open source components of XenServer on the xenserver.org site, which may be of interest if you are following the future of XenServer. The code to XenCenter is also available and a great reference for using the SDK.
- Full details of other new features alongside SDK enhancements: Citrix XenServer 6.5 – Release Notes
- XenServer support and engineering staff respond to enquiries on a dedicated XenServer SDK forum, where you can also chat with and seek advice from other users of the SDK, you can find the forum, here.
- We frequently publish blogs about the XenServer SDK, system administrator scripts or developer tools on the dedicated XenServer blog feed, follow it here. There is also a general developer blog stream covering other Citrix SDKs and APIs, that you can find here.
- Marc’s blog on what is new in XenServer 6.5: /blogs/2015/01/13/xenserver-v6-5-whats-new-and-why-you-should-check-it-out/
- Santiago’s Blog frequently covers XenServer PowerShell examples: /blogs/author/santiagoca/