69.14. 共享组创建


创建新共享组

使用方法:

openstack share group create [-h] [-f {json,shell,table,value,yaml}]
                                    [-c COLUMN] [--noindent] [--prefix PREFIX]
                                    [--max-width <integer>] [--fit-width]
                                    [--print-empty] [--name <name>]
                                    [--description <description>]
                                    [--share-types <share-types> [<share-types> ...]]
                                    [--share-group-type <share-group-type>]
                                    [--share-network <share-network>]
                                    [--source-share-group-snapshot <source-share-group-snapshot>]
                                    [--availability-zone <availability-zone>]
                                    [--wait]
Copy to Clipboard Toggle word wrap

Expand
表 69.58. 命令参数
valueSummary

-h, --help

显示帮助信息并退出

--name <name>

共享组名称

--description <description>

共享组描述.

--share-types <share-types> [<share-types> …​]

共享类型的名称或 ID。

--share-group-type <share-group-type>

要创建的共享组类型名称或 id。

--share-network <share-network>

指定共享网络名称或 id

--source-share-group-snapshot <source-share-group-snapshot>

共享组快照名称或 id 从中创建共享组。

--availability-zone <availability-zone>

应该在其中创建组的可选可用区

--wait

等待共享组创建

Expand
表 69.59. 输出格式选项
valueSummary

-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}

输出格式,默认为 table

-c COLUMN, --column COLUMN

指定要包含的列,可以重复显示多个列

Expand
表 69.60. JSON 格式器选项
valueSummary

--noindent

是否禁用对 json 的缩进

Expand
表 69.61. shell 格式化器选项
valueSummary

--prefix PREFIX

在所有变量名称中添加前缀

Expand
表 69.62. 表格式器选项
valueSummary

--max-width <integer>

最大显示宽度,即 <1 来禁用。您还可以使用 CLIFF_MAX_TERM_WIDTH 环境变量,但参数具有优先权。

--fit-width

将表与显示宽度匹配。如果 --max 宽度大于 0,则表示表示。将环境变量 CLIFF_FIT_WIDTH=1 设置为 always 启用

--print-empty

如果没有要显示数据,则打印空表。

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat