Queries 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.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
gpdb:DescribeDataBackups | get | *DBInstance acs:gpdb:*:{#accountId}:dbinstance/{#DBInstanceId} |
| 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 | Yes | 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 | 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. The time must be in UTC. | 2011-06-01T16:00Z |
PageSize | integer | No | The number of entries per page. Valid values:
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:
If you do not specify this parameter, the backup sets of full backup are returned. | DATA |
BackupMode | string | No | The backup mode. Valid values:
If you do not specify this parameter, all backup sets are returned. | Automated |
BackupStatus | string | No | The state of the backup set. Valid values:
If you do not specify this parameter, all backup sets are returned. | Success |
Response parameters
Examples
Sample success responses
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
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-29 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-08-17 | The response structure of the API has changed | View Change Details |