[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.locations/list [Back]  [Original]

Method: projects.locations.list  |  Dialogflow ES  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Method: projects.locations.list Stay organized with collections Save and categorize content based on your preferences.

Lists information about the supported locations for this service.

This method lists locations based on the resource scope provided in the ListLocationsRequest.name field:

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.

HTTP request

GET https://{endpoint}/v2/{name=projects/*}/locations

Where {endpoint} is one of the supported service endpoints.

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The resource that owns the locations collection, if applicable.

Query parameters

Parameters
filter

string

A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160.

pageSize

integer

The maximum number of results to return. If not set, the service selects a default.

pageToken

string

A page token received from the nextPageToken field in the response. Send that page token to receive the subsequent page.

extraLocationTypes[]

string

Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.

Request body

The request body must be empty.

Response body

The response message for Locations.ListLocations.

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

JSON representation
{
  "locations": [
    {
      object (Location)
    }
  ],
  "nextPageToken": string
}
Fields
locations[]

object (Location)

A list of locations that matches the specified filter in the request.

nextPageToken

string

The standard List next-page token.

Authorization scopes

Requires one of the following OAuth scopes:

For more information, see the Authentication Overview.

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-05-03 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-05-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page