~corey.bryant/python-keystoneclient/1.6.0

« back to all changes in this revision

Viewing changes to doc/source/shell.rst

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-06-22 12:58:18 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20120622125818-yy6uzmhxu12q20cr
Tags: 2012.2~f2~20120621.121-0ubuntu
New upstream release. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
The :program:`keystone` shell utility
 
2
=========================================
 
3
 
 
4
.. program:: keystone
 
5
.. highlight:: bash
 
6
 
 
7
 
 
8
The :program:`keystone` shell utility interacts with OpenStack Keystone API
 
9
from the command line. It supports the entirety of the OpenStack Keystone API.
 
10
 
 
11
First, you'll need an OpenStack Keystone account. You get this by using the 
 
12
`keystone-manage` command in OpenStack Keystone.
 
13
 
 
14
You'll need to provide :program:`keystone` with your OpenStack username and
 
15
password. You can do this with the :option:`--os_username`, :option:`--os_password`.
 
16
You can optionally specify a :option:`--os_tenant_id` or :option:`--os_tenant_name`,
 
17
to scope your token to a specific tenant.  If you don't specify a tenant, you
 
18
will be scoped to your default tenant if you have one.  Instead of using 
 
19
options, it is easier to just set them as environment variables:
 
20
 
 
21
.. envvar:: OS_USERNAME
 
22
 
 
23
    Your Keystone username.
 
24
 
 
25
.. envvar:: OS_PASSWORD
 
26
 
 
27
    Your Keystone password.
 
28
 
 
29
.. envvar:: OS_TENANT_NAME
 
30
 
 
31
    Name of Keystone Tenant.
 
32
 
 
33
.. envvar:: OS_TENANT_ID
 
34
 
 
35
    ID of Keystone Tenant.
 
36
 
 
37
.. envvar:: OS_AUTH_URL
 
38
 
 
39
    The OpenStack API server URL.
 
40
 
 
41
.. envvar:: OS_IDENTITY_API_VERSION
 
42
 
 
43
    The OpenStack Identity API version.
 
44
 
 
45
For example, in Bash you'd use::
 
46
 
 
47
    export OS_USERNAME=yourname
 
48
    export OS_PASSWORD=yadayadayada
 
49
    export OS_TENANT_NAME=myproject
 
50
    export OS_AUTH_URL=http://example.com:5000/v2.0/
 
51
    export OS_IDENTITY_API_VERSION=2.0
 
52
 
 
53
From there, all shell commands take the form::
 
54
 
 
55
    keystone <command> [arguments...]
 
56
 
 
57
Run :program:`keystone help` to get a full list of all possible commands,
 
58
and run :program:`keystone help <command>` to get detailed help for that
 
59
command.