此内容没有您所选择的语言版本。
Chapter 86. user
This chapter describes the commands under the user command.
86.1. user create 复制链接链接已复制到粘贴板!
Create new user
Usage:
| Value | Summary |
|---|---|
| <name> | New user name |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --domain <domain> | Default domain (name or id) |
| --project <project> | Default project (name or id) |
| --project-domain <project-domain> | Domain the project belongs to (name or id). this can be used in case collisions between project names exist. |
| --password <password> | Set user password |
| --password-prompt | Prompt interactively for password |
| --email <email-address> | Set user email address |
| --description <description> | User description |
| --enable | Enable user (default) |
| --disable | Disable user |
| --or-show | Return existing user |
| Value | Summary |
|---|---|
| -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | The output format, defaults to table |
| -c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --prefix PREFIX | Add a prefix to all variable names |
| Value | Summary |
|---|---|
| --max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
| --fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
| --print-empty | Print empty table if there is no data to show. |
86.2. user delete 复制链接链接已复制到粘贴板!
Delete user(s)
Usage:
openstack user delete [-h] [--domain <domain>] <user> [<user> ...]
openstack user delete [-h] [--domain <domain>] <user> [<user> ...]
| Value | Summary |
|---|---|
| <user> | User(s) to delete (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --domain <domain> | Domain owning <user> (name or id) |
86.3. user list 复制链接链接已复制到粘贴板!
List users
Usage:
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --domain <domain> | Filter users by <domain> (name or id) |
| --group <group> | Filter users by <group> membership (name or id) |
| --project <project> | Filter users by <project> (name or id) |
| --long | List additional fields in output |
| Value | Summary |
|---|---|
| -f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml} | The output format, defaults to table |
| -c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
| --sort-column SORT_COLUMN | Specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated |
| Value | Summary |
|---|---|
| --quote {all,minimal,none,nonnumeric} | When to include quotes, defaults to nonnumeric |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
| --fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
| --print-empty | Print empty table if there is no data to show. |
86.4. user password set 复制链接链接已复制到粘贴板!
Change current user password
Usage:
openstack user password set [-h] [--password <new-password>]
[--original-password <original-password>]
openstack user password set [-h] [--password <new-password>]
[--original-password <original-password>]
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --password <new-password> | New user password |
| --original-password <original-password> | Original user password |
86.5. user set 复制链接链接已复制到粘贴板!
Set user properties
Usage:
| Value | Summary |
|---|---|
| <user> | User to modify (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --name <name> | Set user name |
| --domain <domain> | Domain the user belongs to (name or id). this can be used in case collisions between user names exist. |
| --project <project> | Set default project (name or id) |
| --project-domain <project-domain> | Domain the project belongs to (name or id). this can be used in case collisions between project names exist. |
| --password <password> | Set user password |
| --password-prompt | Prompt interactively for password |
| --email <email-address> | Set user email address |
| --description <description> | Set user description |
| --enable | Enable user (default) |
| --disable | Disable user |
86.6. user show 复制链接链接已复制到粘贴板!
Display user details
Usage:
openstack user show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--noindent] [--prefix PREFIX]
[--max-width <integer>] [--fit-width]
[--print-empty] [--domain <domain>]
<user>
openstack user show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--noindent] [--prefix PREFIX]
[--max-width <integer>] [--fit-width]
[--print-empty] [--domain <domain>]
<user>
| Value | Summary |
|---|---|
| <user> | User to display (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --domain <domain> | Domain owning <user> (name or id) |
| Value | Summary |
|---|---|
| -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | The output format, defaults to table |
| -c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --prefix PREFIX | Add a prefix to all variable names |
| Value | Summary |
|---|---|
| --max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
| --fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
| --print-empty | Print empty table if there is no data to show. |