All Products
Search
Document Center

PolarDB:DescribeBackupLogs

Last Updated:Jun 10, 2026

Mengkueri daftar log cadangan dan mengembalikan URL unduhannya.

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:DescribeBackupLogs

get

*dbcluster

acs:polardb:{#regionId}:{#accountId}:dbcluster/{#dbclusterId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

ID Kluster.

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

StartTime

string

Yes

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

2020-02-01T15:00Z

EndTime

string

Yes

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

2020-02-12T15:00Z

BackupRegion

string

No

Wilayah cadangan.

cn-hangzhou

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 yang lebih besar dari 0 dan tidak melebihi nilai maksimum tipe data Integer. Nilai default: 1.

1

Elemen respons

Element

Type

Description

Example

object

TotalRecordCount

string

The total number of entries.

2

PageRecordCount

string

The number of entries returned on the current page.

2

RequestId

string

The request ID.

ADAC63DB-0691-4ECE-949A-FAEA68******

PageNumber

string

The page number.

1

Items

object

BackupLog

array<object>

The details of the backup logs.

object

BackupLogId

string

The ID of the backup log.

1111111111

LinkExpiredTime

string

The time when the download URL expires.

2020-02-14T08:40:50Z

BackupLogStartTime

string

The time when the backup task started. The time follows the ISO 8601 standard in the YYYY-MM-DD'T'HH:mm:ssZ format. The time is displayed in UTC.

2020-02-12T03:54:43Z

BackupLogEndTime

string

The time when the backup task ended. The time follows the ISO 8601 standard in the YYYY-MM-DD'T'HH:mm:ssZ format. The time is displayed in UTC.

2020-02-12T03:55:31Z

BackupLogSize

string

The size of the backup log. Unit: bytes.

1073741824

BackupLogName

string

The name of the backup log.

ib_logfile1

Contoh

Respons sukses

JSONformat

{
  "TotalRecordCount": "2",
  "PageRecordCount": "2",
  "RequestId": "ADAC63DB-0691-4ECE-949A-FAEA68******",
  "PageNumber": "1",
  "Items": {
    "BackupLog": [
      {
        "BackupLogId": "1111111111",
        "IntranetDownloadLink": "http://***********.oss-cn-hangzhou-internal.aliyuncs.com",
        "LinkExpiredTime": "2020-02-14T08:40:50Z",
        "BackupLogStartTime": "2020-02-12T03:54:43Z",
        "BackupLogEndTime": "2020-02-12T03:55:31Z",
        "DownloadLink": "http://***********.oss-cn-hangzhou.aliyuncs.com",
        "BackupLogSize": "1073741824",
        "BackupLogName": "ib_logfile1"
      }
    ]
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidStartTime.Malformed The specified parameter StartTime is not valid.
400 InvalidEndTime.Malformed The specified parameter EndTime is not valid.
400 InvalidPageSize.Malformed The specified parameter PageSize is not valid.
400 InvalidPageNumber.Malformed The specified parameter PageNumber is not valid.
404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records.
404 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid.
404 InvalidDBClusterId.NotFound The DBInstanceId provided does not exist in our records.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.