Method: projects.locations.clusters.addTokenAuthUser

为已启用基于令牌的身份验证的集群添加令牌身份验证用户。

HTTP 请求

POST https://redis.googleapis.com/v1beta1/{cluster=projects/*/locations/*/clusters/*}:addTokenAuthUser

网址采用 gRPC 转码语法。

路径参数

参数
cluster

string

必需。将为此令牌身份验证用户添加的集群资源。格式:projects/{project}/locations/{location}/clusters/{cluster}

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "tokenAuthUser": string
}
字段
tokenAuthUser

string

必需。要添加的令牌身份验证用户的 ID。

响应正文

如果成功,则响应正文包含一个 Operation 实例。

授权范围

需要以下 OAuth 范围之一:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/redis.read-write

如需了解详情,请参阅 Authentication Overview。