DRAFT - DRAFT - DRAFT - DRAFT - DRAFT - DRAFT - DRAFT - DRAFT -
Here is a curl command you can use to ensure that the Identity service is working:
curl -d '{"auth": {"tenantName": "adminTenant", "passwordCredentials":{"username": "adminUser", "password": "secretword"}}}' -H "Content-type: application/json" http://192.168.206.130:35357/v2.0/tokens | python -mjson.toolIn return, you should receive the token you created for the adminUser user.
...
"token": {
"expires": "2015-02-05T00:00:00",
"id": "11121314151617181920",
"tenant": {
"id": "2",
"name": "adminTenant"
}
}
...You can also get a token that expires in 24 hours using the adminUser account:
curl -d '{"auth": {"tenantName": "openstackDemo", "passwordCredentials":{"username": "adminUser", "password": "secretword"}}}' -H "Content-type: application/json" http://192.168.206.130:35357/v2.0/tokens | python -mjson.toolIn return, you get the endpoints and token listed.
{
"access": {
"serviceCatalog": [
{
"endpoints": [
{
"adminURL": "http://192.168.206.130:8774/v1.1/1",
"internalURL": "http://192.168.206.130:8774/v1.1/1",
"publicURL": "http://192.168.206.130:8774/v1.1/1",
"region": "RegionOne"
}
],
"name": "nova",
"type": "compute"
},
{
"endpoints": [
{
"adminURL": "http://192.168.206.130:9292/v1",
"internalURL": "http://192.168.206.130:9292/v1",
"publicURL": "http://192.168.206.130:9292/v1",
"region": "RegionOne"
}
],
"name": "glance",
"type": "image"
},
{
"endpoints": [
{
"adminURL": "http://192.168.206.130:35357/v2.0",
"internalURL": "http://192.168.206.130:5000/v2.0",
"publicURL": "http://192.168.206.130:5000/v2.0",
"region": "RegionOne"
}
],
"name": "keystone",
"type": "identity"
}
],
"token": {
"expires": "2012-01-12T12:27:39.966676",
"id": "6c2085d2-c226-429a-829b-8e313fe79c73",
"tenant": {
"id": "1",
"name": "openstackDemo"
}
},
"user": {
"id": "2",
"name": "demoUser",
"roles": [
{
"id": "2",
"name": "Member",
"tenantId": "1"
},
{
"id": "2",
"name": "Member"
}
]
}
}
}

