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/redis/instances/get_auth_string.yaml
release_tracks: [ALPHA, BETA, GA]
help_text:
  brief: |
    Show AUTH string for a Memorystore Redis instance.
  description: |
    Show AUTH string for a Memorystore Redis instance.

    Result is empty if AUTH is disabled for the instance.

    This command can fail for the following reasons:
      * The instance specified does not exist.
      * The active account does not have permission to view the AUTH string
  examples: |
    To display the AUTH string for an instance with the name `my-redis-instance` in the default
    region, run:

      $ {command} my-redis-instance

arguments:
  resource:
    spec: !REF googlecloudsdk.command_lib.redis.resources:instance
    help_text: |
      Arguments and flags that specify the Memorystore Redis instance you want
      to view the AUTH string for.

request:
  ALPHA:
    api_version: v1alpha1
  BETA:
    api_version: v1beta1
  GA:
    api_version: v1
  collection: redis.projects.locations.instances
  method: getAuthString

output:
  format: "yaml[private]"