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
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:DescribeDataBackups |
get |
*DBInstance
|
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:
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 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 |
| ConsistentTime |
integer |
|
1576506856 |
| BackupStatus |
string |
The status of the backup set. Valid values:
|
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:
Valid values for point-in-time backup:
|
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:
|
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.