Modifies the time-to-live (TTL) of a MongoDB backup set.
Operation description
You can modify the TTL only for manual backups.
This operation is applicable only to MongoDB instances that use cloud disks.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bp16cb162771**** |
| BackupExpireTime |
string |
No |
The time-to-live (TTL) of the backup. The time must be in the yyyy-MM-ddTHH:mm:ssZ format and in UTC. Note
|
2025-03-29T03:47:12Z |
| BackupId |
string |
Yes |
The backup ID. |
260032xxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A0181AC4-XXXX-XXXX-87CA-100C70B86729 |
| BackupExpireTime |
string |
The time-to-live (TTL) of the backup. The time is in the yyyy-MM-ddTHH:mm:ssZ format and is in UTC. Note
|
2025-03-29T03:47:12Z |
| BackupId |
string |
The backup ID. |
260032xxxx |
Examples
Success response
JSON format
{
"RequestId": "A0181AC4-XXXX-XXXX-87CA-100C70B86729",
"BackupExpireTime": "2025-03-29T03:47:12Z",
"BackupId": "260032xxxx"
}
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.