---
title: "GET /v1/projects/{projectsId}/locations"
method: GET
path: "/v1/projects/{projectsId}/locations"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations

`GET /v1/projects/{projectsId}/locations`

## Request

- Base URL: `https://redis.googleapis.com`
- URL: `https://redis.googleapis.com/v1/projects/{projectsId}/locations`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/redis.read-write`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/redis.read-write`

Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

## Path parameters

- `projectsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `extraLocationTypes` string[]
- `filter` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- ListLocationsResponse: The response message for Locations.ListLocations.
  - `locations` Location[]: A list of locations that matches the specified filter in the request.
    - `displayName` string: The friendly name for this location, typically a nearby city name. For example, "Tokyo".
    - `labels` object: Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
    - `locationId` string: Resource ID for the region. For example: "us-east1".
    - `metadata` object: Output only. The set of available zones in the location. The map is keyed by the lowercase ID of each zone, as defined by Compute Engine. These keys can be specified in `location_id` or `alternative_location_id` fields when creating a Redis instance.
    - `name` string: Full resource name for the region. For example: "projects/example-project/locations/us-east1".
  - `nextPageToken` string: The standard List next-page token.

## Changes

- **2026-12-06** `4123e0457dbf`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/redis.read-write` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/redis.read-write` was removed from the endpoint's security scheme `Oauth2c`
- **2026-12-01** `efe42167e80b`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/redis.read-write` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/redis.read-write` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/redis/changes/v1/projects/:projectsId/locations/get.md)

---

[API](https://skmtc.dev/google/apis/redis.md) - [All operations](https://skmtc.dev/google/apis/redis/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/redis/revisions/4123e0457dbf?raw)
