Skip to content

Commit 79f8ce6

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Command docs: ec2 credentials"
2 parents 9d5a7c7 + 4f7777c commit 79f8ce6

File tree

3 files changed

+107
-6
lines changed

3 files changed

+107
-6
lines changed
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
===============
2+
ec2 credentials
3+
===============
4+
5+
Identity v2
6+
7+
ec2 credentials create
8+
----------------------
9+
10+
Create EC2 credentials
11+
12+
.. program:: ec2 credentials create
13+
.. code-block:: bash
14+
15+
os ec2 credentials create
16+
[--project <project>]
17+
[--user <user>]
18+
19+
.. option:: --project <project>
20+
21+
Specify an alternate project (default: current authenticated project)
22+
23+
.. option:: --user <user>
24+
25+
Specify an alternate user (default: current authenticated user)
26+
27+
The :option:`--project` and :option:`--user` options are typically only
28+
useful for admin users, but may be allowed for other users depending on
29+
the policy of the cloud and the roles granted to the user.
30+
31+
ec2 credentials delete
32+
----------------------
33+
34+
Delete EC2 credentials
35+
36+
.. program:: ec2 credentials delete
37+
.. code-block:: bash
38+
39+
os ec2 credentials delete
40+
[--user <user>]
41+
<access-key>
42+
43+
.. option:: --user <user>
44+
45+
Specify a user
46+
47+
.. _ec2_credentials_delete-access-key:
48+
.. describe:: access-key
49+
50+
Credentials access key
51+
52+
The :option:`--user` option is typically only useful for admin users, but
53+
may be allowed for other users depending on the policy of the cloud and
54+
the roles granted to the user.
55+
56+
ec2 credentials list
57+
--------------------
58+
59+
List EC2 credentials
60+
61+
.. program:: ec2 credentials list
62+
.. code-block:: bash
63+
64+
os ec2 credentials list
65+
[--user <user>]
66+
67+
.. option:: --user <user>
68+
69+
Filter list by <user>
70+
71+
The :option:`--user` option is typically only useful for admin users, but
72+
may be allowed for other users depending on the policy of the cloud and
73+
the roles granted to the user.
74+
75+
ec2 credentials show
76+
--------------------
77+
78+
Display EC2 credentials details
79+
80+
.. program:: ec2 credentials show
81+
.. code-block:: bash
82+
83+
os ec2 credentials show
84+
[--user <user>]
85+
<access-key>
86+
87+
.. option:: --user <user>
88+
89+
Specify a user
90+
91+
.. _ec2_credentials_show-access-key:
92+
.. describe:: access-key
93+
94+
Credentials access key
95+
96+
The :option:`--user` option is typically only useful for admin users, but
97+
may be allowed for other users depending on the policy of the cloud and
98+
the roles granted to the user.

doc/source/commands.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ referring to both Compute and Volume quotas.
8080
* ``container``: Object Store - a grouping of objects
8181
* ``credentials``: (**Identity**) specific to identity providers
8282
* ``domain``: (**Identity**) a grouping of projects
83+
* ``ec2 cedentials``: (**Identity**) AWS EC2-compatibile credentials
8384
* ``endpoint``: (**Identity**) the base URL used to contact a specific service
8485
* ``extension``: (**Compute**, **Identity**, **Volume**) OpenStack server API extensions
8586
* ``flavor``: (**Compute**) pre-defined server configurations: ram, root disk, etc

openstackclient/identity/v2_0/ec2creds.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ def get_parser(self, prog_name):
3737
parser.add_argument(
3838
'--project',
3939
metavar='<project>',
40-
help=_('Specify a project [admin only]'),
40+
help=_('Specify an alternate project'
41+
' (default: current authenticated project)'),
4142
)
4243
parser.add_argument(
4344
'--user',
4445
metavar='<user>',
45-
help=_('Specify a user [admin only]'),
46+
help=_('Specify an alternate user'
47+
' (default: current authenticated user)'),
4648
)
4749
return parser
4850

@@ -95,7 +97,7 @@ def get_parser(self, prog_name):
9597
parser.add_argument(
9698
'--user',
9799
metavar='<user>',
98-
help=_('Specify a user [admin only]'),
100+
help=_('Specify a user'),
99101
)
100102
return parser
101103

@@ -125,7 +127,7 @@ def get_parser(self, prog_name):
125127
parser.add_argument(
126128
'--user',
127129
metavar='<user>',
128-
help=_('Specify a user [admin only]'),
130+
help=_('Specify a user'),
129131
)
130132
return parser
131133

@@ -154,7 +156,7 @@ def take_action(self, parsed_args):
154156

155157

156158
class ShowEC2Creds(show.ShowOne):
157-
"""Show EC2 credentials"""
159+
"""Display EC2 credentials details"""
158160

159161
log = logging.getLogger(__name__ + '.ShowEC2Creds')
160162

@@ -168,7 +170,7 @@ def get_parser(self, prog_name):
168170
parser.add_argument(
169171
'--user',
170172
metavar='<user>',
171-
help=_('Specify a user [admin only]'),
173+
help=_('Specify a user'),
172174
)
173175
return parser
174176

0 commit comments

Comments
 (0)