Skip to main content

identity_aware_proxy_clients

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

Overview​

Nameidentity_aware_proxy_clients
TypeResource
Idgoogle.iap.identity_aware_proxy_clients

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. Unique identifier of the OAuth client.
displayNamestringHuman-friendly name given to the OAuth client.
secretstringOutput only. Client secret of the OAuth client.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, brandsId, identityAwareProxyClientsIdRetrieves an Identity Aware Proxy (IAP) OAuth client. Requires that the client is owned by IAP.
listselectprojectsId, brandsIdpageSize, pageTokenLists the existing clients for the brand.
createinsertprojectsId, brandsIdCreates an Identity Aware Proxy (IAP) OAuth client. The client is owned by IAP. Requires that the brand for the project exists and that it is set for internal-only use.
deletedeleteprojectsId, brandsId, identityAwareProxyClientsIdDeletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing obsolete clients, managing the number of clients in a given project, and cleaning up after tests. Requires that the client is owned by IAP.
reset_secretexecprojectsId, brandsId, identityAwareProxyClientsIdResets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the secret was compromised. Requires that the client is owned by IAP.

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
brandsIdstring
identityAwareProxyClientsIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

Retrieves an Identity Aware Proxy (IAP) OAuth client. Requires that the client is owned by IAP.

SELECT
name,
displayName,
secret
FROM google.iap.identity_aware_proxy_clients
WHERE projectsId = '{{ projectsId }}' -- required
AND brandsId = '{{ brandsId }}' -- required
AND identityAwareProxyClientsId = '{{ identityAwareProxyClientsId }}' -- required
;

INSERT examples​

Creates an Identity Aware Proxy (IAP) OAuth client. The client is owned by IAP. Requires that the brand for the project exists and that it is set for internal-only use.

INSERT INTO google.iap.identity_aware_proxy_clients (
data__displayName,
projectsId,
brandsId
)
SELECT
'{{ displayName }}',
'{{ projectsId }}',
'{{ brandsId }}'
RETURNING
name,
displayName,
secret
;

DELETE examples​

Deletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing obsolete clients, managing the number of clients in a given project, and cleaning up after tests. Requires that the client is owned by IAP.

DELETE FROM google.iap.identity_aware_proxy_clients
WHERE projectsId = '{{ projectsId }}' --required
AND brandsId = '{{ brandsId }}' --required
AND identityAwareProxyClientsId = '{{ identityAwareProxyClientsId }}' --required
;

Lifecycle Methods​

Resets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the secret was compromised. Requires that the client is owned by IAP.

EXEC google.iap.identity_aware_proxy_clients.reset_secret
@projectsId='{{ projectsId }}' --required,
@brandsId='{{ brandsId }}' --required,
@identityAwareProxyClientsId='{{ identityAwareProxyClientsId }}' --required
;