An abstract interface that provides location-related information for a service. Service-specific metadata is provided through theLocation.metadatafield.
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 inAIP-160.
page_size
int32
The maximum number of results to return. If not set, the service selects a default.
page_token
string
A page token received from thenext_page_tokenfield in the response. Send that page token to receive the subsequent page.
extra_location_types[]
string
Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
[[["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-08-28 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eLocations\u003c/code\u003e interface, which provides location-related information for Google Cloud services.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetLocation\u003c/code\u003e RPC method retrieves details about a specific location, requiring the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListLocations\u003c/code\u003e RPC method allows listing supported locations for a service, also requiring the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope, with options to filter results and manage pagination.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eListLocationsRequest\u003c/code\u003e offers filtering capabilities, such as narrowing results by display name and controlling the number of results per page.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLocation\u003c/code\u003e provides fields like name, ID, display name, labels, and service-specific metadata to describe a Google Cloud location.\u003c/p\u003e\n"]]],[],null,["Index\n\n- [Locations](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.Locations) (interface)\n- [GetLocationRequest](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.GetLocationRequest) (message)\n- [ListLocationsRequest](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.ListLocationsRequest) (message)\n- [ListLocationsResponse](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.ListLocationsResponse) (message)\n- [Location](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.Location) (message)\n\nLocations An abstract interface that provides location-related information for a service. Service-specific metadata is provided through the [Location.metadata](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.Location.FIELDS.google.protobuf.Any.google.cloud.location.Location.metadata) field.\n\n| GetLocation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` rpc GetLocation(`[GetLocationRequest](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.GetLocationRequest)`) returns (`[Location](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.Location)`) ` Gets information about a location. Authorization scopes : Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](/docs/authentication#authorization-gcp). |\n\n| ListLocations |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` rpc ListLocations(`[ListLocationsRequest](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.ListLocationsRequest)`) returns (`[ListLocationsResponse](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.ListLocationsResponse)`) ` Lists information about the supported locations for this service. Authorization scopes : Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](/docs/authentication#authorization-gcp). |\n\nGetLocationRequest The request message for [Locations.GetLocation](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.Locations.GetLocation).\n\n| Fields ||\n|--------|------------------------------------------|\n| `name` | `string` Resource name for the location. |\n\nListLocationsRequest The request message for [Locations.ListLocations](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.Locations.ListLocations).\n\n| Fields ||\n|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The resource that owns the locations collection, if applicable. |\n| `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](https://google.aip.dev/160). |\n| `page_size` | `int32` The maximum number of results to return. If not set, the service selects a default. |\n| `page_token` | `string` A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. |\n| `extra_location_types[]` | `string` Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. |\n\nListLocationsResponse The response message for [Locations.ListLocations](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.Locations.ListLocations).\n\n| Fields ||\n|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `locations[]` | [Location](/backup-disaster-recovery/docs/reference/rpc/google.cloud.location#google.cloud.location.Location) A list of locations that matches the specified filter in the request. |\n| `next_page_token` | `string` The standard List next-page token. |\n\nLocation A resource that represents a Google Cloud location.\n\n| Fields ||\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"` |\n| `location_id` | `string` The canonical id for this location. For example: `\"us-east1\"`. |\n| `display_name` | `string` The friendly name for this location, typically a nearby city name. For example, \"Tokyo\". |\n| `labels` | `map\u003cstring, string\u003e` Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"} |\n| `metadata` | [Any](https://protobuf.dev/reference/protobuf/google.protobuf/#any) Service-specific metadata. For example the available capacity at the given location. |"]]