Skip to content

Instantly share code, notes, and snippets.

@dgivens
Last active December 30, 2015 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgivens/d45a8a557822f5b02ef3 to your computer and use it in GitHub Desktop.
Save dgivens/d45a8a557822f5b02ef3 to your computer and use it in GitHub Desktop.
(keystone)[STAGING] heat-ops@auth:/opt/keystone $ keystone endpoint-list
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+----------------------------------+---------+--------------------------------------------------+-------------+----------+----------------------------------+
| id | region | publicurl | internalurl | adminurl | service_id |
+----------------------------------+---------+--------------------------------------------------+-------------+----------+----------------------------------+
| 44f6034b2a7f452cba7bb7bf9fdcb5dc | Staging | https://api.staging.rs-heat.com/v1/%(tenant_id)s | | | b7f90f3e589048398fa457f5542f936b |
| d02a444927f6420199266c8202c89ef3 | QA | https://api.qa.rs-heat.com/v1/%(tenant_id)s | | | b7f90f3e589048398fa457f5542f936b |
+----------------------------------+---------+--------------------------------------------------+-------------+----------+----------------------------------+
(keystone)[STAGING] heat-ops@auth:/opt/keystone $ keystone service-list
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+----------------------------------+--------------------+---------------+---------------------+
| id | name | type | description |
+----------------------------------+--------------------+---------------+---------------------+
| b7f90f3e589048398fa457f5542f936b | cloudOrchestration | orchestration | Cloud Orchestration |
+----------------------------------+--------------------+---------------+---------------------+
(keystone)[STAGING] heat-ops@auth:/opt/keystone $ keystone --d catalog
REQ: curl -i -X POST http://127.0.0.1:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient"
REQ BODY: {"auth": {"passwordCredentials": {"username": "heatdev", "password": "nope"}}}
RESP: [200] CaseInsensitiveDict({'date': 'Mon, 09 Dec 2013 15:58:30 GMT', 'vary': 'X-Auth-Token', 'content-length': '1317', 'content-type': 'application/json'})
RESP BODY: {"access": {"token": {"issued_at": "2013-12-09T15:58:30.038200", "expires": "2013-12-10T15:58:30Z", "id": "nope"}, "serviceCatalog": [], "user": {"username": "heatdev", "roles_links": [], "id": "c3c2627da45f4a8eb7c92f8707a96d64", "roles": [], "name": "heatdev"}, "metadata": {"is_admin": 0, "roles": []}}}
$ curl -s -d '{"auth":{"passwordCredentials":{"username": "heatdev", "password": "nope"}}}' -H "Content-type: application/json" http://localhost:35357/v2.0/tokens | python -m json.tool
{
"access": {
"metadata": {
"is_admin": 0,
"roles": []
},
"serviceCatalog": [],
"token": {
"expires": "2013-12-10T16:45:13Z",
"id": "nope",
"issued_at": "2013-12-09T16:45:13.880814"
},
"user": {
"id": "c3c2627da45f4a8eb7c92f8707a96d64",
"name": "heatdev",
"roles": [],
"roles_links": [],
"username": "heatdev"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment