HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/network_connectivity/hubs/list.yaml
- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: List hubs.
    description: Retrieve and display a list of all hubs in the specified project.

    examples: |
      To list all hubs, run:

        $ {command}

  request: &request
    ALPHA:
      api_version: v1alpha1
    BETA:
      api_version: v1beta
    GA:
      api_version: v1
    collection: networkconnectivity.projects.locations.global.hubs
    modify_request_hooks:
    - googlecloudsdk.command_lib.network_connectivity.util:AppendLocationsGlobalToParent

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.network_connectivity.resources:project
      help_text: Project of the hubs to display.

  output:
    format: table(name.basename(), description)