Queries the retention policy of log backups in a PolarDB cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | DescribeLogBackupPolicy |
The operation that you want to perform. Set the value to DescribeLogBackupPolicy. |
DBClusterId | String | Yes | pc-***************** |
The ID of the cluster. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
EnableBackupLog | Integer | 1 |
Indicates whether the log backup feature was enabled. Valid values:
|
LogBackupRetentionPeriod | Integer | 7 |
The retention period of the logs. Valid values:
|
RequestId | String | 62EE0051-102B-488D-9C79-D607B8****** |
The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/? Action=DescribeLogBackupPolicy
&DBClusterId=pc-*****************
&<Common request parameters>
Sample success responses
XML
format
<DescribeLogBackupPolicyResponse>
<LogBackupRetentionPeriod>7</LogBackupRetentionPeriod>
<RequestId>62EE0051-102B-488D-9C79-D607B8******</RequestId>
<EnableBackupLog>1</EnableBackupLog>
</DescribeLogBackupPolicyResponse>
JSON
format
{
"LogBackupRetentionPeriod": 7,
"RequestId": "62EE0051-102B-488D-9C79-D607B8******",
"EnableBackupLog": 1
}
Error codes
For a list of error codes, visit the API Error Center.