Managed Service for Redis API, gRPC: UserService.Get
Returns the specified Redis User resource.
To get the list of available Redis User resources, make a List request.
gRPC request
rpc Get (GetUserRequest) returns (User)
GetUserRequest
{
"cluster_id": "string",
"user_name": "string"
}
Field |
Description |
cluster_id |
string Required field. ID of the Redis cluster the user belongs to. |
user_name |
string Required field. Name of the Redis User resource to return. |
User
{
"name": "string",
"cluster_id": "string",
"permissions": {
"patterns": "google.protobuf.StringValue",
"pub_sub_channels": "google.protobuf.StringValue",
"categories": "google.protobuf.StringValue",
"commands": "google.protobuf.StringValue",
"sanitize_payload": "google.protobuf.StringValue"
},
"enabled": "bool",
"acl_options": "string"
}
A Redis User resource. For more information, see the
Developer's Guide.
Field |
Description |
name |
string Name of the Redis user. |
cluster_id |
string ID of the Redis cluster the user belongs to. |
permissions |
Set of permissions to grant to the user. |
enabled |
bool Is redis user enabled |
acl_options |
string Raw ACL string inside of Redis |
Permissions
Field |
Description |
patterns |
Keys patterns user has permission to. |
pub_sub_channels |
Channel patterns user has permissions to. |
categories |
Command categories user has permissions to. |
commands |
Commands user can execute. |
sanitize_payload |
SanitizePayload parameter. |