Method: projects.locations.instances.addTokenAuthUser

Adds a token auth user for a token based auth enabled instance.

HTTP request


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

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
instance

string

Required. The instance resource that this token auth user will be added for. Format: projects/{project}/locations/{location}/instances/{instance}

Request body

The request body contains data with the following structure:

JSON representation
{
  "tokenAuthUser": string
}
Fields
tokenAuthUser

string

Required. The name of the token auth user to add.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires one of the following OAuth scopes:

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