locations
Creates, updates, deletes, gets or lists a locations
resource.
Overview
Name | locations |
Type | Resource |
Id | google.apphub.locations |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Resource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1" |
displayName | string | The friendly name for this location, typically a nearby city name. For example, "Tokyo". |
labels | object | Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} |
locationId | string | The canonical id for this location. For example: "us-east1" . |
metadata | object | Service-specific metadata. For example the available capacity at the given location. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId | Gets information about a location. |
list | SELECT | projectsId | Lists information about the supported locations for this service. |
detach_service_project_attachment | EXEC | locationsId, projectsId | Detaches 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. |
lookup_service_project_attachment | EXEC | locationsId, projectsId | 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. |
SELECT
examples
Lists information about the supported locations for this service.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.apphub.locations
WHERE projectsId = '{{ projectsId }}';