All Products
Search
Document Center

ApsaraDB for MongoDB:ModifyBackupExpireTime

Last Updated:Jun 10, 2026

Mengubah pengatur waktu time-to-live (TTL) set cadangan MongoDB.

Deskripsi operasi

You can modify the TTL only for manual backups.

This operation is applicable only to MongoDB instances that use cloud disks.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

DBInstanceId

string

Yes

ID instans.

dds-bp16cb162771****

BackupExpireTime

string

No

Pengatur waktu time-to-live (TTL) cadangan. Pengatur waktu harus dalam format yyyy-MM-ddTHH:mm:ssZ dan dalam UTC.

Catatan
  • 9999-01-01T00:00:00Z menunjukkan bahwa cadangan disimpan secara permanen.

    - Anda hanya dapat memperpanjang periode retensi. Anda tidak dapat memperpendeknya.- Jika Anda tidak menetapkan pengatur waktu ke 9999-01-01T00:00:00Z, pengatur waktu kedaluwarsa baru harus dalam 730 hari setelah pengatur waktu akhir set cadangan.

**.

2025-03-29T03:47:12Z

BackupId

string

Yes

ID cadangan.

260032xxxx

Elemen respons

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.

Catatan
  • 9999-01-01T00:00:00Z indicates that the backup is retained permanently.

    **

**

2025-03-29T03:47:12Z

BackupId

string

The backup ID.

260032xxxx

Contoh

Respons sukses

JSONformat

{
  "RequestId": "A0181AC4-XXXX-XXXX-87CA-100C70B86729",
  "BackupExpireTime": "2025-03-29T03:47:12Z",
  "BackupId": "260032xxxx"
}

Kode kesalahan

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.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.