# Method: projects.locations.instances.getAuthString

- [HTTP request](https://docs.cloud.google.com/memorystore/docs/redis/reference/rest/v1beta1/projects.locations.instances/getAuthString#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/memorystore/docs/redis/reference/rest/v1beta1/projects.locations.instances/getAuthString#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/memorystore/docs/redis/reference/rest/v1beta1/projects.locations.instances/getAuthString#body.request_body)
- [Response body](https://docs.cloud.google.com/memorystore/docs/redis/reference/rest/v1beta1/projects.locations.instances/getAuthString#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/memorystore/docs/redis/reference/rest/v1beta1/projects.locations.instances/getAuthString#body.InstanceAuthString.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/memorystore/docs/redis/reference/rest/v1beta1/projects.locations.instances/getAuthString#body.aspect)
- [Examples](https://docs.cloud.google.com/memorystore/docs/redis/reference/rest/v1beta1/projects.locations.instances/getAuthString#examples)
- [Try it!](https://docs.cloud.google.com/memorystore/docs/redis/reference/rest/v1beta1/projects.locations.instances/getAuthString#try-it)

Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response will be empty. This information is not included in the details returned to instances.get.

### HTTP request

`GET https://redis.googleapis.com/v1beta1/{name=projects/*/locations/*/instances/*}/authString`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. Redis instance resource name using the form: `projects/{projectId}/locations/{locationId}/instances/{instanceId}` where `locationId` refers to a GCP region. |

### Request body

The request body must be empty.

### Response body

Instance AUTH string details.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "authString": string } ``` |

| Fields ||
|---|---|
| `authString` | `string` AUTH string set on the instance. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).