vinfra service compute volume list
List compute volumes:
usage: vinfra service compute volume list [--long] [--limit <num>] [--marker <volume>] [--name <name>] [--id <id>] [--project <project>] [--status <status>] [--size <size>] [--storage-policy <host>]
--long
- Enable access and listing of all fields of objects.
--limit <num>
- The maximum number of volumes to list. To list all volumes, set the option to -1.
--marker <volume>
- List volumes after the marker.
--name <name>
- List volumes with the specified name or use a filter. Supported filter operator:
contains
. The filter format is<operator>:<value1>[,<value2>,…]
. --id <id>
- Show a volume with the specified ID or list volumes using a filter. Supported filter operator:
in
. The filter format is<operator>:<value1>[,<value2>,…]
. --project <project>
- List volumes that belong to the specified project ID. Can only be performed by system administrators.
--status <status>
- List volumes with the specified status.
--size <size>
- List volumes with the specified size.
--storage-policy <host>
- List volumes with the specified storage policy name or ID.
Example:
# vinfra service compute volume list -c id -c name -c size -c status +--------------------------------------+----------+------+-----------+ | id | name | size | status | +--------------------------------------+----------+------+-----------+ | c9c0e9e7-ce7a-4566-99d5-d7e40f2987ab | myvolume | 8 | available | +--------------------------------------+----------+------+-----------+
This command lists volumes available to the compute cluster.