WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] Re: Xen-API SDK - VM create

To: Chonduy Nguyen <chonduy9@xxxxxxxxx>
Subject: Re: [Xen-API] Re: Xen-API SDK - VM create
From: Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
Date: Wed, 10 Feb 2010 11:31:02 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 10 Feb 2010 03:31:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <834780.8547.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <834780.8547.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcqqRIbSZSXkvG2XRUS8f1mHky0XwA==
Thread-topic: [Xen-API] Re: Xen-API SDK - VM create
Hi Thuymai,

Probably the best thing to do is to look at the SDK docs - there are many examples of the use of the API there:


Although it's talking about XenServer, the examples and docs should all be relevant to XCP too. Remember that the python library 'XenAPI.py' is mostly dynamic, and doesn't in itself have much knowledge about the API - so you won't find references to VM.create, for example, in that file.

Hope this helps,

Jon
 

On 10 Feb 2010, at 04:51, Chonduy Nguyen wrote:


Hi

I saw Xen doc mention about VM.create()

but i can't find python file describe this. ( not on XenAPI.py)

Can you please let me know where I can find the description on how to use this api ?

Thanks

Thuymai




From: Chonduy Nguyen <chonduy9@xxxxxxxxx>
To: xen-api@xxxxxxxxxxxxxxxxxxx
Sent: Tue, February 2, 2010 1:19:30 PM
Subject: Xen-API SDK

Hi

I can't find XenApi.py  on www.xen.org but I find it from commuity.citrix.com/display/xs/Download+SDKs

May I ask if this is the same as XCP XenAPI?

Can I use XenAPI send  command to VM ? - I saw the doc mentioned doing this by calling XenAPI.xapi_local()
but in my case I want to have webservice running at different server to access VM  remotely ( start/stop) Vm .

I saw some discussion saying that we can't do XenAPI to send command. (???)

Is that mean we need to have XenAPI webserver on each VM 

as XenAPI.Session(url) -- require url  passing in

Please let me know - I am new with this

Thank you

Thuymai



_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>