Queries the retention policy of log backups in an Apsara PolarDB cluster.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
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:

  • 0: disabled.
  • 1: enabled. By default, the log backup feature is enabled and cannot be disabled.
LogBackupRetentionPeriod Integer 7

The retention period of the log data. Valid values:

  • 7 to 7300: The log data is retained for 7 to 7,300 days.
  • -1: The log data is permanently retained.
RequestId String 62EE0051-102B-488D-9C79-D607B8******

The ID of the request.


Sample requests

http(s)://polardb.aliyuncs.com/? Action=DescribeLogBackupPolicy
&<Common request parameters>

Sample success responses

XML format


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.