Queries backup logs and the URLs to download the backup logs.
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 |
---|---|---|---|---|
polardb:DescribeBackupLogs | Read |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBClusterId | string | Yes | The cluster ID. | pc-************** |
StartTime | string | Yes | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the | 2020-02-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 ISO 8601 standard in the | 2020-02-12T15:00Z |
BackupRegion | string | No | The region for the backup data. | 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 of the page to return. The value must be an integer that is larger than 0. Default value: 1. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalRecordCount": "2",
"PageRecordCount": "2",
"RequestId": "ADAC63DB-0691-4ECE-949A-FAEA68******",
"PageNumber": "1",
"Items": {
"BackupLog": [
{
"BackupLogId": "1111111111",
"IntranetDownloadLink": "http://***********.oss-cn-hangzhou-internal.aliyuncs.com",
"LinkExpiredTime": "2020-02-14T08:40:50Z",
"BackupLogStartTime": "2020-02-12T03:54:43Z",
"BackupLogEndTime": "2020-02-12T03:55:31Z",
"DownloadLink": "http://***********.oss-cn-hangzhou.aliyuncs.com",
"BackupLogSize": "1073741824",
"BackupLogName": "ib_logfile1"
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
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.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
2023-09-12 | The Error code has changed | see changesets | ||||||||
| ||||||||||
2022-06-07 | The Error code has changed. The request parameters of the API has changed | see changesets | ||||||||
|