Queries backup information for a PolarDB cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeBackups |
get |
*Backup
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the cluster. |
pc-**************** |
| BackupId |
string |
No |
The backup ID. |
11111111 |
| BackupStatus |
string |
No |
The status of the backup. Valid values:
|
Success |
| BackupMode |
string |
No |
The backup mode. Valid values:
|
Automated |
| StartTime |
string |
Yes |
The beginning of the time range to query. Specify the time in the |
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 |
2020-11-16T00:00Z |
| BackupRegion |
string |
No |
The destination region of the cross-region backup. Note
This parameter is supported only by PolarDB for MySQL. |
cn-hangzhou |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values:
Default value: 30. |
30 |
| PageNumber |
integer |
No |
The page number. The value must be 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 entries. |
1 |
| PageRecordCount |
string |
The number of entries returned 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 details of the backup sets. |
|
|
object |
|||
| BackupSetSize |
string |
The size of the backup file. Unit: bytes. Note
Because snapshots share data blocks, the storage space that is released after you delete 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. This value is a UNIX timestamp. Unit: seconds. |
1605425407 |
| BackupStatus |
string |
The status of the backup. Valid values:
|
Success |
| BackupType |
string |
The backup type. Only full backup is supported. The value is fixed as FullBackup. |
FullBackup |
| BackupStartTime |
string |
The start time of the backup. The time is in UTC. |
2020-11-15T07:30:05Z |
| ExpectExpireTime |
string |
The expected expiration time of the backup set. This parameter is supported only for instances for which the sparse backup feature is enabled. |
2022-10-24T08:13:23Z |
| ExpectExpireType |
string |
The expected expiration type of the backup set. This parameter is supported only for instances for which the sparse backup feature is enabled. 枚举值:
|
EXPIRED |
| IsAvail |
string |
Indicates whether the backup set is available. Valid values:
|
0 |
| BackupEndTime |
string |
The end time of the backup. The time is in UTC. |
2020-11-15T07:30:20Z |
| BackupId |
string |
The backup ID. |
61******* |
| DBClusterId |
string |
The cluster ID. |
pc-**************** |
| BackupsLevel |
string |
The level of the backup set. Valid values:
|
Level-1 |
| BackupMode |
string |
The backup mode. Valid values:
|
Automated |
| BackupMethod |
string |
The data backup method. Only snapshot backup is supported. The value is fixed as Snapshot. |
Snapshot |
| TotalLevel2BackupSize |
string |
The total size of level-2 backups in the specified region. Unit: bytes. Note
|
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"
}
]
},
"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.