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/memcache/instances/list.yaml
- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: |
      List Memorystore Memcached instances.
    description: |
      List all Memcached instances under the specified project and region.

      Specify the maximum number of instances to list using the `--limit` flag.
    examples: |
      To list all Memcached instances in region `us-central1`, run:

          $ {command} --region=us-central1

      To list up to five Memcached instances in region `us-central1`, run:

          $ {command} --limit=5 --region=us-central1

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.memcache.resources:region
      help_text: |
        Region of the instances to display.

  request:
    ALPHA:
      api_version: v1beta2
    BETA:
      api_version: v1beta2
    GA:
      api_version: v1
    collection: memcache.projects.locations.instances

  response:
    id_field: name

  output:
    format: |
      table(
        name.basename():label=INSTANCE_NAME:sort=2,
        name.segment(3):label=REGION,
        authorizedNetwork.basename():label=NETWORK,
        nodeCount:label=NODE_COUNT,
        nodeConfig.cpuCount:label=NODE_CPU,
        nodeConfig.memorySizeMb:label=NODE_MB,
        memcacheVersion:label=MEMCACHED_VERSION,
        state:label=STATUS,
        createTime.date(),
        updateTime.date()
      )