Merge "Update keystone v2/tokenauth example"
This commit is contained in:
commit
0ff1414609
@ -12,25 +12,25 @@ example, the :command:`openstack user list` and
|
||||
.. code-block:: bash
|
||||
|
||||
# Using token auth env variables
|
||||
export OS_SERVICE_ENDPOINT=http://127.0.0.1:5000/v2.0/
|
||||
export OS_SERVICE_TOKEN=secrete_token
|
||||
export OS_TOKEN=secret
|
||||
export OS_URL=http://127.0.0.1:5000/v3/
|
||||
openstack user list
|
||||
openstack project create demo --domain default
|
||||
|
||||
# Using token auth flags
|
||||
openstack --os-token secrete --os-endpoint http://127.0.0.1:5000/v2.0/ user list
|
||||
openstack --os-token secrete --os-endpoint http://127.0.0.1:5000/v2.0/ project create demo
|
||||
openstack --os-token secret --os-url http://127.0.0.1:5000/v3/ user list
|
||||
openstack --os-token secret --os-url http://127.0.0.1:5000/v3/ project create demo
|
||||
|
||||
# Using user + password + project_name env variables
|
||||
export OS_USERNAME=admin
|
||||
export OS_PASSWORD=secrete
|
||||
export OS_PASSWORD=secret
|
||||
export OS_PROJECT_NAME=admin
|
||||
openstack user list
|
||||
openstack project create demo --domain default
|
||||
|
||||
# Using user + password + project-name flags
|
||||
openstack --os-username admin --os-password secrete --os-project-name admin user list
|
||||
openstack --os-username admin --os-password secrete --os-project-name admin project create demo
|
||||
openstack --os-username admin --os-password secret --os-project-name admin user list
|
||||
openstack --os-username admin --os-password secret --os-project-name admin project create demo
|
||||
|
||||
|
||||
Logging
|
||||
|
Loading…
Reference in New Issue
Block a user