All Products
Search
Document Center

PolarDB:DescribeDetachedBackups

Last Updated:Jun 10, 2026

Mengkueri informasi tentang set cadangan di Kluster PolarDB Basis Data Relasional Cloud-Native yang telah dirilis.

Deskripsi operasi

Before you call this operation, make sure that the PolarDB cluster is in the Released state. You must also confirm that the Retain All Backups Permanently or Retain Last Automatic Backup Permanently backup retention policy takes effect after you release the cluster. If you delete all backup sets after the cluster is released, you cannot use this API operation to query the cluster.

Catatan

You can call the DescribeDBClusterAttribute operation to query the cluster status.

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

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

polardb:DescribeDetachedBackups

get

*dbcluster

acs:polardb:{#regionId}:{#accountId}:DBCluster/{#DbClusterId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

ID Kluster.

pc-****************

BackupId

string

No

ID set cadangan.

111111111

BackupStatus

string

No

Status set cadangan. Nilai valid:

  • Success

  • Failed.

Success

BackupMode

string

No

Mode cadangan. Nilai valid:

  • Automated

  • Manual.

Manual

BackupRegion

string

No

Wilayah tempat file Cadangan data lintas wilayah dari Instans disimpan.

Catatan

Parameter ini hanya valid untuk Kluster PolarDB Basis Data Relasional Cloud-Native for MySQL.

cn-hangzhou

StartTime

string

Yes

Awal rentang waktu untuk dikueri. Tentukan pengatur waktu dalam format yyyy-MM-ddTHH:mmZ. Pengatur waktu harus dalam UTC.

2020-05-01T00:00Z

EndTime

string

Yes

Akhir rentang waktu untuk dikueri. Tentukan pengatur waktu dalam format YYYY-MM-DDThh:mmZ. Pengatur waktu harus dalam UTC. Pengatur waktu akhir harus lebih lambat dari Waktu mulai.

2020-05-14T00:00Z

PageSize

integer

No

Jumlah entri per halaman. Nilai valid:

  • 30

  • 50

  • 100

Nilai default: 30.

30

PageNumber

integer

No

Nomor halaman. Nilai harus berupa bilangan bulat positif yang tidak melebihi nilai maksimum Tipe data INTEGER. Nilai default: 1.

1

Elemen respons

Element

Type

Description

Example

object

TotalRecordCount

string

The total number of returned entries.

50

PageRecordCount

string

The number of entries per page.

15

RequestId

string

The ID of the request.

717B2382-BB14-4DCB-BBC2-32DBE0******

PageNumber

string

The page number.

1

Items

object

Backup

array<object>

Details about the backup sets.

object

BackupSetSize

string

The size of the backup set. Unit: bytes.

Catatan

After you delete the target snapshot backups, the storage space consumed by the backups is released. The released storage space is smaller than the size of the backup file, because the snapshots share certain data blocks.

7251056

ConsistentTime

string

The snapshot checkpoint time. The value is a Unix timestamp.

1589253947

StoreStatus

string

Indicates whether the backup set can be deleted. Valid values:

  • Enabled: The backup set can be deleted.

  • Disabled: The backup set cannot be deleted.

Disabled

BackupStatus

string

The status of the backup set. Valid values:

  • Success

  • Failed

Success

BackupType

string

The type of the backup. Only full backups are supported. The value is set to FullBackup.

FullBackup

BackupStartTime

string

The start time of the backup task. The time is displayed in UTC.

2020-05-12T03:25:44Z

IsAvail

string

Indicates whether the backup set is available. Valid values:

  • 0: The data backup set is unavailable.

  • 1: The data backup set is available.

1

BackupEndTime

string

The end time of the backup task. The time is displayed in UTC.

2020-05-12T03:25:55Z

BackupId

string

The ID of the backup set.

111111111

DBClusterId

string

The ID of the cluster.

pc-**************

BackupsLevel

string

The level of the backup set. Valid values:

  • Level-1: level-1 backup set

  • Level-2: level-2 backup set

Level-2

BackupMode

string

The backup mode. Valid values:

  • Automated

  • Manual

Manual

BackupMethod

string

The backup method. Only snapshot backups are supported. The value is set to Snapshot.

Snapshot

Contoh

Respons sukses

JSONformat

{
  "TotalRecordCount": "50",
  "PageRecordCount": "15",
  "RequestId": "717B2382-BB14-4DCB-BBC2-32DBE0******",
  "PageNumber": "1",
  "Items": {
    "Backup": [
      {
        "BackupSetSize": "7251056",
        "ConsistentTime": "1589253947",
        "StoreStatus": "Disabled",
        "BackupStatus": "Success",
        "BackupType": "FullBackup",
        "BackupStartTime": "2020-05-12T03:25:44Z",
        "IsAvail": "1",
        "BackupEndTime": "2020-05-12T03:25:55Z",
        "BackupId": "111111111",
        "DBClusterId": "pc-**************",
        "BackupsLevel": "Level-2",
        "BackupMode": "Manual",
        "BackupMethod": "Snapshot"
      }
    ]
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid.
400 InvalidBackupStatus.Malformed The specified parameter BackupStatus is not valid. The specified BackupStatus parameter is invalid.
400 InvalidBackupMode.Malformed The specified parameter BackupMode is not valid. The specified BackupMode parameter is invalid.
400 InvalidStartTime.Malformed The specified parameter StartTime is not valid. The specified StartTime parameter is invalid.
400 InvalidEndTime.Malformed The specified parameter EndTime is not valid. The specified EndTime parameter is invalid.
400 InvalidPageSize.Malformed The specified parameter PageSize is not valid. The specified PageSize parameter is invalid.
400 InvalidPageNumber.Malformed The specified parameter PageNumber is not valid. The specified PageNumber parameter is invalid.
404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records. The specified DBClusterId parameter does not exist in the current record.
404 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid. The specified DBClusterId parameter is invalid.
404 InvalidDBClusterId.NotFound The DBInstanceId provided does not exist in our records. The specified DBClusterId parameter does not exist in the current record.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.