更改密码哈希算法请求
更改用户密码哈希算法的 REST API 请求。
Redis 企业软件 |
---|
方法 | 路径 | 描述 |
---|---|---|
补丁 | /v1/cluster/change_password_hashing_algorithm |
更改用户密码的哈希策略 |
更改密码哈希算法
PATCH /v1/cluster/change_password_hashing_algorithm
更改整个集群的密码哈希算法。当您更改哈希算法时,它会重新哈希所有用户(包括默认用户)的管理员密码和密码。
哈希算法选项包括SHA-256
或PBKDF2
.默认哈希算法为SHA-256
.
所需权限
权限名称 |
---|
update_cluster |
请求
HTTP 请求示例
PATCH /v1/cluster/change_password_hashing_algorithm
示例 JSON 正文
{ "algorithm": "PBKDF2" }
Request headers
Key
Value
Description
Host
cnm.cluster.fqdn
Domain name
Accept
application/json
Accepted media type
Request body
Include a JSON object { "algorithm": "<option>" }
in the request body. The hashing algorithm options are SHA-256
or PBKDF2
.
Response
Returns a status code that indicates the success or failure of the update.
Status codes
Code
Description
200 OK
Success
400 Bad Request
Supported algorithm must be provided, or this algorithm is already set
On this page