Stay organized with collections
Save and categorize content based on your preferences.
Lists information about the supported locations for this service.
Arguments
Parameters
name
string
Required. The resource that owns the locations collection, if applicable.
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.
The maximum number of results to return. If not set, the service selects a default.
pageToken
string
A page token received from the next_page_token field in the response. Send that page token to receive the subsequent page.
location
string
Location of the HTTP endpoint. For example, us-central1 or asia-southeast1. If not set, the global endpoint https://run.googleapis.com will be used, which supports list methods only. See service endpoints for more location options.
Raised exceptions
Exceptions
ConnectionError
In case of a network problem (such as DNS failure or refused connection).
HttpError
If the response status is >= 400 (excluding 429 and 503).
TimeoutError
If a long-running operation takes longer to finish than the specified timeout limit.
TypeError
If an operation or function receives an argument of the wrong type.
ValueError
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout.
[[["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-09-03 UTC."],[],[],null,["# Method: googleapis.run.v1.projects.locations.list\n\nLists information about the supported locations for this service.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`ListLocationsResponse`](https://cloud.google.com/workflows/docs/reference/googleapis/run/v1/Overview#ListLocationsResponse).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/run/docs/reference/rest/v1/projects.locations/list). \n\n### YAML\n\n```yaml\n- list:\n call: googleapis.run.v1.projects.locations.list\n args:\n name: ...\n filter: ...\n pageSize: ...\n pageToken: ...\n result: listResult\n```\n\n### JSON\n\n```json\n[\n {\n \"list\": {\n \"call\": \"googleapis.run.v1.projects.locations.list\",\n \"args\": {\n \"name\": \"...\",\n \"filter\": \"...\",\n \"pageSize\": \"...\",\n \"pageToken\": \"...\"\n },\n \"result\": \"listResult\"\n }\n }\n]\n```"]]