Advertisement
Guest User

Untitled

a guest
Jan 29th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. [root@sandbox glance]# curl -d '{"auth": {"tenantName": "service", "passwordCredentials":{"username": "glance", "password": "glance"}}}' -H "Content-type: application/json" http://192.168.1.51:35357/v2.0/tokens | python -mjson.tool
  2. % Total % Received % Xferd Average Speed Time Time Time Current
  3. Dload Upload Total Spent Left Speed
  4. 104 2416 100 2416 0 103 28291 1206 --:--:-- --:--:-- --:--:-- 28555
  5. {
  6. "access": {
  7. "metadata": {
  8. "is_admin": 0,
  9. "roles": [
  10. "d38000b6af574feb8737a9409177e04d"
  11. ]
  12. },
  13. "serviceCatalog": [
  14. {
  15. "endpoints": [
  16. {
  17. "adminURL": "http://192.168.1.51:8774/v2/3605a45aa39045e49b57e4af0abe83fc",
  18. "id": "58a29bdb49774dcfa63e657b96202909",
  19. "internalURL": "http://192.168.1.51:8774/v2/3605a45aa39045e49b57e4af0abe83fc",
  20. "publicURL": "http://192.168.1.51:8774/v2/3605a45aa39045e49b57e4af0abe83fc",
  21. "region": "myregion"
  22. }
  23. ],
  24. "endpoints_links": [],
  25. "name": "nova",
  26. "type": "compute"
  27. },
  28. {
  29. "endpoints": [
  30. {
  31. "adminURL": "http://192.168.1.51:9292/v1",
  32. "id": "9bcd0e6b7e924007b5ed53b467bbb15f",
  33. "internalURL": "http://192.168.1.51:9292/v1",
  34. "publicURL": "http://192.168.1.51:9292/v1",
  35. "region": "myregion"
  36. }
  37. ],
  38. "endpoints_links": [],
  39. "name": "glance",
  40. "type": "image"
  41. },
  42. {
  43. "endpoints": [
  44. {
  45. "adminURL": "http://192.168.1.51:8776/v1/3605a45aa39045e49b57e4af0abe83fc",
  46. "id": "b34d3088379b4f578df5d98c53712366",
  47. "internalURL": "http://192.168.1.51:8776/v1/3605a45aa39045e49b57e4af0abe83fc",
  48. "publicURL": "http://192.168.1.51:8776/v1/3605a45aa39045e49b57e4af0abe83fc",
  49. "region": "myregion"
  50. }
  51. ],
  52. "endpoints_links": [],
  53. "name": "volume",
  54. "type": "volume"
  55. },
  56. {
  57. "endpoints": [
  58. {
  59. "adminURL": "http://192.168.1.51:8773/services/Admin",
  60. "id": "22c82fb92363442a92175750571f04cb",
  61. "internalURL": "http://192.168.1.51:8773/services/Cloud",
  62. "publicURL": "http://192.168.1.51:8773/services/Cloud",
  63. "region": "myregion"
  64. }
  65. ],
  66. "endpoints_links": [],
  67. "name": "ec2",
  68. "type": "ec2"
  69. },
  70. {
  71. "endpoints": [
  72. {
  73. "adminURL": "http://192.168.1.51:8080/v1",
  74. "id": "f8ea8e3483124a7db87550244e1093a9",
  75. "internalURL": "http://192.168.1.51:8080/v1/AUTH_3605a45aa39045e49b57e4af0abe83fc",
  76. "publicURL": "http://192.168.1.51:8080/v1/AUTH_3605a45aa39045e49b57e4af0abe83fc",
  77. "region": "myregion"
  78. }
  79. ],
  80. "endpoints_links": [],
  81. "name": "swift",
  82. "type": "object-store"
  83. },
  84. {
  85. "endpoints": [
  86. {
  87. "adminURL": "http://192.168.1.51:35357/v2.0",
  88. "id": "08cf32580b064657a9a58688d1aa8baf",
  89. "internalURL": "http://192.168.1.51:5000/v2.0",
  90. "publicURL": "http://192.168.1.51:5000/v2.0",
  91. "region": "myregion"
  92. }
  93. ],
  94. "endpoints_links": [],
  95. "name": "keystone",
  96. "type": "identity"
  97. }
  98. ],
  99. "token": {
  100. "expires": "2013-01-30T14:37:08Z",
  101. "id": "39751458a4944ce789b1231d56cd0bb3",
  102. "tenant": {
  103. "description": null,
  104. "enabled": true,
  105. "id": "3605a45aa39045e49b57e4af0abe83fc",
  106. "name": "service"
  107. }
  108. },
  109. "user": {
  110. "id": "0e54aecf6ab84346957add9c6517682b",
  111. "name": "glance",
  112. "roles": [
  113. {
  114. "name": "admin"
  115. }
  116. ],
  117. "roles_links": [],
  118. "username": "glance"
  119. }
  120. }
  121. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement