You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/operate/rs/security/access-control/create-db-roles.md
+47-2Lines changed: 47 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,9 @@ To create a role that grants database access without granting access to the Redi
20
20
21
21
## Define Redis ACLs
22
22
23
-
To define a Redis ACL rule that you can assign to a role:
23
+
### Cluster Manager UI method
24
+
25
+
To define a Redis ACL rule that you can assign to a role using the Cluster Manager UI:
24
26
25
27
1. From **Access Control > Redis ACLs**, you can either:
26
28
@@ -42,11 +44,25 @@ The **ACL builder** does not support selectors and key permissions. Use **Free t
42
44
For multi-key commands on multi-slot keys, the return value is `failure`, but the command runs on the keys that are allowed.
43
45
{{</note>}}
44
46
47
+
### REST API method
48
+
49
+
To define a Redis ACL rule that you can assign to a role using the REST API:
50
+
51
+
```sh
52
+
POST /v1/redis_acls
53
+
{
54
+
"name": "Test_ACL_1",
55
+
"acl": "+@read +FT.INFO +FT.SEARCH"
56
+
}
57
+
```
58
+
45
59
## Create roles with ACLs
46
60
47
61
To create a role that grants database access to users but blocks access to the Redis Enterprise Cluster Manager UI and REST API, set the **Cluster management role** to **None**.
48
62
49
-
To define a role for database access:
63
+
### Cluster Manager UI method
64
+
65
+
To define a role for database access using the Cluster Manager UI:
50
66
51
67
1. From **Access Control** > **Roles**, you can:
52
68
@@ -77,3 +93,32 @@ To define a role for database access:
77
93
{{<imagefilename="images/rs/access-control-role-save.png"alt="Add databases to access" >}}
78
94
79
95
You can [assign the new role to users]({{<relref "/operate/rs/security/access-control/create-users#assign-roles-to-users">}}) to grant database access.
96
+
97
+
### REST API method
98
+
99
+
To define a role for database access using the REST API:
0 commit comments