File: //snap/google-cloud-cli/current/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()
)