Chapter 80. volume


This chapter describes the commands under the volume command.

80.1. volume attachment complete

Complete an attachment for a volume.

Usage:

openstack volume attachment complete [-h] <attachment>

Expand
Table 80.1. Positional arguments
ValueSummary

<attachment>

Id of volume attachment to mark as completed

Expand
Table 80.2. Command arguments
ValueSummary

-h, --help

Show this help message and exit

80.2. volume attachment create

Create an attachment for a volume. This command will only create a volume attachment in the Volume service. It will not invoke the necessary Compute service actions to actually attach the volume to the server at the hypervisor level. As a result, it should typically only be used for troubleshooting issues with an existing server in combination with other tooling. For all other use cases, the server add volume command should be preferred.

Usage:

openstack volume attachment create [-h]
                                          [-f {json,shell,table,value,yaml}]
                                          [-c COLUMN] [--noindent]
                                          [--prefix PREFIX]
                                          [--max-width <integer>]
                                          [--fit-width] [--print-empty]
                                          [--connect] [--no-connect]
                                          [--initiator <initiator>]
                                          [--ip <ip>] [--host <host>]
                                          [--platform <platform>]
                                          [--os-type <ostype>] [--multipath]
                                          [--no-multipath]
                                          [--mountpoint <mountpoint>]
                                          [--mode <mode>]
                                          <volume> <server>

Expand
Table 80.3. Positional arguments
ValueSummary

<volume>

Name or id of volume to attach to server.

<server>

Name or id of server to attach volume to.

Expand
Table 80.4. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--connect

Make an active connection using provided connector info

--no-connect

Do not make an active connection using provided connector info

--initiator <initiator>

Iqn of the initiator attaching to

--ip <ip>

Ip of the system attaching to

--host <host>

Name of the host attaching to

--platform <platform>

Platform type

--os-type <ostype>

Os type

--multipath

Use multipath

--no-multipath

Use multipath

--mountpoint <mountpoint>

Mountpoint volume will be attached at

--mode <mode>

Mode of volume attachment, rw, ro and null, where null indicates we want to honor any existing admin-metadata settings (supported by --os-volume-api-version 3.54 or later)

Expand
Table 80.5. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.6. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.7. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.8. Table formatter options
ValueSummary

--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.

80.3. volume attachment delete

Delete an attachment for a volume. Similarly to the volume attachment create command, this command will only delete the volume attachment record in the Volume service. It will not invoke the necessary Compute service actions to actually attach the volume to the server at the hypervisor level. As a result, it should typically only be used for troubleshooting issues with an existing server in combination with other tooling. For all other use cases, the server volume remove command should be preferred.

Usage:

openstack volume attachment delete [-h] <attachment>

Expand
Table 80.9. Positional arguments
ValueSummary

<attachment>

Id of volume attachment to delete

Expand
Table 80.10. Command arguments
ValueSummary

-h, --help

Show this help message and exit

80.4. volume attachment list

Lists all volume attachments.

Usage:

openstack volume attachment 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]
                                        [--project <project>]
                                        [--project-domain <project-domain>]
                                        [--all-projects]
                                        [--volume-id <volume-id>]
                                        [--status <status>]
                                        [--marker <marker>] [--limit <limit>]

Expand
Table 80.11. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--project <project>

Filter results by project (name or id) (admin only)

--project-domain <project-domain>

Domain the project belongs to (name or id). this can be used in case collisions between project names exist.

--all-projects

Shows details for all projects (admin only).

--volume-id <volume-id>

Filters results by a volume id. this option is deprecated. Consider using the --filters option which was introduced in microversion 3.33 instead.

--status <status>

Filters results by a status. this option is deprecated. Consider using the --filters option which was introduced in microversion 3.33 instead.

--marker <marker>

Begin returning volume attachments that appear later in volume attachment list than that represented by this ID.

--limit <limit>

Maximum number of volume attachments to return.

Expand
Table 80.12. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.13. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.14. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.15. Table formatter options
ValueSummary

--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.

80.5. volume attachment set

Update an attachment for a volume. This call is designed to be more of an volume attachment completion than anything else. It expects the value of a connector object to notify the driver that the volume is going to be connected and where it’s being connected to.

Usage:

openstack volume attachment set [-h] [-f {json,shell,table,value,yaml}]
                                       [-c COLUMN] [--noindent]
                                       [--prefix PREFIX]
                                       [--max-width <integer>] [--fit-width]
                                       [--print-empty]
                                       [--initiator <initiator>] [--ip <ip>]
                                       [--host <host>] [--platform <platform>]
                                       [--os-type <ostype>] [--multipath]
                                       [--no-multipath]
                                       [--mountpoint <mountpoint>]
                                       <attachment>

Expand
Table 80.16. Positional arguments
ValueSummary

<attachment>

Id of volume attachment.

Expand
Table 80.17. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--initiator <initiator>

Iqn of the initiator attaching to

--ip <ip>

Ip of the system attaching to

--host <host>

Name of the host attaching to

--platform <platform>

Platform type

--os-type <ostype>

Os type

--multipath

Use multipath

--no-multipath

Use multipath

--mountpoint <mountpoint>

Mountpoint volume will be attached at

Expand
Table 80.18. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.19. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.20. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.21. Table formatter options
ValueSummary

--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.

80.6. volume attachment show

Show detailed information for a volume attachment.

Usage:

openstack volume attachment show [-h]
                                        [-f {json,shell,table,value,yaml}]
                                        [-c COLUMN] [--noindent]
                                        [--prefix PREFIX]
                                        [--max-width <integer>] [--fit-width]
                                        [--print-empty]
                                        <attachment>

Expand
Table 80.22. Positional arguments
ValueSummary

<attachment>

Id of volume attachment.

Expand
Table 80.23. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.24. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.25. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.26. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.27. Table formatter options
ValueSummary

--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.

80.7. volume backend capability show

Show capability command

Usage:

openstack volume backend capability show [-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]
                                                <host>

Expand
Table 80.28. Positional arguments
ValueSummary

<host>

List capabilities of specified host (host@backend- name)

Expand
Table 80.29. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.30. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.31. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.32. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.33. Table formatter options
ValueSummary

--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.

80.8. volume backend pool list

List pool command

Usage:

openstack volume backend pool 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]
                                          [--long]

Expand
Table 80.34. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--long

Show detailed information about pools.

Expand
Table 80.35. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.36. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.37. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.38. Table formatter options
ValueSummary

--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.

80.9. volume backup create

Create new volume backup

Usage:

openstack volume backup create [-h] [-f {json,shell,table,value,yaml}]
                                      [-c COLUMN] [--noindent]
                                      [--prefix PREFIX]
                                      [--max-width <integer>] [--fit-width]
                                      [--print-empty] [--name <name>]
                                      [--description <description>]
                                      [--container <container>]
                                      [--snapshot <snapshot>] [--force]
                                      [--incremental] [--no-incremental]
                                      [--property <key=value>]
                                      [--availability-zone <zone-name>]
                                      <volume>

Expand
Table 80.39. Positional arguments
ValueSummary

<volume>

Volume to backup (name or id)

Expand
Table 80.40. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--name <name>

Name of the backup

--description <description>

Description of the backup

--container <container>

Optional backup container name

--snapshot <snapshot>

Snapshot to backup (name or id)

--force

Allow to back up an in-use volume

--incremental

Perform an incremental backup

--no-incremental

Do not perform an incremental backup

--property <key=value>

Set a property on this backup (repeat option to remove multiple values) (supported by --os-volume-api-version 3.43 or above)

--availability-zone <zone-name>

Az where the backup should be stored; by default it will be the same as the source (supported by --os- volume-api-version 3.51 or above)

Expand
Table 80.41. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.42. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.43. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.44. Table formatter options
ValueSummary

--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.

80.10. volume backup delete

Delete volume backup(s)

Usage:

openstack volume backup delete [-h] [--force] <backup> [<backup> ...]

Expand
Table 80.45. Positional arguments
ValueSummary

<backup>

Backup(s) to delete (name or id)

Expand
Table 80.46. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--force

Allow delete in state other than error or available

80.11. volume backup list

List volume backups

Usage:

openstack volume backup 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]
                                    [--long] [--name <name>]
                                    [--status <status>] [--volume <volume>]
                                    [--marker <volume-backup>]
                                    [--limit <num-backups>] [--all-projects]

Expand
Table 80.47. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--long

List additional fields in output

--name <name>

Filters results by the backup name

--status <status>

Filters results by the backup status, one of: creating, available, deleting, error, restoring or error_restoring

--volume <volume>

Filters results by the volume which they backup (name or ID)

--marker <volume-backup>

The last backup of the previous page (name or id)

--limit <num-backups>

Maximum number of backups to display

--all-projects

Include all projects (admin only)

Expand
Table 80.48. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.49. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.50. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.51. Table formatter options
ValueSummary

--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.

80.12. volume backup record export

Export volume backup details. Backup information can be imported into a new service instance to be able to restore.

Usage:

openstack volume backup record export [-h]
                                             [-f {json,shell,table,value,yaml}]
                                             [-c COLUMN] [--noindent]
                                             [--prefix PREFIX]
                                             [--max-width <integer>]
                                             [--fit-width] [--print-empty]
                                             <backup>

Expand
Table 80.52. Positional arguments
ValueSummary

<backup>

Backup to export (name or id)

Expand
Table 80.53. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.54. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.55. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.56. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.57. Table formatter options
ValueSummary

--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.

80.13. volume backup record import

Import volume backup details. Exported backup details contain the metadata necessary to restore to a new or rebuilt service instance

Usage:

openstack volume backup record import [-h]
                                             [-f {json,shell,table,value,yaml}]
                                             [-c COLUMN] [--noindent]
                                             [--prefix PREFIX]
                                             [--max-width <integer>]
                                             [--fit-width] [--print-empty]
                                             <backup_service>
                                             <backup_metadata>

Expand
Table 80.58. Positional arguments
ValueSummary

<backup_service>

Backup service containing the backup.

<backup_metadata>

Encoded backup metadata from export.

Expand
Table 80.59. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.60. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.61. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.62. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.63. Table formatter options
ValueSummary

--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.

80.14. volume backup restore

Restore volume backup

Usage:

openstack volume backup restore [-h] [-f {json,shell,table,value,yaml}]
                                       [-c COLUMN] [--noindent]
                                       [--prefix PREFIX]
                                       [--max-width <integer>] [--fit-width]
                                       [--print-empty] [--force]
                                       <backup> [<volume>]

Expand
Table 80.64. Positional arguments
ValueSummary

<backup>

Backup to restore (name or id)

<volume>

Volume to restore to (name or id for existing volume, name only for new volume) (default to None)

Expand
Table 80.65. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--force

Restore the backup to an existing volume (default to False)

Expand
Table 80.66. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.67. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.68. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.69. Table formatter options
ValueSummary

--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.

80.15. volume backup set

Set volume backup properties

Usage:

openstack volume backup set [-h] [--name <name>]
                                   [--description <description>]
                                   [--state <state>] [--no-property]
                                   [--property <key=value>]
                                   <backup>

Expand
Table 80.70. Positional arguments
ValueSummary

<backup>

Backup to modify (name or id)

Expand
Table 80.71. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--name <name>

New backup name(supported by --os-volume-api-version 3.9 or above)

--description <description>

New backup description (supported by --os-volume-api- version 3.9 or above)

--state <state>

New backup state ("available" or "error") (admin only) (This option simply changes the state of the backup in the database with no regard to actual status; exercise caution when using)

--no-property

Remove all properties from this backup (specify both --no-property and --property to remove the current properties before setting new properties)

--property <key=value>

Set a property on this backup (repeat option to set multiple values) (supported by --os-volume-api-version 3.43 or above)

80.16. volume backup show

Display volume backup details

Usage:

openstack volume backup show [-h] [-f {json,shell,table,value,yaml}]
                                    [-c COLUMN] [--noindent] [--prefix PREFIX]
                                    [--max-width <integer>] [--fit-width]
                                    [--print-empty]
                                    <backup>

Expand
Table 80.72. Positional arguments
ValueSummary

<backup>

Backup to display (name or id)

Expand
Table 80.73. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.74. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.75. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.76. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.77. Table formatter options
ValueSummary

--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.

80.17. volume backup unset

Unset volume backup properties. This command requires ``--os-volume-api- version`` 3.43 or greater.

Usage:

openstack volume backup unset [-h] [--property <key>] <backup>

Expand
Table 80.78. Positional arguments
ValueSummary

<backup>

Backup to modify (name or id)

Expand
Table 80.79. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--property <key>

Property to remove from this backup (repeat option to unset multiple values)

80.18. volume create

Create new volume

Usage:

openstack volume create [-h] [-f {json,shell,table,value,yaml}]
                               [-c COLUMN] [--noindent] [--prefix PREFIX]
                               [--max-width <integer>] [--fit-width]
                               [--print-empty] [--size <size>]
                               [--type <volume-type>]
                               [--image <image> | --snapshot <snapshot> | --source <volume> | --backup <backup>]
                               [--description <description>]
                               [--availability-zone <availability-zone>]
                               [--consistency-group consistency-group>]
                               [--property <key=value>] [--hint <key=value>]
                               [--bootable | --non-bootable]
                               [--read-only | --read-write]
                               [<name>]

Expand
Table 80.80. Positional arguments
ValueSummary

<name>

Volume name

Expand
Table 80.81. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--size <size>

Volume size in gb (required unless --snapshot, --source or --backup is specified)

--type <volume-type>

Set the type of volume

--image <image>

Use <image> as source of volume (name or id)

--snapshot <snapshot>

Use <snapshot> as source of volume (name or id)

--source <volume>

Volume to clone (name or id)

--backup <backup>

Restore backup to a volume (name or id) (supported by --os-volume-api-version 3.47 or later)

--description <description>

Volume description

--availability-zone <availability-zone>

Create volume in <availability-zone>

--consistency-group consistency-group>

Consistency group where the new volume belongs to

--property <key=value>

Set a property to this volume (repeat option to set multiple properties)

--hint <key=value>

Arbitrary scheduler hint key-value pairs to help boot an instance (repeat option to set multiple hints)

--bootable

Mark volume as bootable

--non-bootable

Mark volume as non-bootable (default)

--read-only

Set volume to read-only access mode

--read-write

Set volume to read-write access mode (default)

Expand
Table 80.82. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.83. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.84. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.85. Table formatter options
ValueSummary

--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.

80.19. volume delete

Delete volume(s)

Usage:

openstack volume delete [-h] [--force | --purge]
                               <volume> [<volume> ...]

Expand
Table 80.86. Positional arguments
ValueSummary

<volume>

Volume(s) to delete (name or id)

Expand
Table 80.87. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--force

Attempt forced removal of volume(s), regardless of state (defaults to False)

--purge

Remove any snapshots along with volume(s) (defaults to false)

80.20. volume group create

Create a volume group. Generic volume groups enable you to create a group of volumes and manage them together. Generic volume groups are more flexible than consistency groups. Currently volume consistency groups only support consistent group snapshot. It cannot be extended easily to serve other purposes. A project may want to put volumes used in the same application together in a group so that it is easier to manage them together, and this group of volumes may or may not support consistent group snapshot. Generic volume group solve this problem. By decoupling the tight relationship between the group construct and the consistency concept, generic volume groups can be extended to support other features in the future. This command requires ``--os-volume-api-version`` 3.13 or greater.

Usage:

openstack volume group create [-h] [-f {json,shell,table,value,yaml}]
                                     [-c COLUMN] [--noindent]
                                     [--prefix PREFIX] [--max-width <integer>]
                                     [--fit-width] [--print-empty]
                                     [--volume-group-type <volume_group_type>]
                                     [--volume-type <volume_type>]
                                     [--source-group <source-group>]
                                     [--group-snapshot <group-snapshot>]
                                     [--name <name>]
                                     [--description <description>]
                                     [--availability-zone <availability-zone>]

Expand
Table 80.88. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--volume-group-type <volume_group_type>

Volume group type to use (name or id)

--volume-type <volume_type>

Volume type(s) to use (name or id) (required with --volume-group-type)

--source-group <source-group>

Existing volume group to use (name or id) (supported by --os-volume-api-version 3.14 or later)

--group-snapshot <group-snapshot>

Existing group snapshot to use (name or id) (supported by --os-volume-api-version 3.14 or later)

--name <name>

Name of the volume group.

--description <description>

Description of a volume group.

--availability-zone <availability-zone>

Availability zone for volume group. (not available if creating group from source)

Expand
Table 80.89. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.90. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.91. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.92. Table formatter options
ValueSummary

--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.

80.21. volume group delete

Delete a volume group. This command requires ``--os-volume-api-version`` 3.13 or greater.

Usage:

openstack volume group delete [-h] [--force] <group>

Expand
Table 80.93. Positional arguments
ValueSummary

<group>

Name or id of volume group to delete

Expand
Table 80.94. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--force

Delete the volume group even if it contains volumes. this will delete any remaining volumes in the group.

80.22. volume group failover

Failover replication for a volume group. This command requires ``--os-volume- api-version`` 3.38 or greater.

Usage:

openstack volume group failover [-h] [--allow-attached-volume]
                                       [--disallow-attached-volume]
                                       [--secondary-backend-id <backend_id>]
                                       <group>

Expand
Table 80.95. Positional arguments
ValueSummary

<group>

Name or id of volume group to failover replication for.

Expand
Table 80.96. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--allow-attached-volume

Allow group with attached volumes to be failed over.

--disallow-attached-volume

Disallow group with attached volumes to be failed over.

--secondary-backend-id <backend_id>

Secondary backend id.

80.23. volume group list

Lists all volume groups. This command requires ``--os-volume-api-version`` 3.13 or greater.

Usage:

openstack volume group 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]

Expand
Table 80.97. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--all-projects

Shows details for all projects (admin only).

Expand
Table 80.98. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.99. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.100. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.101. Table formatter options
ValueSummary

--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.

80.24. volume group set

Update a volume group. This command requires ``--os-volume-api-version`` 3.13 or greater.

Usage:

openstack volume group set [-h] [-f {json,shell,table,value,yaml}]
                                  [-c COLUMN] [--noindent] [--prefix PREFIX]
                                  [--max-width <integer>] [--fit-width]
                                  [--print-empty] [--name <name>]
                                  [--description <description>]
                                  [--enable-replication]
                                  [--disable-replication]
                                  <group>

Expand
Table 80.102. Positional arguments
ValueSummary

<group>

Name or id of volume group.

Expand
Table 80.103. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--name <name>

New name for group.

--description <description>

New description for group.

--enable-replication

Enable replication for group. (supported by --os- volume-api-version 3.38 or above)

--disable-replication

Disable replication for group. (supported by --os- volume-api-version 3.38 or above)

Expand
Table 80.104. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.105. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.106. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.107. Table formatter options
ValueSummary

--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.

80.25. volume group show

Show detailed information for a volume group. This command requires ``--os- volume-api-version`` 3.13 or greater.

Usage:

openstack volume group show [-h] [-f {json,shell,table,value,yaml}]
                                   [-c COLUMN] [--noindent] [--prefix PREFIX]
                                   [--max-width <integer>] [--fit-width]
                                   [--print-empty] [--volumes] [--no-volumes]
                                   [--replication-targets]
                                   [--no-replication-targets]
                                   <group>

Expand
Table 80.108. Positional arguments
ValueSummary

<group>

Name or id of volume group.

Expand
Table 80.109. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--volumes

Show volumes included in the group. (supported by --os-volume-api-version 3.25 or above)

--no-volumes

Do not show volumes included in the group. (supported by --os-volume-api-version 3.25 or above)

--replication-targets

Show replication targets for the group. (supported by --os-volume-api-version 3.38 or above)

--no-replication-targets

Do not show replication targets for the group. (supported by --os-volume-api-version 3.38 or above)

Expand
Table 80.110. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.111. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.112. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.113. Table formatter options
ValueSummary

--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.

80.26. volume group snapshot create

Create a volume group snapshot. This command requires ``--os-volume-api- version`` 3.13 or greater.

Usage:

openstack volume group snapshot create [-h]
                                              [-f {json,shell,table,value,yaml}]
                                              [-c COLUMN] [--noindent]
                                              [--prefix PREFIX]
                                              [--max-width <integer>]
                                              [--fit-width] [--print-empty]
                                              [--name <name>]
                                              [--description <description>]
                                              <volume_group>

Expand
Table 80.114. Positional arguments
ValueSummary

<volume_group>

Name or id of volume group to create a snapshot of.

Expand
Table 80.115. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--name <name>

Name of the volume group snapshot.

--description <description>

Description of a volume group snapshot.

Expand
Table 80.116. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.117. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.118. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.119. Table formatter options
ValueSummary

--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.

80.27. volume group snapshot delete

Delete a volume group snapshot. This command requires ``--os-volume-api- version`` 3.14 or greater.

Usage:

openstack volume group snapshot delete [-h] <snapshot>

Expand
Table 80.120. Positional arguments
ValueSummary

<snapshot>

Name or id of volume group snapshot to delete

Expand
Table 80.121. Command arguments
ValueSummary

-h, --help

Show this help message and exit

80.28. volume group snapshot list

Lists all volume group snapshot. This command requires ``--os-volume-api- version`` 3.14 or greater.

Usage:

openstack volume group 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]

Expand
Table 80.122. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--all-projects

Shows details for all projects (admin only).

Expand
Table 80.123. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.124. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.125. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.126. Table formatter options
ValueSummary

--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.

80.29. volume group snapshot show

Show detailed information for a volume group snapshot. This command requires ``--os-volume-api-version`` 3.14 or greater.

Usage:

openstack volume group snapshot show [-h]
                                            [-f {json,shell,table,value,yaml}]
                                            [-c COLUMN] [--noindent]
                                            [--prefix PREFIX]
                                            [--max-width <integer>]
                                            [--fit-width] [--print-empty]
                                            <snapshot>

Expand
Table 80.127. Positional arguments
ValueSummary

<snapshot>

Name or id of volume group snapshot.

Expand
Table 80.128. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.129. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.130. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.131. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.132. Table formatter options
ValueSummary

--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.

80.30. volume group type create

Create a volume group type. This command requires ``--os-volume-api-version`` 3.11 or greater.

Usage:

openstack volume group type create [-h]
                                          [-f {json,shell,table,value,yaml}]
                                          [-c COLUMN] [--noindent]
                                          [--prefix PREFIX]
                                          [--max-width <integer>]
                                          [--fit-width] [--print-empty]
                                          [--description <description>]
                                          [--public | --private]
                                          <name>

Expand
Table 80.133. Positional arguments
ValueSummary

<name>

Name of new volume group type.

Expand
Table 80.134. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--description <description>

Description of the volume group type.

--public

Volume group type is available to other projects (default)

--private

Volume group type is not available to other projects

Expand
Table 80.135. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.136. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.137. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.138. Table formatter options
ValueSummary

--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.

80.31. volume group type delete

Delete a volume group type. This command requires ``--os-volume-api-version`` 3.11 or greater.

Usage:

openstack volume group type delete [-h] <group_type>

Expand
Table 80.139. Positional arguments
ValueSummary

<group_type>

Name or id of volume group type to delete

Expand
Table 80.140. Command arguments
ValueSummary

-h, --help

Show this help message and exit

80.32. volume group type list

Lists all volume group types. This command requires ``--os-volume-api- version`` 3.11 or greater.

Usage:

openstack volume group type 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]
                                        [--default]

Expand
Table 80.141. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--default

List the default volume group type.

Expand
Table 80.142. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.143. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.144. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.145. Table formatter options
ValueSummary

--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.

80.33. volume group type set

Update a volume group type. This command requires ``--os-volume-api-version`` 3.11 or greater.

Usage:

openstack volume group type set [-h] [-f {json,shell,table,value,yaml}]
                                       [-c COLUMN] [--noindent]
                                       [--prefix PREFIX]
                                       [--max-width <integer>] [--fit-width]
                                       [--print-empty] [--name <name>]
                                       [--description <description>]
                                       [--public | --private] [--no-property]
                                       [--property <key=value>]
                                       <group_type>

Expand
Table 80.146. Positional arguments
ValueSummary

<group_type>

Name or id of volume group type.

Expand
Table 80.147. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--name <name>

New name for volume group type.

--description <description>

New description for volume group type.

--public

Make volume group type available to other projects.

--private

Make volume group type unavailable to other projects.

--no-property

Remove all properties from this volume group type (specify both --no-property and --property to remove the current properties before setting new properties)

--property <key=value>

Property to add or modify for this volume group type (repeat option to set multiple properties)

Expand
Table 80.148. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.149. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.150. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.151. Table formatter options
ValueSummary

--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.

80.34. volume group type show

Show detailed information for a volume group type. This command requires ``--os-volume-api-version`` 3.11 or greater.

Usage:

openstack volume group type show [-h]
                                        [-f {json,shell,table,value,yaml}]
                                        [-c COLUMN] [--noindent]
                                        [--prefix PREFIX]
                                        [--max-width <integer>] [--fit-width]
                                        [--print-empty]
                                        <group_type>

Expand
Table 80.152. Positional arguments
ValueSummary

<group_type>

Name or id of volume group type.

Expand
Table 80.153. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.154. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.155. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.156. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.157. Table formatter options
ValueSummary

--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.

80.35. volume host set

Set volume host properties

Usage:

openstack volume host set [-h] [--disable | --enable] <host-name>

Expand
Table 80.158. Positional arguments
ValueSummary

<host-name>

Name of volume host

Expand
Table 80.159. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--disable

Freeze and disable the specified volume host

--enable

Thaw and enable the specified volume host

80.36. volume list

List volumes

Usage:

openstack volume 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]
                             [--project <project>]
                             [--project-domain <project-domain>]
                             [--user <user>] [--user-domain <user-domain>]
                             [--name <name>] [--status <status>]
                             [--all-projects] [--long] [--marker <volume>]
                             [--limit <num-volumes>]

Expand
Table 80.160. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--project <project>

Filter results by project (name or id) (admin only)

--project-domain <project-domain>

Domain the project belongs to (name or id). this can be used in case collisions between project names exist.

--user <user>

Filter results by user (name or id) (admin only)

--user-domain <user-domain>

Domain the user belongs to (name or id). this can be used in case collisions between user names exist.

--name <name>

Filter results by volume name

--status <status>

Filter results by status

--all-projects

Include all projects (admin only)

--long

List additional fields in output

--marker <volume>

The last volume id of the previous page

--limit <num-volumes>

Maximum number of volumes to display

Expand
Table 80.161. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.162. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.163. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.164. Table formatter options
ValueSummary

--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.

80.37. volume message delete

Delete a volume failure message

Usage:

openstack volume message delete [-h] <message-id> [<message-id> ...]

Expand
Table 80.165. Positional arguments
ValueSummary

<message-id>

Message(s) to delete (id)

Expand
Table 80.166. Command arguments
ValueSummary

-h, --help

Show this help message and exit

80.38. volume message list

List volume failure messages

Usage:

openstack volume message 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]
                                     [--project <project>]
                                     [--project-domain <project-domain>]
                                     [--marker <message-id>] [--limit <limit>]

Expand
Table 80.167. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--project <project>

Filter results by project (name or id) (admin only)

--project-domain <project-domain>

Domain the project belongs to (name or id). this can be used in case collisions between project names exist.

--marker <message-id>

The last message id of the previous page

--limit <limit>

Maximum number of messages to display

Expand
Table 80.168. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.169. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.170. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.171. Table formatter options
ValueSummary

--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.

80.39. volume message show

Show a volume failure message

Usage:

openstack volume message show [-h] [-f {json,shell,table,value,yaml}]
                                     [-c COLUMN] [--noindent]
                                     [--prefix PREFIX] [--max-width <integer>]
                                     [--fit-width] [--print-empty]
                                     <message-id>

Expand
Table 80.172. Positional arguments
ValueSummary

<message-id>

Message to show (id).

Expand
Table 80.173. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.174. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.175. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.176. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.177. Table formatter options
ValueSummary

--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.

80.40. volume migrate

Migrate volume to a new host

Usage:

openstack volume migrate [-h] --host <host> [--force-host-copy]
                                [--lock-volume]
                                <volume>

Expand
Table 80.178. Positional arguments
ValueSummary

<volume>

Volume to migrate (name or id)

Expand
Table 80.179. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--host <host>

Destination host (takes the form: host@backend-name#pool)

--force-host-copy

Enable generic host-based force-migration, which bypasses driver optimizations

--lock-volume

If specified, the volume state will be locked and will not allow a migration to be aborted (possibly by another operation)

80.41. volume qos associate

Associate a QoS specification to a volume type

Usage:

openstack volume qos associate [-h] <qos-spec> <volume-type>

Expand
Table 80.180. Positional arguments
ValueSummary

<qos-spec>

Qos specification to modify (name or id)

<volume-type>

Volume type to associate the qos (name or id)

Expand
Table 80.181. Command arguments
ValueSummary

-h, --help

Show this help message and exit

80.42. volume qos create

Create new QoS specification

Usage:

openstack volume qos create [-h] [-f {json,shell,table,value,yaml}]
                                   [-c COLUMN] [--noindent] [--prefix PREFIX]
                                   [--max-width <integer>] [--fit-width]
                                   [--print-empty] [--consumer <consumer>]
                                   [--property <key=value>]
                                   <name>

Expand
Table 80.182. Positional arguments
ValueSummary

<name>

New qos specification name

Expand
Table 80.183. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--consumer <consumer>

Consumer of the qos. valid consumers: back-end, both, front-end (defaults to both)

--property <key=value>

Set a qos specification property (repeat option to set multiple properties)

Expand
Table 80.184. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.185. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.186. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.187. Table formatter options
ValueSummary

--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.

80.43. volume qos delete

Delete QoS specification

Usage:

openstack volume qos delete [-h] [--force] <qos-spec> [<qos-spec> ...]

Expand
Table 80.188. Positional arguments
ValueSummary

<qos-spec>

Qos specification(s) to delete (name or id)

Expand
Table 80.189. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--force

Allow to delete in-use qos specification(s)

80.44. volume qos disassociate

Disassociate a QoS specification from a volume type

Usage:

openstack volume qos disassociate [-h]
                                         [--volume-type <volume-type> | --all]
                                         <qos-spec>

Expand
Table 80.190. Positional arguments
ValueSummary

<qos-spec>

Qos specification to modify (name or id)

Expand
Table 80.191. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--volume-type <volume-type>

Volume type to disassociate the qos from (name or id)

--all

Disassociate the qos from every volume type

80.45. volume qos list

List QoS specifications

Usage:

openstack volume qos 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]

Expand
Table 80.192. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.193. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.194. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.195. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.196. Table formatter options
ValueSummary

--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.

80.46. volume qos set

Set QoS specification properties

Usage:

openstack volume qos set [-h] [--property <key=value>] <qos-spec>

Expand
Table 80.197. Positional arguments
ValueSummary

<qos-spec>

Qos specification to modify (name or id)

Expand
Table 80.198. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--property <key=value>

Property to add or modify for this qos specification (repeat option to set multiple properties)

80.47. volume qos show

Display QoS specification details

Usage:

openstack volume qos show [-h] [-f {json,shell,table,value,yaml}]
                                 [-c COLUMN] [--noindent] [--prefix PREFIX]
                                 [--max-width <integer>] [--fit-width]
                                 [--print-empty]
                                 <qos-spec>

Expand
Table 80.199. Positional arguments
ValueSummary

<qos-spec>

Qos specification to display (name or id)

Expand
Table 80.200. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.201. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.202. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.203. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.204. Table formatter options
ValueSummary

--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.

80.48. volume qos unset

Unset QoS specification properties

Usage:

openstack volume qos unset [-h] [--property <key>] <qos-spec>

Expand
Table 80.205. Positional arguments
ValueSummary

<qos-spec>

Qos specification to modify (name or id)

Expand
Table 80.206. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--property <key>

Property to remove from the qos specification. (repeat option to unset multiple properties)

80.49. volume revert

Revert a volume to a snapshot.

Usage:

openstack volume revert [-h] <snapshot>

Expand
Table 80.207. Positional arguments
ValueSummary

<snapshot>

Name or id of the snapshot to restore. the snapshot must be the most recent one known to cinder.

Expand
Table 80.208. Command arguments
ValueSummary

-h, --help

Show this help message and exit

80.50. volume service list

List service command

Usage:

openstack volume service 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]
                                     [--host <host>] [--service <service>]
                                     [--long]

Expand
Table 80.209. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--host <host>

List services on specified host (name only)

--service <service>

List only specified service (name only)

--long

List additional fields in output

Expand
Table 80.210. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.211. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.212. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.213. Table formatter options
ValueSummary

--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.

80.51. volume service set

Set volume service properties

Usage:

openstack volume service set [-h] [--enable | --disable]
                                    [--disable-reason <reason>]
                                    <host> <service>

Expand
Table 80.214. Positional arguments
ValueSummary

<host>

Name of host

<service>

Name of service (binary name)

Expand
Table 80.215. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--enable

Enable volume service

--disable

Disable volume service

--disable-reason <reason>

Reason for disabling the service (should be used with --disable option)

80.52. volume set

Set volume properties

Usage:

openstack volume set [-h] [--name <name>] [--size <size>]
                            [--description <description>] [--no-property]
                            [--property <key=value>]
                            [--image-property <key=value>] [--state <state>]
                            [--attached | --detached] [--type <volume-type>]
                            [--retype-policy <retype-policy>]
                            [--bootable | --non-bootable]
                            [--read-only | --read-write]
                            <volume>

Expand
Table 80.216. Positional arguments
ValueSummary

<volume>

Volume to modify (name or id)

Expand
Table 80.217. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--name <name>

New volume name

--size <size>

Extend volume size in gb

--description <description>

New volume description

--no-property

Remove all properties from <volume> (specify both --no-property and --property to remove the current properties before setting new properties.)

--property <key=value>

Set a property on this volume (repeat option to set multiple properties)

--image-property <key=value>

Set an image property on this volume (repeat option to set multiple image properties)

--state <state>

New volume state ("available", "error", "creating", "deleting", "in-use", "attaching", "detaching", "error_deleting" or "maintenance") (admin only) (This option simply changes the state of the volume in the database with no regard to actual status, exercise caution when using)

--attached

Set volume attachment status to "attached" (admin only) (This option simply changes the state of the volume in the database with no regard to actual status, exercise caution when using)

--detached

Set volume attachment status to "detached" (admin only) (This option simply changes the state of the volume in the database with no regard to actual status, exercise caution when using)

--type <volume-type>

New volume type (name or id)

--retype-policy <retype-policy>

Migration policy while re-typing volume ("never" or "on-demand", default is "never" ) (available only when --type option is specified)

--bootable

Mark volume as bootable

--non-bootable

Mark volume as non-bootable

--read-only

Set volume to read-only access mode

--read-write

Set volume to read-write access mode

80.53. volume show

Display volume details

Usage:

openstack volume show [-h] [-f {json,shell,table,value,yaml}]
                             [-c COLUMN] [--noindent] [--prefix PREFIX]
                             [--max-width <integer>] [--fit-width]
                             [--print-empty]
                             <volume>

Expand
Table 80.218. Positional arguments
ValueSummary

<volume>

Volume to display (name or id)

Expand
Table 80.219. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.220. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.221. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.222. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.223. Table formatter options
ValueSummary

--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.

80.54. volume snapshot create

Create new volume snapshot

Usage:

openstack volume snapshot create [-h]
                                        [-f {json,shell,table,value,yaml}]
                                        [-c COLUMN] [--noindent]
                                        [--prefix PREFIX]
                                        [--max-width <integer>] [--fit-width]
                                        [--print-empty] [--volume <volume>]
                                        [--description <description>]
                                        [--force] [--property <key=value>]
                                        [--remote-source <key=value>]
                                        <snapshot-name>

Expand
Table 80.224. Positional arguments
ValueSummary

<snapshot-name>

Name of the new snapshot

Expand
Table 80.225. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--volume <volume>

Volume to snapshot (name or id) (default is <snapshot- name>)

--description <description>

Description of the snapshot

--force

Create a snapshot attached to an instance. default is False

--property <key=value>

Set a property to this snapshot (repeat option to set multiple properties)

--remote-source <key=value>

The attribute(s) of the existing remote volume snapshot (admin required) (repeat option to specify multiple attributes) e.g.: --remote-source source- name=test_name --remote-source source-id=test_id

Expand
Table 80.226. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.227. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.228. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.229. Table formatter options
ValueSummary

--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.

80.55. volume snapshot delete

Delete volume snapshot(s)

Usage:

openstack volume snapshot delete [-h] [--force]
                                        <snapshot> [<snapshot> ...]

Expand
Table 80.230. Positional arguments
ValueSummary

<snapshot>

Snapshot(s) to delete (name or id)

Expand
Table 80.231. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--force

Attempt forced removal of snapshot(s), regardless of state (defaults to False)

80.56. volume snapshot list

List volume snapshots

Usage:

openstack volume 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] [--project <project>]
                                      [--project-domain <project-domain>]
                                      [--long] [--marker <volume-snapshot>]
                                      [--limit <num-snapshots>]
                                      [--name <name>] [--status <status>]
                                      [--volume <volume>]

Expand
Table 80.232. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--all-projects

Include all projects (admin only)

--project <project>

Filter results by project (name or id) (admin only)

--project-domain <project-domain>

Domain the project belongs to (name or id). this can be used in case collisions between project names exist.

--long

List additional fields in output

--marker <volume-snapshot>

The last snapshot id of the previous page

--limit <num-snapshots>

Maximum number of snapshots to display

--name <name>

Filters results by a name.

--status <status>

Filters results by a status. (available, error, creating, deleting or error_deleting)

--volume <volume>

Filters results by a volume (name or id).

Expand
Table 80.233. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.234. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.235. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.236. Table formatter options
ValueSummary

--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.

80.57. volume snapshot set

Set volume snapshot properties

Usage:

openstack volume snapshot set [-h] [--name <name>]
                                     [--description <description>]
                                     [--no-property] [--property <key=value>]
                                     [--state <state>]
                                     <snapshot>

Expand
Table 80.237. Positional arguments
ValueSummary

<snapshot>

Snapshot to modify (name or id)

Expand
Table 80.238. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--name <name>

New snapshot name

--description <description>

New snapshot description

--no-property

Remove all properties from <snapshot> (specify both --no-property and --property to remove the current properties before setting new properties.)

--property <key=value>

Property to add/change for this snapshot (repeat option to set multiple properties)

--state <state>

New snapshot state. ("available", "error", "creating", "deleting", or "error_deleting") (admin only) (This option simply changes the state of the snapshot in the database with no regard to actual status, exercise caution when using)

80.58. volume snapshot show

Display volume snapshot details

Usage:

openstack volume snapshot show [-h] [-f {json,shell,table,value,yaml}]
                                      [-c COLUMN] [--noindent]
                                      [--prefix PREFIX]
                                      [--max-width <integer>] [--fit-width]
                                      [--print-empty]
                                      <snapshot>

Expand
Table 80.239. Positional arguments
ValueSummary

<snapshot>

Snapshot to display (name or id)

Expand
Table 80.240. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.241. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.242. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.243. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.244. Table formatter options
ValueSummary

--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.

80.59. volume snapshot unset

Unset volume snapshot properties

Usage:

openstack volume snapshot unset [-h] [--property <key>] <snapshot>

Expand
Table 80.245. Positional arguments
ValueSummary

<snapshot>

Snapshot to modify (name or id)

Expand
Table 80.246. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--property <key>

Property to remove from snapshot (repeat option to remove multiple properties)

80.60. volume summary

Show a summary of all volumes in this deployment.

Usage:

openstack volume summary [-h] [-f {json,shell,table,value,yaml}]
                                [-c COLUMN] [--noindent] [--prefix PREFIX]
                                [--max-width <integer>] [--fit-width]
                                [--print-empty] [--all-projects]

Expand
Table 80.247. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--all-projects

Include all projects (admin only)

Expand
Table 80.248. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.249. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.250. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.251. Table formatter options
ValueSummary

--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.

80.61. volume transfer request accept

Accept volume transfer request.

Usage:

openstack volume transfer request accept [-h]
                                                [-f {json,shell,table,value,yaml}]
                                                [-c COLUMN] [--noindent]
                                                [--prefix PREFIX]
                                                [--max-width <integer>]
                                                [--fit-width] [--print-empty]
                                                --auth-key <key>
                                                <transfer-request-id>

Expand
Table 80.252. Positional arguments
ValueSummary

<transfer-request-id>

Volume transfer request to accept (id only)

Expand
Table 80.253. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--auth-key <key>

Volume transfer request authentication key

Expand
Table 80.254. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.255. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.256. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.257. Table formatter options
ValueSummary

--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.

80.62. volume transfer request create

Create volume transfer request.

Usage:

openstack volume transfer request create [-h]
                                                [-f {json,shell,table,value,yaml}]
                                                [-c COLUMN] [--noindent]
                                                [--prefix PREFIX]
                                                [--max-width <integer>]
                                                [--fit-width] [--print-empty]
                                                [--name <name>] [--snapshots]
                                                [--no-snapshots]
                                                <volume>

Expand
Table 80.258. Positional arguments
ValueSummary

<volume>

Volume to transfer (name or id)

Expand
Table 80.259. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--name <name>

New transfer request name (default to none)

--snapshots

Allow transfer volumes without snapshots (default) (supported by --os-volume-api-version 3.55 or later)

--no-snapshots

Disallow transfer volumes without snapshots (supported by --os-volume-api-version 3.55 or later)

Expand
Table 80.260. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.261. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.262. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.263. Table formatter options
ValueSummary

--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.

80.63. volume transfer request delete

Delete volume transfer request(s).

Usage:

openstack volume transfer request delete [-h]
                                                <transfer-request>
                                                [<transfer-request> ...]

Expand
Table 80.264. Positional arguments
ValueSummary

<transfer-request>

Volume transfer request(s) to delete (name or id)

Expand
Table 80.265. Command arguments
ValueSummary

-h, --help

Show this help message and exit

80.64. volume transfer request list

Lists all volume transfer requests.

Usage:

openstack volume transfer request 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]

Expand
Table 80.266. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--all-projects

Include all projects (admin only)

Expand
Table 80.267. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.268. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.269. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.270. Table formatter options
ValueSummary

--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.

80.65. volume transfer request show

Show volume transfer request details.

Usage:

openstack volume transfer request show [-h]
                                              [-f {json,shell,table,value,yaml}]
                                              [-c COLUMN] [--noindent]
                                              [--prefix PREFIX]
                                              [--max-width <integer>]
                                              [--fit-width] [--print-empty]
                                              <transfer-request>

Expand
Table 80.271. Positional arguments
ValueSummary

<transfer-request>

Volume transfer request to display (name or id)

Expand
Table 80.272. Command arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 80.273. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.274. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.275. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.276. Table formatter options
ValueSummary

--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.

80.66. volume type create

Create new volume type

Usage:

openstack volume type create [-h] [-f {json,shell,table,value,yaml}]
                                    [-c COLUMN] [--noindent] [--prefix PREFIX]
                                    [--max-width <integer>] [--fit-width]
                                    [--print-empty]
                                    [--description <description>]
                                    [--public | --private]
                                    [--property <key=value>]
                                    [--project <project>]
                                    [--encryption-provider <provider>]
                                    [--encryption-cipher <cipher>]
                                    [--encryption-key-size <key-size>]
                                    [--encryption-control-location <control-location>]
                                    [--project-domain <project-domain>]
                                    <name>

Expand
Table 80.277. Positional arguments
ValueSummary

<name>

Volume type name

Expand
Table 80.278. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--description <description>

Volume type description

--public

Volume type is accessible to the public

--private

Volume type is not accessible to the public

--property <key=value>

Set a property on this volume type (repeat option to set multiple properties)

--project <project>

Allow <project> to access private type (name or id) (Must be used with --private option)

--encryption-provider <provider>

Set the encryption provider format for this volume type (e.g "luks" or "plain") (admin only) (This option is required when setting encryption type of a volume. Consider using other encryption options such as: "-- encryption-cipher", "--encryption-key-size" and "-- encryption-control-location")

--encryption-cipher <cipher>

Set the encryption algorithm or mode for this volume type (e.g "aes-xts-plain64") (admin only)

--encryption-key-size <key-size>

Set the size of the encryption key of this volume type (e.g "128" or "256") (admin only)

--encryption-control-location <control-location>

Set the notional service where the encryption is performed ("front-end" or "back-end") (admin only) (The default value for this option is "front-end" when setting encryption type of a volume. Consider using other encryption options such as: "--encryption- cipher", "--encryption-key-size" and "--encryption- provider")

--project-domain <project-domain>

Domain the project belongs to (name or id). this can be used in case collisions between project names exist.

Expand
Table 80.279. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.280. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.281. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.282. Table formatter options
ValueSummary

--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.

80.67. volume type delete

Delete volume type(s)

Usage:

openstack volume type delete [-h] <volume-type> [<volume-type> ...]

Expand
Table 80.283. Positional arguments
ValueSummary

<volume-type>

Volume type(s) to delete (name or id)

Expand
Table 80.284. Command arguments
ValueSummary

-h, --help

Show this help message and exit

80.68. volume type list

List volume types

Usage:

openstack volume type 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]
                                  [--long] [--default | --public | --private]
                                  [--encryption-type]

Expand
Table 80.285. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--long

List additional fields in output

--default

List the default volume type

--public

List only public types

--private

List only private types (admin only)

--encryption-type

Display encryption information for each volume type (admin only)

Expand
Table 80.286. Output formatter options
ValueSummary

-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 to show multiple columns

--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

--sort-ascending

Sort the column(s) in ascending order

--sort-descending

Sort the column(s) in descending order

Expand
Table 80.287. CSV formatter options
ValueSummary

--quote {all,minimal,none,nonnumeric}

When to include quotes, defaults to nonnumeric

Expand
Table 80.288. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.289. Table formatter options
ValueSummary

--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.

80.69. volume type set

Set volume type properties

Usage:

openstack volume type set [-h] [--name <name>]
                                 [--description <description>]
                                 [--property <key=value>]
                                 [--project <project>]
                                 [--project-domain <project-domain>]
                                 [--encryption-provider <provider>]
                                 [--encryption-cipher <cipher>]
                                 [--encryption-key-size <key-size>]
                                 [--encryption-control-location <control-location>]
                                 <volume-type>

Expand
Table 80.290. Positional arguments
ValueSummary

<volume-type>

Volume type to modify (name or id)

Expand
Table 80.291. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--name <name>

Set volume type name

--description <description>

Set volume type description

--property <key=value>

Set a property on this volume type (repeat option to set multiple properties)

--project <project>

Set volume type access to project (name or id) (admin only)

--project-domain <project-domain>

Domain the project belongs to (name or id). this can be used in case collisions between project names exist.

--encryption-provider <provider>

Set the encryption provider format for this volume type (e.g "luks" or "plain") (admin only) (This option is required when setting encryption type of a volume for the first time. Consider using other encryption options such as: "--encryption-cipher", "--encryption- key-size" and "--encryption-control-location")

--encryption-cipher <cipher>

Set the encryption algorithm or mode for this volume type (e.g "aes-xts-plain64") (admin only)

--encryption-key-size <key-size>

Set the size of the encryption key of this volume type (e.g "128" or "256") (admin only)

--encryption-control-location <control-location>

Set the notional service where the encryption is performed ("front-end" or "back-end") (admin only) (The default value for this option is "front-end" when setting encryption type of a volume for the first time. Consider using other encryption options such as: "--encryption-cipher", "--encryption-key-size" and "-- encryption-provider")

80.70. volume type show

Display volume type details

Usage:

openstack volume type show [-h] [-f {json,shell,table,value,yaml}]
                                  [-c COLUMN] [--noindent] [--prefix PREFIX]
                                  [--max-width <integer>] [--fit-width]
                                  [--print-empty] [--encryption-type]
                                  <volume-type>

Expand
Table 80.292. Positional arguments
ValueSummary

<volume-type>

Volume type to display (name or id)

Expand
Table 80.293. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--encryption-type

Display encryption information of this volume type (admin only)

Expand
Table 80.294. Output formatter options
ValueSummary

-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 to show multiple columns

Expand
Table 80.295. JSON formatter options
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 80.296. Shell formatter options
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

Expand
Table 80.297. Table formatter options
ValueSummary

--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.

80.71. volume type unset

Unset volume type properties

Usage:

openstack volume type unset [-h] [--property <key>]
                                   [--project <project>]
                                   [--project-domain <project-domain>]
                                   [--encryption-type]
                                   <volume-type>

Expand
Table 80.298. Positional arguments
ValueSummary

<volume-type>

Volume type to modify (name or id)

Expand
Table 80.299. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--property <key>

Remove a property from this volume type (repeat option to remove multiple properties)

--project <project>

Removes volume type access to project (name or id) (admin only)

--project-domain <project-domain>

Domain the project belongs to (name or id). this can be used in case collisions between project names exist.

--encryption-type

Remove the encryption type for this volume type (admin only)

80.72. volume unset

Unset volume properties

Usage:

openstack volume unset [-h] [--property <key>] [--image-property <key>]
                              <volume>

Expand
Table 80.300. Positional arguments
ValueSummary

<volume>

Volume to modify (name or id)

Expand
Table 80.301. Command arguments
ValueSummary

-h, --help

Show this help message and exit

--property <key>

Remove a property from volume (repeat option to remove multiple properties)

--image-property <key>

Remove an image property from volume (repeat option to remove multiple image properties)

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top