File: //proc/thread-self/root/snap/google-cloud-cli/current/lib/surface/redis/clusters/list.yaml
- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: |
      List Memorystore for Redis Cluster instances.
    description: |
      List all clusters under the specified project and region.
      To specify the maximum number of clusters to list, use the --limit flag.
    examples: |
      To list up to five clusters, run:
        $ {command} --limit=5
  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.redis.resources:region
      help_text: |
        The region of the clusters to display.
  request:
    ALPHA:
      api_version: v1alpha1
    BETA:
      api_version: v1beta1
    GA:
      api_version: v1
    collection: redis.projects.locations.clusters
  response:
    id_field: name
  output:
    format: |
      table(
        name.basename():label=CLUSTER_NAME:sort=2,
        state:label=STATUS,
        name.segment(3):label=REGION,
        nodeType:label=NODE_TYPE,
        preciseSizeGb:label=PRECISE_SIZE_GB,
        sizeGb:label=SIZE_GB,
        shardCount:label=SHARD_COUNT,
        replicaCount:label=REPLICA_COUNT,
        createTime.date()
      )