Skip to main content

service_accounts

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

Overview

Nameservice_accounts
TypeResource
Idgoogle.iamcredentials.service_accounts

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
generate_access_tokenexecprojectsId, serviceAccountsIdGenerates an OAuth 2.0 access token for a service account.
generate_id_tokenexecprojectsId, serviceAccountsIdGenerates an OpenID Connect ID token for a service account.
sign_blobexecprojectsId, serviceAccountsIdSigns a blob using a service account's system-managed private key.
sign_jwtexecprojectsId, serviceAccountsIdSigns a JWT using a service account's system-managed private key.

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

Lifecycle Methods

Generates an OAuth 2.0 access token for a service account.

EXEC google.iamcredentials.service_accounts.generate_access_token 
@projectsId='{{ projectsId }}' --required,
@serviceAccountsId='{{ serviceAccountsId }}' --required
@@json=
'{
"delegates": "{{ delegates }}",
"scope": "{{ scope }}",
"lifetime": "{{ lifetime }}"
}';