← Back to team overview

openstack team mailing list archive

Re: swift keystone help

 

On Thu, Feb 23, 2012 at 11:23 PM, Paras pradhan <pradhanparas@xxxxxxxxx> wrote:
> Now I have keystone configured at http://192.168.122.14:5000/v2.0  how
> to use curl in this case to get a token?

Example from devstack:
    TOKEN=`curl -s -d  "{\"auth\":{\"passwordCredentials\":
{\"username\": \"$ADMIN_USER\", \"password\": \"$ADMIN_PASSWORD\"},
\"tenantName\": \"$ADMIN_TENANT\"}}" -H "Content-type:
application/json" http://$HOST_IP:5000/v2.0/tokens | python -c "import
sys; import json; tok = json.loads(sys.stdin.read()); print
tok['access']['token']['id'];"`


Follow ups

References