69.111. 共享快照列表
列出快照
使用方法:
openstack share snapshot list [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent] [--max-width <integer>]
[--fit-width] [--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--all-projects] [--name <name>]
[--description <description>]
[--status <status>] [--share <share>]
[--usage <usage>]
[--limit <num-snapshots>]
[--marker <snapshot>]
[--sort <key>[:<direction>]]
[--name~ <name~>]
[--description~ <description~>]
[--detail] [--property <key=value>]
openstack share snapshot list [-h] [-f {csv,json,table,value,yaml}]
[-c COLUMN]
[--quote {all,minimal,none,nonnumeric}]
[--noindent] [--max-width <integer>]
[--fit-width] [--print-empty]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--all-projects] [--name <name>]
[--description <description>]
[--status <status>] [--share <share>]
[--usage <usage>]
[--limit <num-snapshots>]
[--marker <snapshot>]
[--sort <key>[:<direction>]]
[--name~ <name~>]
[--description~ <description~>]
[--detail] [--property <key=value>]
| value | Summary |
|---|---|
| -h, --help | 显示帮助信息并退出 |
| --all-projects | 显示所有项目的快照(仅限管理员)。 |
| --name <name> | 按名称过滤结果。 |
| --description <description> | 根据描述过滤结果。仅适用于 microversion >= 2.36。 |
| --status <status> | 根据状态过滤结果 |
| --share <share> | 根据以下过滤结果的共享名称或 ID。 |
| --usage <usage> | 用于根据使用情况过滤快照的选项。 |
| --limit <num-snapshots> | 限制返回的快照数量 |
| --marker <snapshot> | 上一页的最后共享 ID |
| --sort <key>[:<direction>] | 通过所选键和方向(默认:name:asc)对输出进行排序,可以用逗号分隔多个键和方向 |
| --name~ <name~> | 过滤与共享快照名称模式匹配的结果。仅适用于 microversion >= 2.36。 |
| --description~ <description~> | 过滤与共享快照描述模式匹配的结果。仅适用于 microversion >= 2.36。 |
| --detail | 列出共享快照及详情 |
| --property <key=value> | 过滤具有给定 metadata key=value 属性的快照。(重复选项按多个属性过滤) |
| value | Summary |
|---|---|
| -f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml} | 输出格式,默认为 table |
| -c COLUMN, --column COLUMN | 指定要包含的列,可以重复显示多个列 |
| --sort-column SORT_COLUMN | 指定排序数据的列(指定第一个指定的列具有优先级,非存在的列将被忽略)可以重复 |
| --sort-ascending | 以升序对列进行排序 |
| --sort-descending | 以降序对列进行排序 |
| value | Summary |
|---|---|
| --quote {all,minimal,none,nonnumeric} | 当包含引号时,则默认为非数字 |
| value | Summary |
|---|---|
| --noindent | 是否禁用对 json 的缩进 |
| value | Summary |
|---|---|
| --max-width <integer> | 最大显示宽度,即 <1 来禁用。您还可以使用 CLIFF_MAX_TERM_WIDTH 环境变量,但参数具有优先权。 |
| --fit-width | 将表与显示宽度匹配。如果 --max 宽度大于 0,则表示表示。将环境变量 CLIFF_FIT_WIDTH=1 设置为 always 启用 |
| --print-empty | 如果没有要显示数据,则打印空表。 |