用户对象

一个表示Redis Enterprise用户的API对象

名称 类型/值 描述
uid integer 用户的唯一ID
account_id integer SM账户ID
action_uid string 操作UID。如果存在,可以通过GET /actions/{uid} API请求跟踪进度(只读)
auth_method 'regular'
'certificate'
'entraid'
用户的认证方法
bdbs_email_alerts complex object 用户将接收警报的数据库的UID
certificate_subject_line string 证书的主题行,由RFC2253定义。仅用于基于证书认证的用户。
cluster_email_alerts boolean 为用户激活集群电子邮件警报
email string 用户的电子邮件(仅匹配ASCII字符的模式)
email_alerts boolean (默认值: true) 为用户激活电子邮件提醒
name string 用户名(模式不允许非ASCII字符和特殊字符 &,<,>,")
password string 用户的密码。如果password_hash_method设置为1,密码应使用SHA-256进行哈希处理。哈希前的格式为username:clustername:password
password_hash_method '1' 当密码以预哈希形式传递时,用于指定哈希方法
password_issue_date string 密码设置的日期(只读)
role 'admin'
'cluster_member'
'cluster_viewer'
'db_member'
'db_viewer'
'user_manager'
'none'
用户的角色
role_uids array of integers 用户角色的UID,用于基于角色的访问控制
status 'active'
'locked'
'password_expired'
用户登录状态(只读)
active: 可以登录
locked: 无法登录
password_expired: 由于密码过期无法登录
RATE THIS PAGE
Back to top ↑