Skip to main content

locations

Creates, updates, deletes, gets or lists a locations resource.

Overview

Namelocations
TypeResource
Idgoogle.redis.locations

Fields

NameDatatypeDescription
namestringFull resource name for the region. For example: "projects/example-project/locations/us-east1".
displayNamestringThe friendly name for this location, typically a nearby city name. For example, "Tokyo".
labelsobjectCross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
locationIdstringResource ID for the region. For example: "us-east1".
metadataobjectOutput 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.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsIdGets information about a location.
listSELECTprojectsIdLists information about the supported locations for this service.

SELECT examples

Lists information about the supported locations for this service.

SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.redis.locations
WHERE projectsId = '{{ projectsId }}';