Enables or disables the cluster lock feature.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyDBClusterDeletion |
The operation that you want to perform. Set the value to ModifyDBClusterDeletion. |
DBClusterId | String | Yes | pc-bp1313h70cd5m**** |
The ID of the cluster. Note You can obtain the cluster ID by calling the DescribeDBClusters operation.
|
Protection | Boolean | No | true |
Specifies whether to enable the cluster lock feature. Default value: false. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 24C80BD8-C710-4138-893A-D2AFED4FC13D |
The ID of the request. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/?Action=ModifyDBClusterDeletion
&DBClusterId=pc-bp1313h70cd5m****
&Protection=true
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyDBClusterDeletionResponse>
<RequestId>24C80BD8-C710-4138-893A-D2AFED4FC13D</RequestId>
</ModifyDBClusterDeletionResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "24C80BD8-C710-4138-893A-D2AFED4FC13D"
}
Error codes
HTTP status code | 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 does not exist in the current record. |
For a list of error codes, visit the API Error Center.