You can call this operation to modify log backup configurations.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyLogBackupPolicy |
The operation that you want to perform. Set the value to ModifyLogBackupPolicy. |
DBClusterId | String | Yes | am-bp1xxxxxxxx47 |
The ID of the cluster. |
EnableBackupLog | String | Yes | Enable |
Specifies whether to enable log backup. Valid values:
|
LogBackupRetentionPeriod | String | No | 30 |
The number of days for which to retain data backup files. Valid values: 7 to 730. Default value: 7. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 1AD222E9-E606-4A42-BF6D-8A4442913CEF |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ModifyLogBackupPolicy
&DBClusterId=am-bp1xxxxxxxx47
&EnableBackupLog=Enable
&<Common request parameters>
Sample success responses
XML
format
<RequestId>1AD222E9-E606-4A42-BF6D-8A4442913CEF</RequestId>
JSON
format
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The error message returned because the specified DBClusterId parameter does not exist. Check whether you specify the DBClusterId parameter correctly. |
For a list of error codes, visit the API Error Center.