openstack Verified current stable Not installed? Cloud Infrastructure

Openstack / List Volumes All Projects

List Volumes All Projects

Use this command to list all storage volumes across all projects in OpenStack efficiently.

$
Terminal
openstack volume list --all-projects

When To Use

Auditing storage resources across multiple projects in a cloud environment.

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
+--------------------------------------+-------------------+------+-------------+----------+-------------------+
| ID                                   | Name              | Status| Size        | Volume Type | Project ID        |
+--------------------------------------+-------------------+------+-------------+----------+-------------------+
| 12345678-1234-5678-1234-567812345678 | volume1           | available | 100       | standard  | project1          |
| 87654321-4321-6789-4321-678943214567 | volume2           | in-use   | 200       | standard  | project2          |
+--------------------------------------+-------------------+------+-------------+----------+-------------------+

Command Breakdown

What each part is doing

openstack
Base Command
The executable that performs this operation. Here it runs Openstack before the shell applies any redirect operators.
--all-projects
Command Option
Tool-specific option used by this command invocation.

How To Run

Execution path

  1. Step 1

    Open your terminal or command line interface.

  2. Step 2

    Run the command: openstack volume list --all-projects.

  3. Step 3

    Review the output for a list of all volumes across projects.

Alternative Approaches

Comparable commands in other tools

Alternative cloud infrastructure tools for the same job.