Skip to main content

workforce_pool_provider_keys

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

Overview

Nameworkforce_pool_provider_keys
TypeResource
Idgoogle.iam.workforce_pool_provider_keys

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the key.
expireTimestringOutput only. The time after which the key will be permanently deleted and cannot be recovered. Note that the key may get purged before this time if the total limit of keys per provider is exceeded.
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, providersId, workforcePoolsIdGets a WorkforcePoolProviderKey.
listSELECTlocationsId, providersId, workforcePoolsIdLists all non-deleted WorkforcePoolProviderKeys in a WorkforcePoolProvider. If show_deleted is set to true, then deleted keys are also listed.
createINSERTlocationsId, providersId, workforcePoolsIdCreates a new WorkforcePoolProviderKey in a WorkforcePoolProvider.
deleteDELETEkeysId, locationsId, providersId, workforcePoolsIdDeletes a WorkforcePoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent.
undeleteEXECkeysId, locationsId, providersId, workforcePoolsIdUndeletes a WorkforcePoolProviderKey, as long as it was deleted fewer than 30 days ago.

SELECT examples

Lists all non-deleted WorkforcePoolProviderKeys in a WorkforcePoolProvider. If show_deleted is set to true, then deleted keys are also listed.

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

INSERT example

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

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

DELETE example

Deletes the specified workforce_pool_provider_keys resource.

/*+ delete */
DELETE FROM google.iam.workforce_pool_provider_keys
WHERE keysId = '{{ keysId }}'
AND locationsId = '{{ locationsId }}'
AND providersId = '{{ providersId }}'
AND workforcePoolsId = '{{ workforcePoolsId }}';