← Back to team overview

openstack team mailing list archive

Re: API Key Generation

 

On 02/18/2013 04:34 PM, Julian Learmonth wrote:
Hello,

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:

curl -d '{"passwordCredentials": {"username": "admin", "password": "redacted"}}' -H "Content-type: application/json" http://localhost:5000/v2.0/tokens

I got the above command line from here: http://docs.openstack.org/api/openstack-compute/programmer/content/getting-the-authentication-token.html

And I am getting this error message when I run the command (using the correct password):

{"error": {"message": "authenticate() got an unexpected keyword argument 'passwordCredentials'", "code": 400, "title": "Bad Request"}}

Any idea what I am doing wrong? Is there another way to generate an API key?

I'm using:
curl -k -X 'POST' http://the_ip:5000/v2.0/tokens -d '{"auth":{"passwordCredentials":{"username": "admin", "password":"admin_password"}, "tenantId":"91c3b2bb35214fe6befb44c25995cfb0"}}' -H 'Content-type: application/json'


I am using OpenStack Folsom (DevStack) on Ubuntu 12.10.

Any help appreciated!

Regards,
Julian.


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


--

Thanks,

Rami Vaknin, QE @ Red Hat, TLV, IL.


Follow ups

References