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, locationsId, workloadIdentityPoolsIdReturns the trust boundary info for a given workload identity pool.

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
workloadIdentityPoolsIdstring

SELECT examples

Returns the trust boundary info for a given workload identity pool.

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