You can call this operation to reset the password of the root account of an ApsaraDB for MongoDB instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ResetAccountPassword |
The operation that you want to perform. Set the value to ResetAccountPassword. |
AccountName | String | Yes | root |
The account for which you want to reset the password. Set the value to root. |
AccountPassword | String | Yes | Ali! 123456 |
The new password.
|
DBInstanceId | String | Yes | dds-bpxxxxxxxx |
The ID of the instance. |
RegionId | String | No | cn-hangzhou |
The region ID of the instance. You can call the DescribeRegions operation to query the region ID of the instance. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 06CBD06E-ABC9-4121-AB93-3C3820B3E7E6 |
The ID of the request. |
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/? Action=ResetAccountPassword
&AccountName=root
&AccountPassword=Ali! 123456
&DBInstanceId=dds-bpxxxxxxxx
&<Common request parameters>
Sample success responses
XML
format
<ResetAccountPasswordResponse>
<RequestId>06CBD06E-ABC9-4121-AB93-3C3820B3E7E6</RequestId>
</ResetAccountPasswordResponse>
JSON
format
{
"RequestId": "06CBD06E-ABC9-4121-AB93-3C3820B3E7E6"
}
Error codes
For a list of error codes, visit the API Error Center.