Guest User

Untitled

a guest
Feb 28th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. curl -d "{\"auth\":{\"passwordCredentials\":{\"username\": \"admin\", \"password\": \"$KEYSTONE_ADMIN_USER_PASSWORD\"}}}" \
  2. -H "Content-type: application/json" http://localhost:35357/v2.0/tokens|python -mjson.tool
  3.  
  4. {
  5. "access": {
  6. "serviceCatalog": {},
  7. "token": {
  8. "expires": "2012-03-31T14:28:31Z",
  9. "id": "b792901cde5943a1b23bbbeff346a840"
  10. },
  11. "user": {
  12. "id": "8d5ec359309e477fad8ea45e59e2616f",
  13. "name": "admin",
  14. "roles": [],
  15. "roles_links": [],
  16. "username": "admin"
  17. }
  18. }
  19. }
  20.  
  21. curl -H "X-Auth-Token:d57912cce30a43adac115c71fb783f95" http://localhost:5000/v2.0/tenants| python -mjson.tool
  22. {
  23. "tenants": [
  24. {
  25. "description": null,
  26. "enabled": true,
  27. "id": "45de95752dba4b1dbca00ff39992cde4",
  28. "name": "jumpstart"
  29. }
  30. ],
  31. "tenants_links": []
  32. }
Advertisement
Add Comment
Please, Sign In to add comment