workforce_pool_provider_keys
Creates, updates, deletes, gets or lists a workforce_pool_provider_keys
resource.
Overview
Name | workforce_pool_provider_keys |
Type | Resource |
Id | google.iam.workforce_pool_provider_keys |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the key. |
expireTime | string | Output 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. |
keyData | object | Represents a public key data along with its format. |
state | string | Output only. The state of the key. |
use | string | Required. The purpose of the key. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | keysId, locationsId, providersId, workforcePoolsId | Gets a WorkforcePoolProviderKey. |
list | SELECT | locationsId, providersId, workforcePoolsId | Lists all non-deleted WorkforcePoolProviderKeys in a WorkforcePoolProvider. If show_deleted is set to true , then deleted keys are also listed. |
create | INSERT | locationsId, providersId, workforcePoolsId | Creates a new WorkforcePoolProviderKey in a WorkforcePoolProvider. |
delete | DELETE | keysId, locationsId, providersId, workforcePoolsId | Deletes a WorkforcePoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent. |
undelete | EXEC | keysId, locationsId, providersId, workforcePoolsId | Undeletes 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.iam.workforce_pool_provider_keys (
locationsId,
providersId,
workforcePoolsId,
keyData,
use
)
SELECT
'{{ locationsId }}',
'{{ providersId }}',
'{{ workforcePoolsId }}',
'{{ keyData }}',
'{{ use }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: keyData
value:
- name: format
value: string
- name: notBeforeTime
value: string
- name: notAfterTime
value: string
- name: key
value: string
- name: keySpec
value: string
- name: state
value: string
- name: use
value: string
- name: expireTime
value: string
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 }}';