locations
Creates, updates, deletes, gets or lists a locations
resource.
Overview
Name | locations |
Type | Resource |
Id | google.logging.locations |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_get
- organizations_locations_get
- folders_locations_get
- billing_accounts_locations_get
- locations_list
- projects_locations_list
- organizations_locations_list
- folders_locations_list
- billing_accounts_locations_list
Successful response
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. |
Successful response
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. |
Successful response
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. |
Successful response
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. |
Successful response
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. |
Successful response
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. |
Successful response
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. |
Successful response
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. |
Successful response
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
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_get | select | projectsId , locationsId | Gets information about a location. | |
organizations_locations_get | select | organizationsId , locationsId | Gets information about a location. | |
folders_locations_get | select | foldersId , locationsId | Gets information about a location. | |
billing_accounts_locations_get | select | billingAccountsId , locationsId | Gets information about a location. | |
locations_list | select | name | filter , pageSize , pageToken , extraLocationTypes | Lists information about the supported locations for this service. |
projects_locations_list | select | projectsId | filter , pageSize , pageToken , extraLocationTypes | Lists information about the supported locations for this service. |
organizations_locations_list | select | organizationsId | filter , pageSize , pageToken , extraLocationTypes | Lists information about the supported locations for this service. |
folders_locations_list | select | foldersId | filter , pageSize , pageToken , extraLocationTypes | Lists information about the supported locations for this service. |
billing_accounts_locations_list | select | billingAccountsId | filter , pageSize , pageToken , extraLocationTypes | Lists information about the supported locations for this service. |
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.
Name | Datatype | Description |
---|---|---|
billingAccountsId | string | |
foldersId | string | |
locationsId | string | |
name | string | |
organizationsId | string | |
projectsId | string | |
extraLocationTypes | string | |
filter | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- projects_locations_get
- organizations_locations_get
- folders_locations_get
- billing_accounts_locations_get
- locations_list
- projects_locations_list
- organizations_locations_list
- folders_locations_list
- billing_accounts_locations_list
Gets information about a location.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.logging.locations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required;
Gets information about a location.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.logging.locations
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required;
Gets information about a location.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.logging.locations
WHERE foldersId = '{{ foldersId }}' -- required
AND locationsId = '{{ locationsId }}' -- required;
Gets information about a location.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.logging.locations
WHERE billingAccountsId = '{{ billingAccountsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required;
Lists information about the supported locations for this service.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.logging.locations
WHERE name = '{{ name }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND extraLocationTypes = '{{ extraLocationTypes }}';
Lists information about the supported locations for this service.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.logging.locations
WHERE projectsId = '{{ projectsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND extraLocationTypes = '{{ extraLocationTypes }}';
Lists information about the supported locations for this service.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.logging.locations
WHERE organizationsId = '{{ organizationsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND extraLocationTypes = '{{ extraLocationTypes }}';
Lists information about the supported locations for this service.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.logging.locations
WHERE foldersId = '{{ foldersId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND extraLocationTypes = '{{ extraLocationTypes }}';
Lists information about the supported locations for this service.
SELECT
name,
displayName,
labels,
locationId,
metadata
FROM google.logging.locations
WHERE billingAccountsId = '{{ billingAccountsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND extraLocationTypes = '{{ extraLocationTypes }}';