diff --git a/api-quick-start/src/docbkx/api-quick-start-intro.xml b/api-quick-start/src/docbkx/api-quick-start-intro.xml index bb55a62d7..f297dc1fa 100644 --- a/api-quick-start/src/docbkx/api-quick-start-intro.xml +++ b/api-quick-start/src/docbkx/api-quick-start-intro.xml @@ -54,14 +54,14 @@ http://hostname:port/v2.0/tokens. You send your user name, password, and what group or account you are with (the "tenant" in auth-speak). - curl -k -X 'POST' -v https://nova-api.trystack.org:5443/v2.0/tokens -d '{"auth":{"passwordCredentials":{"username": "joecool", "password":"coolword"}, "tenantId":"5"}}' -H 'Content-type: application/json' + curl -k -X 'POST' -v https://arm.trystack.org:5443/v2.0/tokens -d '{"auth":{"passwordCredentials":{"username": "joecool", "password":"coolword"}, "tenantId":"5"}}' -H 'Content-type: application/json' The server returns a response in which the 24-hours token is contained. Use that token to send API requests with the X-Auth-Token included as an header field. - curl -k -D - -H "X-Auth-Token: 7d2f63fd-4dcc-4752-8e9b-1d08f989cc00" -X 'GET' -v https://nova-api.trystack.org:9774/v1.1/296/extensions -H 'Content-type: application/json' + curl -k -D - -H "X-Auth-Token: 7d2f63fd-4dcc-4752-8e9b-1d08f989cc00" -X 'GET' -v https://arm.trystack.org:9774/v1.1/296/extensions -H 'Content-type: application/json' @@ -81,13 +81,14 @@ if you know your tenantId: $ curl -X 'POST' -v -https://nova-api.trystack.org:5443/v2.0/tokens -d +https://arm.trystack.org:5443/v2.0/tokens -d '{"auth":{"passwordCredentials":{"username": "joecool", "password":"coolword"}, "tenantId":"5"}}' -H 'Content-type: application/json' In return, you should get a 200 OK response with a token in the form of "id": "cd427a33-bb4a-4079-a6d7-0ae148bdeda9" and an expiration - date 24 hours from now. Here's what it looks like: + date 24 hours from now. Here's what it looks like, the + exact response may vary from cloud-to-cloud: { @@ -96,9 +97,9 @@ https://nova-api.trystack.org:5443/v2.0/tokens -d { "endpoints": [ { - "adminURL": "https://nova-api.trystack.org:9774/v1.1/1", - "internalURL": "https://nova-api.trystack.org:9774/v1.1/1", - "publicURL": "https://nova-api.trystack.org:9774/v1.1/1", + "adminURL": "https://arm.trystack.org:9774/v1.1/1", + "internalURL": "https://arm.trystack.org:9774/v1.1/1", + "publicURL": "https://arm.trystack.org:9774/v1.1/1", "region": "RegionOne" } ], @@ -120,7 +121,7 @@ https://nova-api.trystack.org:5443/v2.0/tokens -d { "endpoints": [ { - "adminURL": "https://nova-api.trystack.org:5443/v2.0", + "adminURL": "https://arm.trystack.org:5443/v2.0", "internalURL": "https://keystone.trystack.org:5000/v2.0", "publicURL": "https://keystone.trystack.org:5000/v2.0", "region": "RegionOne" @@ -140,7 +141,7 @@ https://nova-api.trystack.org:5443/v2.0/tokens -d }, "user": { "id": "14", - "name": "annegentle", + "name": "joecool", "roles": [ { "id": "2", @@ -157,7 +158,7 @@ https://nova-api.trystack.org:5443/v2.0/tokens -d '{"auth":{"passwordCredentials":{"username": "usern4me", "password":"passwerd"}, "tenantId":""}}' Then, with the auth token that returns, fill in a request using the X-Auth-Token header as an authentication to get your tenantId: - curl -H "X-Auth-Token:6de6d45d-d198-4222-9b4c-7a280aa24999" http://arm.trystack.org:5000/v2.0/tenants + curl -H "X-Auth-Token:6de6d45d-d198-4222-9b4c-7a280aa24888" http://arm.trystack.org:5000/v2.0/tenants In return, you get a list of tenants:{ "tenants_links": [],