Skip to main content

locations

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

Overview

Namelocations
TypeResource
Idgoogle.apphub.locations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringResource name for the location, which may vary between implementations. 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"}
locationIdstringThe canonical id for this location. For example: "us-east1".
metadataobjectService-specific metadata. For example the available capacity at the given location.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsIdGets information about a location.
listselectprojectsIdfilter, pageSize, pageToken, extraLocationTypesLists information about the supported locations for this service.
lookup_service_project_attachmentexecprojectsId, locationsIdLists a service project attachment for a given service project. You can call this API from any project to find if it is attached to a host project.
detach_service_project_attachmentexecprojectsId, locationsIdDetaches a service project from a host project. You can call this API from any service project without needing access to the host project that it is attached to.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
extraLocationTypesstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets information about a location.

SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.apphub.locations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required;

Lifecycle Methods

Lists a service project attachment for a given service project. You can call this API from any project to find if it is attached to a host project.

EXEC google.apphub.locations.lookup_service_project_attachment 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required;