allowed_locations
Creates, updates, deletes, gets or lists an allowed_locations resource.
Overview
| Name | allowed_locations |
| Type | Resource |
| Id | google.iamcredentials.allowed_locations |
Fields
The following fields are returned by SELECT queries:
- get_allowed_locations
| Name | Datatype | Description |
|---|---|---|
encodedLocations | string | Output only. The hex encoded bitmap of the trust boundary locations |
locations | array | Output only. The human readable trust boundary locations. For example, ["us-central1", "europe-west1"] |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_allowed_locations | select | projectsId, serviceAccountsId | Returns 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.
| Name | Datatype | Description |
|---|---|---|
projectsId | string | |
serviceAccountsId | string |
SELECT examples
- get_allowed_locations
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
;