Skip to main content

workload_identity_pool_provider_keys

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

Overview

Nameworkload_identity_pool_provider_keys
TypeResource
Idgoogle.iam.workload_identity_pool_provider_keys

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the key.
expireTimestringOutput only. Time after which the key will be permanently purged and cannot be recovered. Note that the key may get purged before this timestamp if the total limit of keys per provider is crossed.
keyDataobjectRepresents a public key data along with its format.
statestringOutput only. The state of the key.
usestringRequired. The purpose of the key.

Methods

NameAccessible byRequired ParamsDescription
getSELECTkeysId, locationsId, projectsId, providersId, workloadIdentityPoolsIdGets an individual WorkloadIdentityPoolProviderKey.
listSELECTlocationsId, projectsId, providersId, workloadIdentityPoolsIdLists all non-deleted WorkloadIdentityPoolProviderKeys in a project. If show_deleted is set to true, then deleted pools are also listed.
createINSERTlocationsId, projectsId, providersId, workloadIdentityPoolsIdCreate a new WorkloadIdentityPoolProviderKey in a WorkloadIdentityPoolProvider.
deleteDELETEkeysId, locationsId, projectsId, providersId, workloadIdentityPoolsIdDeletes an WorkloadIdentityPoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent.
undeleteEXECkeysId, locationsId, projectsId, providersId, workloadIdentityPoolsIdUndeletes an WorkloadIdentityPoolProviderKey, as long as it was deleted fewer than 30 days ago.

SELECT examples

Lists all non-deleted WorkloadIdentityPoolProviderKeys in a project. If show_deleted is set to true, then deleted pools are also listed.

SELECT
name,
expireTime,
keyData,
state,
use
FROM google.iam.workload_identity_pool_provider_keys
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND providersId = '{{ providersId }}'
AND workloadIdentityPoolsId = '{{ workloadIdentityPoolsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new workload_identity_pool_provider_keys resource.

/*+ create */
INSERT INTO google.iam.workload_identity_pool_provider_keys (
locationsId,
projectsId,
providersId,
workloadIdentityPoolsId,
keyData,
use
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ providersId }}',
'{{ workloadIdentityPoolsId }}',
'{{ keyData }}',
'{{ use }}'
;

DELETE example

Deletes the specified workload_identity_pool_provider_keys resource.

/*+ delete */
DELETE FROM google.iam.workload_identity_pool_provider_keys
WHERE keysId = '{{ keysId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND providersId = '{{ providersId }}'
AND workloadIdentityPoolsId = '{{ workloadIdentityPoolsId }}';