Skip to main content

allowed_locations

Creates, updates, deletes, gets or lists an allowed_locations resource.

Overview

Nameallowed_locations
TypeResource
Idgoogle.iamcredentials.allowed_locations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
encodedLocationsstringOutput only. The hex encoded bitmap of the trust boundary locations
locationsarrayOutput only. The human readable trust boundary locations. For example, ["us-central1", "europe-west1"]

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_allowed_locationsselectprojectsId, serviceAccountsIdReturns the trust boundary info for a given service account.

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
projectsIdstring
serviceAccountsIdstring

SELECT examples

Returns the trust boundary info for a given service account.

SELECT
encodedLocations,
locations
FROM google.iamcredentials.allowed_locations
WHERE projectsId = '{{ projectsId }}' -- required
AND serviceAccountsId = '{{ serviceAccountsId }}' -- required
;