此内容没有您所选择的语言版本。
Chapter 37. group
This chapter describes the commands under the group command.
37.1. group add user 复制链接链接已复制到粘贴板!
Add user to group
Usage:
openstack group add user [-h] [--group-domain <group-domain>]
[--user-domain <user-domain>]
<group> <user> [<user> ...]
openstack group add user [-h] [--group-domain <group-domain>]
[--user-domain <user-domain>]
<group> <user> [<user> ...]
| Value | Summary |
|---|---|
| <group> | Group to contain <user> (name or id) |
| <user> | User(s) to add to <group> (name or id) (repeat option to add multiple users) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --group-domain <group-domain> | Domain the group belongs to (name or id). this can be used in case collisions between group names exist. |
| --user-domain <user-domain> | Domain the user belongs to (name or id). this can be used in case collisions between user names exist. |
37.2. group contains user 复制链接链接已复制到粘贴板!
Check user membership in group
Usage:
openstack group contains user [-h] [--group-domain <group-domain>]
[--user-domain <user-domain>]
<group> <user>
openstack group contains user [-h] [--group-domain <group-domain>]
[--user-domain <user-domain>]
<group> <user>
| Value | Summary |
|---|---|
| <group> | Group to check (name or id) |
| <user> | User to check (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --group-domain <group-domain> | Domain the group belongs to (name or id). this can be used in case collisions between group names exist. |
| --user-domain <user-domain> | Domain the user belongs to (name or id). this can be used in case collisions between user names exist. |
37.3. group create 复制链接链接已复制到粘贴板!
Create new group
Usage:
| Value | Summary |
|---|---|
| <group-name> | New group name |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --domain <domain> | Domain to contain new group (name or id) |
| --description <description> | New group description |
| --or-show | Return existing group |
| 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. |
37.4. group delete 复制链接链接已复制到粘贴板!
Delete group(s)
Usage:
openstack group delete [-h] [--domain <domain>] <group> [<group> ...]
openstack group delete [-h] [--domain <domain>] <group> [<group> ...]
| Value | Summary |
|---|---|
| <group> | Group(s) to delete (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --domain <domain> | Domain containing group(s) (name or id) |
37.5. group list 复制链接链接已复制到粘贴板!
List groups
Usage:
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --domain <domain> | Filter group list by <domain> (name or id) |
| --user <user> | Filter group list by <user> (name or id) |
| --user-domain <user-domain> | Domain the user belongs to (name or id). this can be used in case collisions between user names exist. |
| --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. |
37.6. group remove user 复制链接链接已复制到粘贴板!
Remove user from group
Usage:
openstack group remove user [-h] [--group-domain <group-domain>]
[--user-domain <user-domain>]
<group> <user> [<user> ...]
openstack group remove user [-h] [--group-domain <group-domain>]
[--user-domain <user-domain>]
<group> <user> [<user> ...]
| Value | Summary |
|---|---|
| <group> | Group containing <user> (name or id) |
| <user> | User(s) to remove from <group> (name or id) (repeat option to remove multiple users) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --group-domain <group-domain> | Domain the group belongs to (name or id). this can be used in case collisions between group names exist. |
| --user-domain <user-domain> | Domain the user belongs to (name or id). this can be used in case collisions between user names exist. |
37.7. group set 复制链接链接已复制到粘贴板!
Set group properties
Usage:
openstack group set [-h] [--domain <domain>] [--name <name>]
[--description <description>]
<group>
openstack group set [-h] [--domain <domain>] [--name <name>]
[--description <description>]
<group>
| Value | Summary |
|---|---|
| <group> | Group to modify (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --domain <domain> | Domain containing <group> (name or id) |
| --name <name> | New group name |
| --description <description> | New group description |
37.8. group show 复制链接链接已复制到粘贴板!
Display group details
Usage:
openstack group show [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--noindent] [--prefix PREFIX]
[--max-width <integer>] [--fit-width]
[--print-empty] [--domain <domain>]
<group>
openstack group show [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--noindent] [--prefix PREFIX]
[--max-width <integer>] [--fit-width]
[--print-empty] [--domain <domain>]
<group>
| Value | Summary |
|---|---|
| <group> | Group to display (name or id) |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --domain <domain> | Domain containing <group> (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. |