All Products
Search
Document Center

AnalyticDB:DescribeDataBackups

Last Updated:Aug 28, 2026

Retrieves a list of backup sets of full backup or point-in-time backup for an AnalyticDB for PostgreSQL instance.

Operation description

You can call this operation to query a list of backup sets and backup details only for instances in elastic storage mode.

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

gpdb:DescribeDataBackups

get

*DBInstance

acs:gpdb:*:{#accountId}:dbinstance/{#DBInstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

DBInstanceId

string

Yes

The instance ID.

Note

You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs.

gp-bp***************

BackupId

string

No

The ID of the backup set. If you specify BackupId, the details of the backup set are returned.

Note

You can call the DescribeDataBackups operation to query the information about all backup sets of an instance, including backup set IDs.

327329803

StartTime

string

No

The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.

2011-06-01T15:00Z

EndTime

string

No

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. The time must be in UTC.

2011-06-01T16:00Z

PageSize

integer

No

The number of entries per page. Valid values:

  • 30

  • 50

  • 100

Default value: 30.

30

PageNumber

integer

No

The page number. Pages start from page 1. Default value: 1

1

DataType

string

No

The backup type. Valid values:

  • DATA: full backup.

  • RESTOREPOI: point-in-time recovery backup.

If you do not specify this parameter, the backup sets of full backup are returned.

DATA

BackupMode

string

No

The backup mode. Valid values:

  • Automated

  • Manual

If you do not specify this parameter, all backup sets are returned.

Automated

BackupStatus

string

No

The state of the backup set. Valid values:

  • Success

  • Failed

If you do not specify this parameter, all backup sets are returned.

Success

Response elements

Element

Type

Description

Example

object

PageSize

integer

The number of entries per page.

1

RequestId

string

The request ID.

3E387971-33A5-5019-AD7F-DC**********

PageNumber

integer

The page number.

1

TotalCount

integer

The total number of entries returned.

1

TotalBackupSize

integer

The total backup set size. Unit: Byte.

1111111111

Items

array<object>

The instance ID.

object

DataType

string

The type of the backup. Valid values:

  • DATA: full backup

  • RESTOREPOI: point-in-time backup

DATA

ConsistentTime

integer

  • For full backup, this parameter indicates the point in time at which the data in the data backup file is consistent.

  • For point-in-time backup, this parameter indicates that the returned point in time is a timestamp.

1576506856

BackupStatus

string

The status of the backup set. Valid values:

  • Success

  • Failure

Success

BackupStartTime

string

The UTC time when the backup started. The time is in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC.

2021-12-22T12:00:25Z

BackupEndTime

string

The UTC time when the backup ended. The time is in the yyyy-MM-ddTHH:mmZ format. The time is displayed in UTC.

2021-12-22T12:01:43Z

BackupEndTimeLocal

string

The local time when the backup ended. The time is in the yyyy-MM-dd HH:mm:ss format. The time is your local time.

2021-12-22 20:00:25

BackupSetId

string

The ID of the backup set.

1111111111

BaksetName

string

The name of a point-in-time backup set or the full backup set.

adbpgbackup_555*****_20211222200019

BackupSize

integer

The size of the backup file. Unit: bytes.

2167808

BackupMode

string

The backup mode.

Valid values for full backup:

  • Automated: automatic backup

  • Manual: manual backup

Valid values for point-in-time backup:

  • Automated: point-in-time backup after full backup

  • Manual: manual point-in-time backup

  • Period: point-in-time backup that is triggered by a backup policy

Automated

BackupStartTimeLocal

string

The local time when the backup started. The time is in the yyyy-MM-dd HH:mm:ss format. The time is your local time.

2011-05-30 03:29:00

DBInstanceId

string

The ID of the instance.

gp-bp**************-master

BackupMethod

string

The method that is used to generate the backup set. Valid values:

  • Logical: logical backup

  • Physical: physical backup

  • Snapshot: snapshot backup

Physical

Examples

Success response

JSON format

{
  "PageSize": 1,
  "RequestId": "3E387971-33A5-5019-AD7F-DC**********",
  "PageNumber": 1,
  "TotalCount": 1,
  "TotalBackupSize": 1111111111,
  "Items": [
    {
      "DataType": "DATA",
      "ConsistentTime": 1576506856,
      "BackupStatus": "Success",
      "BackupStartTime": "2021-12-22T12:00:25Z",
      "BackupEndTime": "2021-12-22T12:01:43Z",
      "BackupEndTimeLocal": "2021-12-22 20:00:25",
      "BackupSetId": "1111111111",
      "BaksetName": "adbpgbackup_555*****_20211222200019",
      "BackupSize": 2167808,
      "BackupMode": "Automated",
      "BackupStartTimeLocal": "2011-05-30 03:29:00",
      "DBInstanceId": "gp-bp**************-master",
      "BackupMethod": "Physical"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.