HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/394/lib/surface/compute/storage_pools/list.yaml
- release_tracks: [BETA, GA]
  help_text:
    brief: "View storage pools."
    description: |
      View storage pools.

      The compact, default output format is explained below:

      The type column contains all three types -- storage pool type, capacity and performance.
      For example, the value

      > "Hdb/Adv/Std"

      means the storage pool type is "hyperdisk-balanced", its capacity type is "advanced", and its
      performance type is "standard."

      The list of storage pool abbreviations is as follows:

      * HdB: Hyperdisk Balanced
      * HdT: Hyperdisk Throughput

      The list of capacity/performance abbreviations is as follows:

      * Adv: Advanced
      * Std: Standard

      The capacity column, and standard-performance iops and throughput columns describe the used, provisioned, and the utilization
      rate. For example, the following value for capacity:

      40 / 50 (80%)

      means 40 TB of it is used, 50 TB provisioned, and its utilization rate is 80%.
      The utilization rate is equivalent to used capacity divided by provisioned capacity.

      For advanced-performance storage pools, the iops and throughput columns will simply show the
      provisioned values.

    examples: |
        To display all storage pools in all regions and zones, run the following command:

        $ {command}

  request:
    ALPHA:
      api_version: alpha
    BETA:
      api_version: beta
    GA:
      api_version: v1

    collection: compute.storagePools
    method: aggregatedList
    static_fields:
      returnPartialSuccess: true

  arguments:
    resource:
      help_text: |
        The project of the storage pools to list.
      spec: !REF googlecloudsdk.command_lib.compute.resources:compute_project
      override_resource_collection: true

  response:
    modify_response_hooks:
    - googlecloudsdk.api_lib.compute.response_hooks:flatten_aggregated_list:field_name=storagePools
    - googlecloudsdk.api_lib.compute.storage_pools.modify_response_hooks:make_serializable
    - googlecloudsdk.api_lib.compute.storage_pools.list_formatter:format_for_listing

  output:
    format: |
      table(
        name,
        zone.scope("zones"),
        formattedTypes:label=TYPE,
        status.diskCount:label=DISK_COUNT,
        formattedCapacity:label=CAPACITY_TB,
        formattedIops.yesno(no="<n/a>"):label=IOPS,
        formattedThroughput.yesno(no="<n/a>"):label=THROUGHPUT,
        state)


- release_tracks: [ALPHA]
  help_text:
    brief: "View storage pools."
    description: |
      View storage pools.

      The compact, default output format is explained below:

      The type column contains all three types -- storage pool type, capacity and performance.
      For example, the value

      > "Hdb/Adv/Std"

      means the storage pool type is "hyperdisk-balanced", its capacity type is "advanced", and its
      performance type is "standard."

      The list of storage pool abbreviations is as follows:

      * HdB: Hyperdisk Balanced
      * HdT: Hyperdisk Throughput

      The list of capacity/performance abbreviations is as follows:

      * Adv: Advanced
      * Std: Standard

      The capacity column, and standard-performance iops and throughput columns describe the used, provisioned, and the utilization
      rate. For example, the following value for capacity:

      40 / 50 (80%)

      means 40 TB of it is used, 50 TB provisioned, and its utilization rate is 80%.
      The utilization rate is equivalent to used capacity divided by provisioned capacity.

      For advanced-performance storage pools, the iops and throughput columns will simply show the
      provisioned values.

    examples: |
        To display all storage pools in all regions and zones, run the following command:

        $ {command}

  request:
    ALPHA:
      api_version: alpha
    BETA:
      api_version: beta
    GA:
      api_version: v1

    collection: compute.storagePools
    method: aggregatedList
    static_fields:
      returnPartialSuccess: true

  arguments:
    resource:
      help_text: |
        The project of the storage pools to list.
      spec: !REF googlecloudsdk.command_lib.compute.resources:compute_project
      override_resource_collection: true

  response:
    modify_response_hooks:
    - googlecloudsdk.api_lib.compute.response_hooks:flatten_aggregated_list:field_name=storagePools
    - googlecloudsdk.api_lib.compute.storage_pools.modify_response_hooks:make_serializable
    - googlecloudsdk.api_lib.compute.storage_pools.list_formatter:format_for_listing

  output:
    format: |
      multi(
        storagePools:format='table[box, title="StoragePools"](
          name,
          zone.scope("zones"),
          formattedTypes:label=TYPE,
          status.diskCount:label=DISK_COUNT,
          formattedCapacity:label=CAPACITY_TB,
          formattedIops.yesno(no="<n/a>"):label=IOPS,
          formattedThroughput.yesno(no="<n/a>"):label=THROUGHPUT,
          state
        )',
        exapools:format='table[box, title="Exapools"](
          name,
          zone.scope("zones"),
          formattedTypes:label=TYPE,
          status.diskCount:label=DISK_COUNT,
          formattedCapacity:label=CAPACITY_TB,
          formattedExapoolMaxRwIops:label=MAX_IOPS,
          formattedExapoolMaxRwThroughput:label=MAX_THROUGHPUT,
          state
        )'
      )