<div dir="ltr">Thank you very much, this worked. :)<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 18 February 2013 14:51, Rami Vaknin <span dir="ltr"><<a href="mailto:rvaknin@redhat.com" target="_blank">rvaknin@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div><div>
On 02/18/2013 04:34 PM, Julian Learmonth wrote:
<blockquote type="cite">
<div dir="ltr">
<div>
<div>Hello,<br>
<br>
</div>
I've very new to OpenStack (3 days) so this could be a simple
issue. I'm trying to generate an API key for Veeam Backup
Cloud Edition to use a demo instance of DevStack. I'm using
the following command line on the machine with DevStack
installed:<br>
<br>
curl -d '{"passwordCredentials": {"username": "admin",
"password": "redacted"}}' -H "Content-type: application/json"
<a href="http://localhost:5000/v2.0/tokens" target="_blank">http://localhost:5000/v2.0/tokens</a><br>
<br>
</div>
I got the above command line from here: <a href="http://docs.openstack.org/api/openstack-compute/programmer/content/getting-the-authentication-token.html" target="_blank">http://docs.openstack.org/api/openstack-compute/programmer/content/getting-the-authentication-token.html</a><br>
<div><br clear="all">
<div>
<div>
<div>And I am getting this error message when I run the
command (using the correct password):<br>
<br>
{"error": {"message": "authenticate() got an unexpected
keyword argument 'passwordCredentials'", "code": 400,
"title": "Bad Request"}}<br>
<br>
</div>
<div>Any idea what I am doing wrong? Is there another way
to generate an API key?<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br></div></div>
I'm using:<br>
curl -k -X 'POST' <a href="http://the_ip:5000/v2.0/tokens" target="_blank">http://the_ip:5000/v2.0/tokens</a> -d
'{"auth":{"passwordCredentials":{"username": "admin",
"password":"admin_password"},
"tenantId":"91c3b2bb35214fe6befb44c25995cfb0"}}' -H 'Content-type:
application/json'<br>
<br>
<blockquote type="cite"><div>
<div dir="ltr">
<div>
<div>
<div>
<div><br>
I am using OpenStack Folsom (DevStack) on Ubuntu 12.10.<br>
<br>
</div>
<div>Any help appreciated!<br>
</div>
<div>
<br>
Regards,<br>
Julian.<br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div><pre>_______________________________________________
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
Post to : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><span><font color="#888888">
</font></span></pre><span><font color="#888888">
</font></span></blockquote><span><font color="#888888">
<br>
<br>
<pre cols="72">--
Thanks,
Rami Vaknin, QE @ Red Hat, TLV, IL.
</pre>
</font></span></div>
</blockquote></div><br></div>