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] Help with python binding. my simple example

To: Joni Lee <webcokies@xxxxxxxxx>
Subject: Re: [Xen-API] Help with python binding. my simple example
From: Christopher Winslett <christopherwinslett@xxxxxxxxx>
Date: Mon, 31 Aug 2009 11:47:19 -0500
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 31 Aug 2009 09:47:42 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=8NjVVZz0XLNaI7u4bqgp82RVZIRkzKb4p63Ltct+H98=; b=O4fzUmA9y/REgb9C2i2ChydZ2rmTtlf5zEWXFUeN4FCWNGO3NEfU8lcXQnDdu53poZ CZUOwknsTAfl1gSW49gpmWl2+9FwI7OqX0mU+e/lYMWhyOs6ajLXBmuxbuTn+NV4g8Ns 8M6G+zkuGpv6YYVgjvPCxL9r860vib7FCE6E8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=RiyMw5Jl/l1qp/iK4Mjceitd/m6anl4vx1Z8r1JPsTBouDbXEqU6XHCft4CvV+cosu GCC/tlARnPoRw0TOBvZCXr9BZ8/rBJ7mUVaMdWSSi2KuLkqvQ2d/QpWf2rbHvZJLZ4pb JX1Q2wx+WG9N4HvcMzJ8hT5Xt1vPe+K4IsWQE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <447903.27760.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <447903.27760.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Did you change your API port to use 8006?  I typically use https://localhost

cw

On Mon, Aug 31, 2009 at 9:25 AM, Joni Lee <webcokies@xxxxxxxxx> wrote:
Hi list,

I install xen 3.3 from apt-get xen-server install
on Ubuntu and this is my small Python script:
-------------------------------------------------------------
import sys
sys.path.append('/usr/lib/python2.6/site-packages')
from xen.xm.XenAPI import Session
session = Session('http://localhost:8006/')
session.login_with_password('root', '')
-------------------------------------------------------------
and it returns
"xen.xm.XenAPI.Failure: The method session.login_with_password is unsupported"
-------------------------------------------------------------
Please help me with the first step into binding. I only want to get the information about the resource assumption such as CPU, RAM of the doms.

Thank you very much


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




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