tokens
Creates, updates, deletes, gets or lists a tokens resource.
Overview
| Name | tokens |
| Type | Resource |
| Id | google.iam.tokens |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Agentspace only. The resource name of the SCIM Token. Format: locations/{location}/workforcePools/{workforce_pool}/providers/ {workforce_pool_provider}/scimTenants/{scim_tenant}/tokens/{token} |
displayName | string | Optional. Agentspace only. The display name of the SCIM token. Cannot exceed 32 characters. |
securityToken | string | Output only. Agentspace only. The token string. Provide this to the IdP for authentication. Will be set only during creation. |
state | string | Output only. Agentspace only. The state of the token. |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Agentspace only. The resource name of the SCIM Token. Format: locations/{location}/workforcePools/{workforce_pool}/providers/ {workforce_pool_provider}/scimTenants/{scim_tenant}/tokens/{token} |
displayName | string | Optional. Agentspace only. The display name of the SCIM token. Cannot exceed 32 characters. |
securityToken | string | Output only. Agentspace only. The token string. Provide this to the IdP for authentication. Will be set only during creation. |
state | string | Output only. Agentspace only. The state of the token. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | locationsId, workforcePoolsId, providersId, scimTenantsId, tokensId | Agentspace only. Gets an individual WorkforcePoolProviderScimToken. | |
list | select | locationsId, workforcePoolsId, providersId, scimTenantsId | pageSize, pageToken, showDeleted | Agentspace only. Lists all non-deleted WorkforcePoolProviderScimTokenss in a WorkforcePoolProviderScimTenant. If show_deleted is set to true, then deleted SCIM tokens are also listed. |
create | insert | locationsId, workforcePoolsId, providersId, scimTenantsId | workforcePoolProviderScimTokenId | Agentspace only. Creates a new WorkforcePoolProviderScimToken in a WorkforcePoolProviderScimTenant. You cannot reuse the name of a deleted SCIM token until 30 days after deletion. |
patch | update | locationsId, workforcePoolsId, providersId, scimTenantsId, tokensId | updateMask | Agentspace only. Updates an existing WorkforcePoolProviderScimToken. |
delete | delete | locationsId, workforcePoolsId, providersId, scimTenantsId, tokensId | Agentspace only. Deletes a WorkforcePoolProviderScimToken. You can undelete a SCIM token for 30 days. After 30 days, the SCIM token is permanently deleted. You cannot update deleted SCIM tokens, however, you can view and list them. | |
undelete | exec | locationsId, workforcePoolsId, providersId, scimTenantsId, tokensId | Agentspace only. Undeletes a WorkforcePoolProviderScimToken,that was deleted fewer than 30 days ago. |
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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
providersId | string | |
scimTenantsId | string | |
tokensId | string | |
workforcePoolsId | string | |
pageSize | integer (int32) | |
pageToken | string | |
showDeleted | boolean | |
updateMask | string (google-fieldmask) | |
workforcePoolProviderScimTokenId | string |
SELECT examples
- get
- list
Agentspace only. Gets an individual WorkforcePoolProviderScimToken.
SELECT
name,
displayName,
securityToken,
state
FROM google.iam.tokens
WHERE locationsId = '{{ locationsId }}' -- required
AND workforcePoolsId = '{{ workforcePoolsId }}' -- required
AND providersId = '{{ providersId }}' -- required
AND scimTenantsId = '{{ scimTenantsId }}' -- required
AND tokensId = '{{ tokensId }}' -- required
;
Agentspace only. Lists all non-deleted WorkforcePoolProviderScimTokenss in a WorkforcePoolProviderScimTenant. If show_deleted is set to true, then deleted SCIM tokens are also listed.
SELECT
name,
displayName,
securityToken,
state
FROM google.iam.tokens
WHERE locationsId = '{{ locationsId }}' -- required
AND workforcePoolsId = '{{ workforcePoolsId }}' -- required
AND providersId = '{{ providersId }}' -- required
AND scimTenantsId = '{{ scimTenantsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND showDeleted = '{{ showDeleted }}'
;
INSERT examples
- create
- Manifest
Agentspace only. Creates a new WorkforcePoolProviderScimToken in a WorkforcePoolProviderScimTenant. You cannot reuse the name of a deleted SCIM token until 30 days after deletion.
INSERT INTO google.iam.tokens (
data__name,
data__displayName,
locationsId,
workforcePoolsId,
providersId,
scimTenantsId,
workforcePoolProviderScimTokenId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ locationsId }}',
'{{ workforcePoolsId }}',
'{{ providersId }}',
'{{ scimTenantsId }}',
'{{ workforcePoolProviderScimTokenId }}'
RETURNING
name,
displayName,
securityToken,
state
;
# Description fields are for documentation purposes
- name: tokens
props:
- name: locationsId
value: string
description: Required parameter for the tokens resource.
- name: workforcePoolsId
value: string
description: Required parameter for the tokens resource.
- name: providersId
value: string
description: Required parameter for the tokens resource.
- name: scimTenantsId
value: string
description: Required parameter for the tokens resource.
- name: name
value: string
description: >
Identifier. Agentspace only. The resource name of the SCIM Token. Format: `locations/{location}/workforcePools/{workforce_pool}/providers/ {workforce_pool_provider}/scimTenants/{scim_tenant}/tokens/{token}`
- name: displayName
value: string
description: >
Optional. Agentspace only. The display name of the SCIM token. Cannot exceed 32 characters.
- name: workforcePoolProviderScimTokenId
value: string
UPDATE examples
- patch
Agentspace only. Updates an existing WorkforcePoolProviderScimToken.
UPDATE google.iam.tokens
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}'
WHERE
locationsId = '{{ locationsId }}' --required
AND workforcePoolsId = '{{ workforcePoolsId }}' --required
AND providersId = '{{ providersId }}' --required
AND scimTenantsId = '{{ scimTenantsId }}' --required
AND tokensId = '{{ tokensId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
displayName,
securityToken,
state;
DELETE examples
- delete
Agentspace only. Deletes a WorkforcePoolProviderScimToken. You can undelete a SCIM token for 30 days. After 30 days, the SCIM token is permanently deleted. You cannot update deleted SCIM tokens, however, you can view and list them.
DELETE FROM google.iam.tokens
WHERE locationsId = '{{ locationsId }}' --required
AND workforcePoolsId = '{{ workforcePoolsId }}' --required
AND providersId = '{{ providersId }}' --required
AND scimTenantsId = '{{ scimTenantsId }}' --required
AND tokensId = '{{ tokensId }}' --required
;
Lifecycle Methods
- undelete
Agentspace only. Undeletes a WorkforcePoolProviderScimToken,that was deleted fewer than 30 days ago.
EXEC google.iam.tokens.undelete
@locationsId='{{ locationsId }}' --required,
@workforcePoolsId='{{ workforcePoolsId }}' --required,
@providersId='{{ providersId }}' --required,
@scimTenantsId='{{ scimTenantsId }}' --required,
@tokensId='{{ tokensId }}' --required
;