All Products
Search
Document Center

PolarDB:DescribeBackups

Last Updated:Jul 07, 2026

Queries the backup information of a PolarDB cluster.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

polardb:DescribeBackups

get

*Backup

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

*DBCluster

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

None None

Request parameters

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

The cluster ID.

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

BackupId

string

No

The backup ID.

11111111

BackupStatus

string

No

The backup status. Valid values:

  • Success: The backup is complete.

  • Failed: The backup failed.

Success

BackupMode

string

No

The backup mode. Valid values:

  • Automated: automatic backup.

  • Manual: manual backup.

Automated

StartTime

string

Yes

The beginning of the time range to query. Specify the time in the YYYY-MM-DDThh:mmZ format (UTC).

2020-11-14T00:00Z

EndTime

string

Yes

The end of the time range to query. The end time must be later than the start time. Specify the time in the YYYY-MM-DDThh:mmZ format (UTC).

2020-11-16T00:00Z

BackupRegion

string

No

The destination region for cross-region backups.

Note

Currently, only PolarDB for MySQL supports this parameter.

cn-hangzhou

PageSize

integer

No

The number of entries per page. Valid values:

  • 30

  • 50

  • 100

Default value: 30.

30

PageNumber

integer

No

The page number. Set the value to an integer that is greater than 0 and does not exceed the maximum value of the Integer data type. Default value: 1.

1

Response elements

Element

Type

Description

Example

object

TotalRecordCount

string

The total number of records.

1

PageRecordCount

string

The number of records on the current page.

1

RequestId

string

The request ID.

24A1990B-4F6E-482B-B8CB-75C612******

PageNumber

string

The page number.

1

Items

object

Backup

array<object>

The backup set details.

object

BackupSetSize

string

The size of the backup file, in bytes.

Note

Because snapshots share data blocks, the space released after deleting a snapshot backup is much smaller than the size of the backup file. For more information, see Backup FAQ.

4639948800

ConsistentTime

string

The point in time of the consistent snapshot, expressed as a UNIX timestamp in seconds.

1605425407

BackupStatus

string

The backup status. Valid values:

  • Success: The backup is complete.

  • Failed: The backup failed.

Success

BackupType

string

The backup type. Only full backup is supported. The value is fixed to FullBackup.

FullBackup

BackupStartTime

string

The start time of this backup (UTC time).

2020-11-15T07:30:05Z

ExpectExpireTime

string

The expected expiration time of the backup set (supported only for instances with sparse backup enabled).

2022-10-24T08:13:23Z

ExpectExpireType

string

The expected expiration type of the backup set (supported only for instances with sparse backup enabled).

Valid values:

  • NEVER :

    NEVER

  • EXPIRED :

    EXPIRED

  • DELAY :

    DELAY

EXPIRED

IsAvail

string

Indicates whether the backup set is available. Valid values:

  • 0: Not available

  • 1: Available

0

BackupEndTime

string

The end time of this backup (UTC time).

2020-11-15T07:30:20Z

BackupId

string

The backup ID.

61*******

DBClusterId

string

The cluster ID.

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

BackupsLevel

string

The backup level. Valid values:

  • Level-1: Level-1 backup

  • Level-2: Level-2 backup

Level-1

BackupMode

string

The backup mode. Valid values:

  • Automated: System automatic backup

  • Manual: Manual backup

Automated

BackupMethod

string

The data backup method. Only snapshot backup is supported. The value is fixed to Snapshot.

Snapshot

TableRestoreMetaStatus

string

Comment

string

TotalLevel2BackupSize

string

The total size of level-2 backups in the specified region. Unit: bytes.

Note
  • Only PSL4 and PSL5 storage types are supported.

  • Only clusters with the level-2 backup feature enabled are supported.

  • If this parameter is not returned, the level-2 backup size is 0.

4639948800

Examples

Success response

JSON format

{
  "TotalRecordCount": "1",
  "PageRecordCount": "1",
  "RequestId": "24A1990B-4F6E-482B-B8CB-75C612******",
  "PageNumber": "1",
  "Items": {
    "Backup": [
      {
        "BackupSetSize": "4639948800",
        "ConsistentTime": "1605425407",
        "BackupStatus": "Success",
        "BackupType": "FullBackup",
        "BackupStartTime": "2020-11-15T07:30:05Z",
        "ExpectExpireTime": "2022-10-24T08:13:23Z",
        "ExpectExpireType": "EXPIRED\u0000\u0000",
        "IsAvail": "0",
        "BackupEndTime": "2020-11-15T07:30:20Z",
        "BackupId": "61*******",
        "DBClusterId": "pc-****************",
        "BackupsLevel": "Level-1",
        "BackupMode": "Automated",
        "BackupMethod": "Snapshot",
        "TableRestoreMetaStatus": "",
        "Comment": ""
      }
    ]
  },
  "TotalLevel2BackupSize": "4639948800"
}

Error codes

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.NotFound The DBInstanceId provided does not exist in our records. The specified DBClusterId parameter does not exist in the current record.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.