Modifies the retention policy of log backups for an Apsara PolarDB cluster.

Debugging

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
Action String No ModifyLogBackupPolicy

The operation that you want to perform. Set the value to ModifyBackupPolicy.

DBClusterId String Yes pc-****************

The ID of the cluster.

LogBackupRetentionPeriod String No 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.

Response parameters

Parameter Type Example Description
RequestId String 345174B4-FAB3-412E-A326-BEDDA9******

The ID of the request.

Examples

Sample request

http(s)://polardb.aliyuncs.com/? Action=ModifyLogBackupPolicy
&DBClusterId=pc-****************
&<Common request parameters>

Sample success responses

XML format

<ModifyLogBackupPolicyResponse>
  <RequestId>345174B4-FAB3-412E-A326-BEDDA9******</RequestId>
</ModifyLogBackupPolicyResponse>

JSON format

{
	"RequestId": "345174B4-FAB3-412E-A326-BEDDA9******"
}

Error codes

For a list of error codes, visit the API Error Center.