You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* All long options names begin with two dashes ('--') and use a single dash
16
-
('-') internally between words (--like-this). Underscores ('_') are not used
17
-
in option names.
15
+
* All long options names begin with two dashes (``--``) and use a single dash
16
+
(``-``) internally between words (``--like-this``). Underscores (``_``) are
17
+
not used in option names.
18
18
19
19
20
20
Global Options
@@ -25,11 +25,12 @@ invocation regardless of action to be performed. They include authentication
25
25
credentials and API version selection. Most global options have a corresponding
26
26
environment variable that may also be used to set the value. If both are
27
27
present, the command-line option takes priority. The environment variable
28
-
names are derived from the option name by dropping the leading dashes ('--'),
29
-
converting each embedded dash ('-') to an underscore ('_'), and converting
28
+
names are derived from the option name by dropping the leading dashes (``--``),
29
+
converting each embedded dash (``-``) to an underscore (``_``), and converting
30
30
to upper case.
31
31
32
-
For example, ``--os-username`` can be set from the environment via ``OS_USERNAME``.
32
+
For example, the default value of ``--os-username`` can be set by defining
33
+
the environment variable ``OS_USERNAME``.
33
34
34
35
35
36
Command Object(s) and Action
@@ -64,39 +65,46 @@ the command and any positional arguments the command requires.
64
65
Actions
65
66
-------
66
67
67
-
The actions used by OpenStackClient are defined below to provide a consistent meaning to each action. Many of them have logical opposite actions. Those actions with an opposite action are noted in parens if applicable.
68
-
69
-
* authorize - authorize a token (used in OAuth)
70
-
* add (remove) - add some object to a container object; the command is built in the order of "container add object" (<container> <object>), the positional arguments appear in the same order
71
-
* attach (detach) - deprecated; use add/remove
72
-
* create (delete) - create a new occurrence of the specified object
73
-
* delete (create) - delete a specific occurrence of the specified object
74
-
* detach (attach) - deprecated; use add/remove
75
-
* list - display summary information about multiple objects
76
-
* lock (unlock)
77
-
* migrate - move a server to a different host; --live performs a live migration if possible
78
-
* pause (unpause) - stop a server and leave it in memory
79
-
* reboot - forcibly reboot a server
80
-
* rebuild - rebuild a server using (most of) the same arguments as in the original create
81
-
* remove (add) - remove an object from a group of objects
82
-
* rescue (unrescue) - reboot a server in a special rescue mode allowing access to the original disks
83
-
* resize - change a server's flavor
84
-
* resume (suspend) - return a suspended server to running state
85
-
* save - download an object locally
86
-
* set (unset) - set a property on the object, formerly called metadata
87
-
* show - display detailed information about the specific object
88
-
* suspend (resume) - stop a server and save to disk freeing memory
89
-
* unlock (lock)
90
-
* unpause (pause) - return a paused server to running state
91
-
* unrescue (rescue) - return a server to normal boot mode
92
-
* unset (set) - remove an attribute of the object
68
+
The actions used by OpenStackClient are defined below to provide a consistent
69
+
meaning to each action. Many of them have logical opposite actions.
70
+
Those actions with an opposite action are noted in parens if applicable.
71
+
72
+
* ``authorize`` - authorize a token (used in OAuth)
73
+
* ``add`` (``remove``) - add some object to a container object; the command
74
+
is built in the order of ``container add object <container> <object>``,
75
+
the positional arguments appear in the same order
76
+
* ``create`` (``delete``) - create a new occurrence of the specified object
77
+
* ``delete`` (``create``) - delete a specific occurrence of the specified object
78
+
* ``issue`` (``revoke``) - issue a token
79
+
* ``list`` - display summary information about multiple objects
80
+
* ``lock`` (``unlock``)
81
+
* ``migrate`` - move a server to a different host; ``--live`` performs a
82
+
live migration if possible
83
+
* ``pause`` (``unpause``) - stop a server and leave it in memory
84
+
* ``reboot`` - forcibly reboot a server
85
+
* ``rebuild`` - rebuild a server using (most of) the same arguments as in the original create
86
+
* ``remove`` (``add``) - remove an object from a group of objects
87
+
* ``rescue`` (``unrescue``) - reboot a server in a special rescue mode allowing access to the original disks
88
+
* ``resize`` - change a server's flavor
89
+
* ``resume`` (``suspend``) - return a suspended server to running state
90
+
* ``revoke`` (``issue``) - revoke a token
91
+
* ``save`` - download an object locally
92
+
* ``set`` (``unset``) - set a property on the object, formerly called metadata
93
+
* ``show`` - display detailed information about the specific object
94
+
* ``suspend`` (``resume``) - stop a server and save to disk freeing memory
95
+
* ``unlock`` (``lock``)
96
+
* ``unpause`` (``pause``) - return a paused server to running state
97
+
* ``unrescue`` (``rescue``) - return a server to normal boot mode
98
+
* ``unset`` (``set``) - remove an attribute of the object
99
+
93
100
94
101
Implementation
95
102
==============
96
103
97
104
The command structure is designed to support seamless addition of plugin
98
105
command modules via ``setuptools`` entry points. The plugin commands must
99
-
be subclasses of Cliff's command.Command object.
106
+
be subclasses of Cliff's command.Command object. See :doc:`plugins` for
0 commit comments