Skip to main content

token_auth_users

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

Overview

Nametoken_auth_users
TypeResource
Idgoogle.redis.token_auth_users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the token based auth user. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
statestringOutput only. The state of the token based auth user. (STATE_UNSPECIFIED, ACTIVE, CREATING, UPDATING, DELETING)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, clustersId, tokenAuthUsersIdGets a specific token auth user for a basic auth enabled cluster.
listselectprojectsId, locationsId, clustersIdfilter, pageSize, pageToken, orderByLists all the token auth users for a token based auth enabled cluster.
deletedeleteprojectsId, locationsId, clustersId, tokenAuthUsersIdrequestId, forceDeletes a token auth user for 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.

NameDatatypeDescription
clustersIdstring
locationsIdstring
projectsIdstring
tokenAuthUsersIdstring
filterstring
forceboolean
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring

SELECT examples

Gets a specific token auth user for a basic auth enabled cluster.

SELECT
name,
state
FROM google.redis.token_auth_users
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND clustersId = '{{ clustersId }}' -- required
AND tokenAuthUsersId = '{{ tokenAuthUsersId }}' -- required
;

DELETE examples

Deletes a token auth user for a token based auth enabled cluster.

DELETE FROM google.redis.token_auth_users
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND clustersId = '{{ clustersId }}' --required
AND tokenAuthUsersId = '{{ tokenAuthUsersId }}' --required
AND requestId = '{{ requestId }}'
AND force = '{{ force }}'
;