Use OS_TENANT_NAME variable for API calls
Replace the text tenant_id in url requests with the previously defined environment variable. Change-Id: I3ee61a072a7544e4690e802fa83597d528dbdb11
This commit is contained in:
parent
37b28b7386
commit
b72481ba74
@ -446,7 +446,7 @@ Use the Compute API to list images:
|
||||
.. code-block:: console
|
||||
|
||||
$ curl -s -H "X-Auth-Token: $OS_TOKEN" \
|
||||
http://8.21.28.222:8774/v2/tenant_id/images \
|
||||
http://8.21.28.222:8774/v2/$OS_TENANT_NAME/images \
|
||||
| python -m json.tool
|
||||
|
||||
.. code-block:: json
|
||||
@ -556,7 +556,7 @@ Use the Compute API to list servers:
|
||||
.. code-block:: console
|
||||
|
||||
$ curl -s -H "X-Auth-Token: $OS_TOKEN" \
|
||||
http://8.21.28.222:8774/v2/tenant_id/servers \
|
||||
http://8.21.28.222:8774/v2/$OS_TENANT_NAME/servers \
|
||||
| python -m json.tool
|
||||
|
||||
.. code-block:: json
|
||||
|
Loading…
x
Reference in New Issue
Block a user