The resource that owns the locations collection, if applicable. It takes the formprojects/{project}.
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 inAIP-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 thenextPageTokenfield in the response. Send that page token to receive the subsequent page.
[[["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 2025-06-10 UTC."],[[["\u003cp\u003eThis API endpoint \u003ccode\u003eprojects.locations.list\u003c/code\u003e retrieves a list of supported locations for the service.\u003c/p\u003e\n"],["\u003cp\u003eThe API uses a \u003ccode\u003eGET\u003c/code\u003e request with the format \u003ccode\u003ehttps://{endpoint}/v1/{name}/locations\u003c/code\u003e, where the \u003ccode\u003ename\u003c/code\u003e parameter specifies the project.\u003c/p\u003e\n"],["\u003cp\u003eYou can filter results using the \u003ccode\u003efilter\u003c/code\u003e query parameter, limit the number of results with \u003ccode\u003epageSize\u003c/code\u003e, and use \u003ccode\u003epageToken\u003c/code\u003e for pagination.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be empty, and the successful response is a \u003ccode\u003eListLocationsResponse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope and the \u003ccode\u003edocumentai.locations.list\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,["# Method: locations.list\n\n**Full name**: projects.locations.list\n\nLists information about the supported locations for this service.\n\n### HTTP request\n\n`GET https://{endpoint}/v1/{name}/locations`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/document-ai/docs/reference/rest#rest_endpoints).\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [ListLocationsResponse](/document-ai/docs/reference/rest/Shared.Types/ListLocationsResponse).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `documentai.locations.list`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]