File: //snap/google-cloud-cli/current/lib/surface/managed_kafka/clusters/list.yaml
release_tracks: [GA, ALPHA, BETA]
help_text:
brief: |
List all Managed Service for Apache Kafka clusters in a given location.
description: |
List all Apache Kafka for BigQuery clusters in a given location.
To specify the maximum number of clusters to list, use the --limit flag.
examples: |
To list all clusters in a given location, such as us-central1, run the following:
$ {command} --location=us-central1
request:
collection: managedkafka.projects.locations.clusters
arguments:
resource:
help_text: |
Identifies the region which contains all the clusters to be listed.
spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:location
response:
modify_response_hooks:
- googlecloudsdk.command_lib.managed_kafka.util:ListWithBootstrapAddr
output:
format: |
table[box](
name.segment(5):label=NAME,
bootstrapAddress:label=BOOTSTRAP,
capacityConfig.vcpuCount:label=VCPU,
capacityConfig.memoryBytes:label=MEMORY_BYTES,
state:label=STATE,
gcpConfig.accessConfig.networkConfigs.subnet.list(separator="
"):label=NETWORK
)