调用 ResetDBAccount 接口重置账号的密码。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | postgres-ca7b7019**** | 实例 ID。 |
AccountName | String | 是 | testuser | 数据库账号名称。账号名称的设置规则如下:
|
AccountPassword | String | 是 | Test@123456 | 为数据库账号重置的新密码。数据库账号密码的设置规则如下:
|
null
POST /?Action=ResetDBAccount&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20231002T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId": "postgres-ca7b7019****", "AccountName": "test123", "AccountPassword": "Root****" }
{ "ResponseMetadata": { "RequestId": "20230802164732CE4FCB7FCAD8FBF6494D", "Action": "ResetDBAccount", "Version": "2022-01-01", "Service": "rds_postgresql", "Region": "cn-beijing" }, "Result": null }