75.41. 共享类型 create
创建新共享类型
使用方法:
openstack share type create [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--noindent] [--prefix PREFIX]
[--max-width <integer>] [--fit-width]
[--print-empty]
[--description <description>]
[--snapshot-support <snapshot_support>]
[--create-share-from-snapshot-support <create_share_from_snapshot_support>]
[--revert-to-snapshot-support <revert_to_snapshot_support>]
[--mount-snapshot-support <mount_snapshot_support>]
[--extra-specs [<key=value> ...]]
[--public <public>]
<name> <spec_driver_handles_share_servers>
openstack share type create [-h] [-f {json,shell,table,value,yaml}]
[-c COLUMN] [--noindent] [--prefix PREFIX]
[--max-width <integer>] [--fit-width]
[--print-empty]
[--description <description>]
[--snapshot-support <snapshot_support>]
[--create-share-from-snapshot-support <create_share_from_snapshot_support>]
[--revert-to-snapshot-support <revert_to_snapshot_support>]
[--mount-snapshot-support <mount_snapshot_support>]
[--extra-specs [<key=value> ...]]
[--public <public>]
<name> <spec_driver_handles_share_servers>
| value | Summary |
|---|---|
| <name> | 共享类型名称 |
| <spec_driver_handles_share_servers> | 所需的额外规格。有效的值为 true 和 false |
| value | Summary |
|---|---|
| -h, --help | 显示帮助信息并退出 |
| --description <description> | 共享类型 description. 仅适用于 microversion >= 2.41。 |
| --snapshot-support <snapshot_support> | 用于创建共享快照的功能过滤后端的布尔值额外规格。 |
| --create-share-from-snapshot-support <create_share_from_snapshot_support> | 用于按其从快照创建共享的能力过滤后端的额外规格。 |
| --revert-to-snapshot-support <revert_to_snapshot_support> | 用于按其将共享恢复到快照的能力过滤后端的布尔值。(默认为 False)。 |
| --mount-snapshot-support <mount_snapshot_support> | 布尔值额外规格用于根据后端过滤功能来挂载共享快照。(默认为 False)。 |
| --extra-specs [<key=value> …] | 将用于创建共享类型的额外 specs 键和值。OPTIONAL: Default=None. example --extra-specs thin_provisioning= <is> True, replication_type=readable. |
| --public <public> | make 类型可以被公共访问(默认为 true)。 |
| value | Summary |
|---|---|
| -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | 输出格式,默认为 table |
| -c COLUMN, --column COLUMN | 指定要包含的列,可以重复显示多个列 |
| value | Summary |
|---|---|
| --noindent | 是否禁用对 json 的缩进 |
| value | Summary |
|---|---|
| --prefix PREFIX | 在所有变量名称中添加前缀 |
| value | Summary |
|---|---|
| --max-width <integer> | 最大显示宽度,即 <1 来禁用。您还可以使用 CLIFF_MAX_TERM_WIDTH 环境变量,但参数具有优先权。 |
| --fit-width | 将表与显示宽度匹配。如果 --max 宽度大于 0,则表示表示。将环境变量 CLIFF_FIT_WIDTH=1 设置为 always 启用 |
| --print-empty | 如果没有要显示数据,则打印空表。 |