You can call this operation to reset the password of the root account of a MongoDB instance.

Note This operation can reset only the password of the root account of an instance.


OpenAPI Explorer simplifies API usage. You can use OpenAPI Explorer to perform debugging operations, such as retrieve APIs, call APIs, and dynamically generate SDK example code.

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. Valid value: root.

AccountPassword String Yes Ali! 123456

The new password.

  • The password must contain characters from at least three of the following categories: uppercase letters, lowercase letters, digits, and special characters. Special characters include !#$%^&*()_+-=
  • The password must be 8 to 32 characters in length.
DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID provided to you by Alibaba Cloud.

Response parameters

Parameter Type Example Description
RequestId String 06CBD06E-ABC9-4121-AB93-3C3820B3E7E6

The ID of the request.


Sample requests

http(s):// Action=ResetAccountPassword
&AccountPassword=Ali! 123456
&<Common request parameters>

Successful response examples

XML format


JSON format


Error codes

View error codes