CreateBackup
Creates a backup for an ApsaraDB for MongoDB instance.
Operation description
The instance status must be Running when you invoke the CreateBackup operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:CreateBackup |
create |
*dbinstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
d-bp2235**** |
| BackupMethod |
string |
No |
The backup method of the instance. Valid values:
Note
|
Logical |
| BackupRetentionPeriod |
integer |
No |
The backup note. It cannot start with http:// or https://. It can contain uppercase and lowercase letters, Chinese characters, digits, underscores (_), and hyphens (-). The value must be 2 to 256 characters in length. |
Backup_Comment |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| BackupId |
string |
The ID of the backup. Note
[Deprecated] This parameter will be deprecated soon. To obtain the backup ID, call the DescribeBackups operation. |
5664**** |
| RequestId |
string |
The ID of the request. |
7016B12F-7F64-40A4-BAFF-013F02AC82FC |
| BackupJobId |
string |
The ID of the backup job. |
775051 |
Examples
Success response
JSON format
{
"BackupId": "5664****",
"RequestId": "7016B12F-7F64-40A4-BAFF-013F02AC82FC",
"BackupJobId": "775051"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidBackupMethod.ValueNotSupport | The specified parameter BackupMethod is not valid. | |
| 403 | OperationDenied.BackupJobExists | The operation is not permitted due to backup job exist. | A backup task is in progress. Try again later. |
| 403 | OperationDenied.NoDatabase | The operation is not permitted due to no database. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.