Resets the password of the root account in an ApsaraDB for MongoDB instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ResetAccountPassword |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bpxxxxxxxx |
| AccountName |
string |
Yes |
The account whose password needs to be reset. Set the value to root. |
root |
| AccountPassword |
string |
Yes |
The new password.
|
Ali!123456 |
| CharacterType |
string |
No |
The role of the instance.
|
db |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
06CBD06E-ABC9-4121-AB93-3C3820B3E7E6 |
Examples
Success response
JSON format
{
"RequestId": "06CBD06E-ABC9-4121-AB93-3C3820B3E7E6"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAccountPassword.Malformed | Specified parameter AccountPassword is not valid. | The specified parameter AccountPassword is invalid. |
| 400 | InvalidAccountName.NotFound | The AccountName provided does not exist in our records. | |
| 400 | InvalidAccountName.Malformed | The specified parameter AccountName is not valid. | |
| 403 | OperationDenied.AccountStatus | The operation is not permitted due to status of account. | |
| 403 | OperationDenied.AccountType | The operation is not permitted due to type of account. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.