Documentation - API QuickStart tenant_id unclear
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-api-site |
Fix Released
|
Medium
|
Anne Gentle |
Bug Description
The API QuickStart documentation currently states:
>Use the Identity API to request a list of endpoints, as follows:
>
>$ curl -i -X GET http://
And the next example is
>Use the Compute API to list servers, as follows:
>
>$ curl -v -H "X-Auth-
1) There could be better consistency between commands (the -H X-Auth-Token options both being in the same place, one command uses -i, the other -v, are these necessary per API or can we use just -i or just -v (or neither?), and finally the IP addresses are different between the two - I'm on DevStack, so I'm not sure if this is expected with a full deploy or not - even if this is expected it could be documented; and some of the curl requests from earlier on this page use 127.0.01....)
2) Even modifying for my token and IP, the 'Use the Compute API to list servers' command fails. I believe I need a <tenant_id> but the documentation does not make it clear as to what should go in there. I believe the method for determining the tenant_ids should be included as well.
-------
Built: 2014-11-14T18:54:30 00:00
git SHA: 7ab9996f2b8287e
URL: http://
source File: file:/home/
xml:id: openstack-
affects: | openstack-manuals → openstack-api-site |
Changed in openstack-api-site: | |
milestone: | none → kilo |
The API Quick Start should work with Trystack, and I haven't tested with Devstack.
That said, I've noticed that the Trystack call may not be quite right either, and I agree about consistency.
I know this will work with Trystack:
curl -s -X POST $OS_AUTH_URL/tokens \ tials": {"username": "$OS_USERNAME", "password": "$OS_PASSWORD"}}}'
-H "Content-Type: application/json" \
-d '{"auth": {"tenantName": "$OS_TENANT_NAME", "passwordCreden
I also want to add the tip that if you don't know the Tenant, you can send a request with a "" for the tenantName like so:
curl -s -X POST http:// 8.21.28. 222:5000/ v2.0/tokens \ tials": {"username": "$OS_USERNAME", "password": "$OS_PASSWORD"}}}'
-H "Content-Type: application/json" \
-d '{"auth": {"tenantName": "", "passwordCreden