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] how to switch on API on XCP

To: 'Olivier LAMBERT' <lambert.olivier@xxxxxxxxx>, "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-API] how to switch on API on XCP
From: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Date: Thu, 25 Feb 2010 13:43:26 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Thu, 25 Feb 2010 05:44:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f769216c1002250534r27f6d7adqa89e3480c9c93afb@xxxxxxxxxxxxxx>
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: <f769216c1002250534r27f6d7adqa89e3480c9c93afb@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acq2H3odZmC9rHntTBSAuO85tR1XIwAALlJg
Thread-topic: [Xen-API] how to switch on API on XCP
Hi Olivier,

By default XCP is listening on port 443 of its management interface for 
XMLRPC/HTTPS. There's nothing else you need to activate.

On another machine try firing up a python toplevel and typing:

$ python
Python 2.5.2 (r252:60911, Jul 22 2009, 15:35:03) 
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xmlrpclib
>>> x = xmlrpclib.Server("https://myXCPaddress";)
>>> session = x.session.login_with_password("root", "password")
>>> session
{'Status': 'Success', 'Value': 'OpaqueRef:46c4dcd9-ab8e-8e04-51a2-0f5a3a0792bd'}
>>>

Cheers,
Dave

> -----Original Message-----
> From: xen-api-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-
> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Olivier LAMBERT
> Sent: 25 February 2010 13:35
> To: xen-api@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-API] how to switch on API on XCP
> 
> Hello,
> 
> After my first attempt (which is successful) to install XCP, I've got
> a question. With standalone Xen, in order to activate API, you just
> need to uncomment this in xend-config.sxp :
> (xen-api-server ((9363 unix)))
> 
> But, for XCP, what can I do to activate the API server ?
> 
> 
> Regards,
> 
> 
> Olivier
> XO Project
> http://xen-orchestra.com
> 
> _______________________________________________
> 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>