Queries the information about the backup policy of a PolarDB for MySQL instance.
Operation description
Supported database engine
PolarDB for MySQL
Note
The API operation is available only to specific customers. If you want to call this API operation, request permissions by joining the Database Backup (DBS) DingTalk group (ID 35585947) for customer consultation.
References
Topics related to backup policies of PolarDB for MySQL instances
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 |
---|---|---|---|---|
dbs:DescribeBackupPolicy | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionCode | string | No | The region in which the backup set resides. | cn-beijing |
InstanceName | string | No | The ID of the PolarDB for MySQL cluster. | pc-2ze3nrr64c5****** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "54A63B3B-AA10-1CC3-A6BB-6CCE98D19628",
"Message": "instanceName can not be empty.",
"Data": {
"PreferredBackupDate": "1010101",
"PreferredBackupWindowBegin": "23:00Z",
"PreferredBackupWindow": "23:00Z-24:00Z",
"BackupRetentionPeriod": 7,
"BackupRetentionPolicyOnClusterDeletion": "LATEST",
"HighFrequencyBakInterval": 120,
"BackupPriority": 0,
"EnableLogBackup": 1,
"LogBackupRetention": 7,
"LogBackupLocalRetentionNumber": "10",
"EnableBackup": 1,
"LocalLogRetentionSpace": 30,
"HighSpaceUsageProtection": "Enable",
"Category": "Standard",
"IncBackupInterval": -1,
"EnableIncBackup": 0,
"BackupMethod": "Physical",
"AdvanceLogPolicies": [
{
"PolicyId": "6s67c7i3y8f8p72808p******",
"SrcType": "level1",
"SrcRegion": "cn-beijing",
"DestType": "level1",
"DestRegion": "cn-shanghai",
"EnableLogBackup": true,
"LogRetentionType": "delay",
"LogRetentionValue": "3"
}
],
"AdvanceDataPolicies": [
{
"PolicyId": "71930ac2e9f15e41615e10627c******",
"FilterType": "crontab",
"FilterKey": "dayOfWeek",
"FilterValue": "1,2,3,4,5,6,7",
"DumpAction": "copy",
"RetentionType": "delay",
"RetentionValue": "7",
"SrcType": "db",
"SrcRegion": "cn-beijing",
"DestType": "level1",
"DestRegion": "cn-beijing",
"BakType": "F",
"AutoCreated": true
}
]
},
"ErrMessage": "The specified parameter %s value is not valid. ",
"Code": "Success",
"Success": "true",
"ErrCode": "Success"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
403 | Request.Forbidden | Have no Permissions |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-05-28 | The response structure of the API has changed | View Change Details |
2024-05-17 | The response structure of the API has changed | View Change Details |