Skip to main content

authorizations

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

Overview​

Nameauthorizations
TypeResource
Idgoogle.agentidentity.authorizations

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. name of resource
clientUserIdstringOutput only. The client_user_id provided by the client application for their end user. Not verified by Google.
createTimestring (google-datetime)Output only. [Output only] Create time stamp
scopesarrayOutput only. The scopes actually granted by the end user during the consent flow.
statestringOutput only. The state of the authorization. (STATE_UNSPECIFIED, ACTIVE, SUSPENDED)
updateTimestring (google-datetime)Output only. [Output only] Update time stamp

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, authProvidersId, authorizationsIdGets details of a single Authorization.
listselectprojectsId, locationsId, authProvidersIdfilter, orderBy, pageSize, pageTokenLists Authorizations in a given project and location.
deletedeleteprojectsId, locationsId, authProvidersId, authorizationsIdrequestIdDeletes a single Authorization.

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
authProvidersIdstring
authorizationsIdstring
locationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring

SELECT examples​

Gets details of a single Authorization.

SELECT
name,
clientUserId,
createTime,
scopes,
state,
updateTime
FROM google.agentidentity.authorizations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND authProvidersId = '{{ authProvidersId }}' -- required
AND authorizationsId = '{{ authorizationsId }}' -- required
;

DELETE examples​

Deletes a single Authorization.

DELETE FROM google.agentidentity.authorizations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND authProvidersId = '{{ authProvidersId }}' --required
AND authorizationsId = '{{ authorizationsId }}' --required
AND requestId = '{{ requestId }}'
;