Role object
An object that represents a role
| Redis Software |
|---|
An API object that represents a role.
| Name | Type/Value | Description |
|---|---|---|
| uid | integer | Role's unique ID |
| account_id | integer | SM account ID |
| action_uid | string | Action UID. If it exists, progress can be tracked by the GET /actions/{uid} API (read-only) |
| management | 'admin' 'db_member' 'db_viewer' 'cluster_member' 'cluster_viewer' 'user_manager' 'none' |
Management role |
| name | string | Role's name |
| resources | array of objects | Optional list of resource scopes that limit a db_member or db_viewer management role to specific databases. Each scope has a type (currently only db) and a uids array of database IDs the role applies to. If omitted or empty, the role applies to all databases. Example: [{"type": "db", "uids": ["1", "2"]}] |