Skip to main content

credentials

Creates, updates, deletes, gets or lists a credentials resource.

Overview​

Namecredentials
TypeResource
Idgoogle.agentidentitycredentials.credentials

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
finalizeexecprojectsId, locationsId, authProvidersIdFinalizes the credentials after a successful consent flow.
retrieveexecprojectsId, locationsId, authProvidersIdRetrieves authorization credentials for an auth provider, or indicates what action needs to be taken to obtain credentials. If the token field in the response is populated, credential retrieval was successful. If one of the fields in the result oneof is populated, further action is required to obtain credentials, such as redirecting the user for consent. View comments on RetrieveCredentialsResponse for more information.

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

Lifecycle Methods​

Finalizes the credentials after a successful consent flow.

EXEC google.agentidentitycredentials.credentials.finalize
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@authProvidersId='{{ authProvidersId }}' --required
@@json=
'{
"consentNonce": "{{ consentNonce }}",
"userId": "{{ userId }}",
"userIdValidationState": "{{ userIdValidationState }}"
}'
;