You can call this operation to restore data to the current MongoDB instance.

This operation is only applicable to replica set instances. RestoreDBInstance cannot be performed on standalone instances or sharded cluster instances. You can use the following methods to clone a standalone instance: Create an instance based on a backup. Call CreateShardingDBInstance to clone a sharded cluster instance.

Note This operation overwrites the data of the current instance, and the data cannot be recovered. Exercise caution when performing this operation.


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 RestoreDBInstance

The operation that you want to perform. Set the value to RestoreDBInstance.

BackupId Integer Yes 11111111

The ID of the backup.

Note Call DescribeBackups to query the backup ID.
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 973DCB8F-56B3-4102-8777-3A90495927F7

The ID of the request.


Sample requests

http(s):// Action=RestoreDBInstance
&<Common request parameters>

Successful response examples

XML format


JSON format


Error codes

View error codes