Method: projects.locations.instances.addTokenAuthUser

為啟用權杖驗證的執行個體新增權杖驗證使用者。

HTTP 要求


POST https://memorystore.googleapis.com/v1/{instance=projects/*/locations/*/instances/*}:addTokenAuthUser

這些網址使用 gRPC 轉碼語法。

路徑參數

參數
instance

string

這是必要旗標,要為這個權杖驗證使用者新增的執行個體資源。格式:projects/{project}/locations/{location}/instances/{instance}

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{
  "tokenAuthUser": string
}
欄位
tokenAuthUser

string

這是必要旗標,要新增的權杖驗證使用者名稱。

回應主體

如果成功,回應主體會包含 Operation 的執行個體。

授權範圍

需要下列其中一種 OAuth 範圍:

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