< < | # yum install curl
# curl -d '{"auth": {"tenantName": "adminTenant", "passwordCredentials":{"username": "adminUser", "password": "************"}}}' -H "Content-type:application/json" http://hostname1.domain:35357/v2.0/tokens | python -mjson.tool
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
106 2446 101 2446 0 120 27990 1373 --:--:-- --:--:-- --:--:-- 27046
{
"access": {
"serviceCatalog": [
{
"endpoints": [
{
-
-
-
-
-
-
-
- "adminURL"
- "http://hostname1.domain:8774/v2/c8854bd3d15f4f479476d0cf58ef7db2",
- "internalURL"
- "http://hostname1.domain:8774/v2/c8854bd3d15f4f479476d0cf58ef7db2",
- "publicURL"
- "http://hostname1.domain:8774/v2/c8854bd3d15f4f479476d0cf58ef7db2",
- "region"
- "RegionOne" } ], "endpoints_links": [], "name": "nova", "type": "compute" }, { "endpoints": [ {
- "adminURL"
- "http://hostname1.domain:9292/v1/",
- "internalURL"
- "http://hostname1.domain:9292/v1/",
- "publicURL"
- "http://hostname1.domain:9292/v1/",
- "region"
- "RegionOne" } ], "endpoints_links": [], "name": "glance", "type": "image" }, { "endpoints": [ {
- "adminURL"
- "http://hostname1.domain:8776/v1/c8854bd3d15f4f479476d0cf58ef7db2",
- "internalURL"
- "http://hostname1.domain:8776/v1/c8854bd3d15f4f479476d0cf58ef7db2",
- "publicURL"
- "http://hostname1.domain:8776/v1/c8854bd3d15f4f479476d0cf58ef7db2",
- "region"
- "RegionOne" } ], "endpoints_links": [], "name": "volume", "type": "volume" }, { "endpoints": [ {
- "adminURL"
- "http://hostname1.domain:8773/services/Admin",
- "internalURL"
- "http://hostname1.domain:8773/services/Cloud",
- "publicURL"
- "http://hostname1.domain:8773/services/Cloud",
- "region"
- "RegionOne" } ], "endpoints_links": [], "name": "keystone", "type": "identity" } ], "token": {
- "expires"
- "2012-10-11T09:49:27Z",
- "id"
- "1d9c15ed60414a92bc39d3b989d5bcae",
- "tenant"
- { "description": "Admin Tenant Description", "enabled": true, "id": "c8854bd3d15f4f479476d0cf58ef7db2", "name": "adminTenant" } }, "user": {
- "id"
- "4b6da6bfa3634c819fc1abc022e88a22",
- "name"
- "adminUser",
- "roles"
- [ { "id": "ad6dc79aa39c4249ab63840f9591f99d", "name": "admin" } ],
- "roles_links"
- [],
- "username"
- "adminUser" } }
}
</verbatim |