Resource: AuthToken
Auth token for the cluster.
| JSON representation |
|---|
{
"name": string,
"token": string,
"createTime": string,
"state": enum ( |
| Fields | |
|---|---|
name |
Identifier. Name of the auth token. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{tokenAuthUser}/authTokens/{authToken} |
token |
Output only. The service generated authentication token used to connect to the Redis cluster. |
createTime |
Output only. Create time of the auth token. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
state |
Output only. State of the auth token. |
State
Represents the different states of an auth token. New values may be added in the future.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Not set. |
ACTIVE |
The auth token is active. |
CREATING |
The auth token is being created. |
DELETING |
The auth token is being deleted. |
Methods |
|
|---|---|
|
Removes a auth token for a user of a token based auth enabled instance. |
|
Gets a specific auth token for a specific token auth user. |
|
Lists all the auth tokens for a specific token auth user. |