Este conteúdo não está disponível no idioma selecionado.
Chapter 57. role
This chapter describes the commands under the role command.
57.1. role add Copiar o linkLink copiado para a área de transferência!
Usage:
Add role to project:user
| Value | Summary |
|---|---|
| <role> | Role to add to <project>:<user> (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --project <project> | Include <project> (name or id) |
| --user <user> | Include <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 |
|---|---|
| --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. |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --prefix PREFIX | Add a prefix to all variable names |
57.2. role assignment list Copiar o linkLink copiado para a área de transferência!
Usage:
List role assignments
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --user <user> | User to filter (name or id) |
| --project <project> | Project to filter (name or id) |
| --names | Display names instead of ids |
| --auth-user | Only list assignments for the authenticated user |
| --auth-project | Only list assignments for the project to which the authenticated user’s token is scoped |
| 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 |
|---|---|
| --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. |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --quote {all,minimal,none,nonnumeric} | when to include quotes, defaults to nonnumeric |
57.3. role create Copiar o linkLink copiado para a área de transferência!
Usage:
Create new role
| Value | Summary |
|---|---|
| <name> | New role name |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --or-show | Return existing role |
| 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 |
|---|---|
| --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. |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --prefix PREFIX | Add a prefix to all variable names |
57.4. role delete Copiar o linkLink copiado para a área de transferência!
Usage:
openstack role delete [-h] <role> [<role> ...]
openstack role delete [-h] <role> [<role> ...]
Delete role(s)
| Value | Summary |
|---|---|
| <role> | Role(s) to delete (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
57.5. role list Copiar o linkLink copiado para a área de transferência!
Usage:
List roles
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --project <project> | Filter roles by <project> (name or id) |
| --user <user> | Filter roles by <user> (name or id) |
| 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 |
|---|---|
| --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. |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --quote {all,minimal,none,nonnumeric} | when to include quotes, defaults to nonnumeric |
57.6. role remove Copiar o linkLink copiado para a área de transferência!
Usage:
openstack role remove [-h] --project <project> --user <user> <role>
openstack role remove [-h] --project <project> --user <user> <role>
Remove role from project : user
| Value | Summary |
|---|---|
| <role> | Role to remove (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --project <project> | Include <project> (name or id) |
| --user <user> | Include <user> (name or id) |
57.7. role show Copiar o linkLink copiado para a área de transferência!
Usage:
openstack role show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--fit-width]
[--print-empty] [--noindent] [--prefix PREFIX]
<role>
openstack role show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN]
[--max-width <integer>] [--fit-width]
[--print-empty] [--noindent] [--prefix PREFIX]
<role>
Display role details
| Value | Summary |
|---|---|
| <role> | Role to display (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| 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 |
|---|---|
| --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. |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --prefix PREFIX | Add a prefix to all variable names |