Ask Your Question

How to get AUTH_TOKEN?

asked 2014-04-11 05:42:46 -0500

anonymous user


updated 2014-04-11 05:43:48 -0500

When I use heatclient python API.

I have some question.

There is the heatclient python API guide. (link text)

But I don't know how to get AUTH_TOKEN.


edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2014-04-11 06:50:53 -0500

smaffulli gravatar image

You'll need to ask your Identity Service (Keystone) for one. Keep reading the documentation, you'll find answers to most questions.

edit flag offensive delete link more


I use the command like this "curl -i '' -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "devstack"}}}'"

ab6060118 gravatar imageab6060118 ( 2014-04-11 21:02:56 -0500 )edit

But I get the token like this

HTTP/1.1 200 OK Vary: X-Auth-Token

{"access": {"token": {"issued_at": "2014-04-12T02:04:40.751499", "expires": "2014-04-13T02:04:40Z", "id": "MIIS0QYJKoZIhvcNAQcCoIISwjCCEr4CAQExCTAHBgUrDgMCGjCCEScGCSqGSIb3DQEHAaCCERgEghEUeyJhY2Nlc3MiOiB7InRva2VuI....

why the ID is very long

ab6060118 gravatar imageab6060118 ( 2014-04-11 21:07:31 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-04-11 05:42:46 -0500

Seen: 274 times

Last updated: Apr 11 '14