Hi Clayton,
API bindings are generated for XenServer in C, C#, Java and Powershell â you can use these with XCP, and theyâre available here:
http://community.citrix.com/cdn/xs/sdks/
You may also be interested in the SDK guide: http://docs.vmd.citrix.com/XenServer/6.1.0/1.0/en_gb/sdk.html
âand the API reference: http://docs.vmd.citrix.com/XenServer/6.1.0/1.0/en_gb/api/
If you want to use Python, the easiest thing to do is copy the helper module which is at /usr/lib/python2.4/site-packages/XenAPI.py on an XCP host.
The API bindings are really just a thin wrapper around XMLRPC, so with a bit more effort you should be able to use the XCP API from any language with an XMLRPC library.
Hope this helps,
John
From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxx] On Behalf Of claytonly
Sent: 18 December 2012 07:33
To: xen-api
Subject: [Xen-API] how to use api
I want to use API provided by xcp to develop some applications, where shold I begin? Many Thanks!
2012-12-18