token_auth_users_auth_token
Creates, updates, deletes, gets or lists a token_auth_users_auth_token resource.
Overview
| Name | token_auth_users_auth_token |
| Type | Resource |
| Id | google.redis.token_auth_users_auth_token |
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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
add_auth_token | insert | projectsId, locationsId, clustersId, tokenAuthUsersId | Adds a auth token for a user of a token based auth enabled cluster. |
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 |
|---|---|---|
clustersId | string | |
locationsId | string | |
projectsId | string | |
tokenAuthUsersId | string |
INSERT examples
- add_auth_token
- Manifest
Adds a auth token for a user of a token based auth enabled cluster.
INSERT INTO google.redis.token_auth_users_auth_token (
data__authToken,
projectsId,
locationsId,
clustersId,
tokenAuthUsersId
)
SELECT
'{{ authToken }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ clustersId }}',
'{{ tokenAuthUsersId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: token_auth_users_auth_token
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the token_auth_users_auth_token resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the token_auth_users_auth_token resource.
- name: clustersId
value: "{{ clustersId }}"
description: Required parameter for the token_auth_users_auth_token resource.
- name: tokenAuthUsersId
value: "{{ tokenAuthUsersId }}"
description: Required parameter for the token_auth_users_auth_token resource.
- name: authToken
description: |
Auth token for the cluster.
value:
state: "{{ state }}"
name: "{{ name }}"
token: "{{ token }}"
createTime: "{{ createTime }}"