Enables or disables the cluster lock feature.

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 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 view the cluster ID by calling the DescribeDBClusters operation.
Protection Boolean No true

Enables or disables the cluster lock feature. Valid values:

  • true: enables the cluster lock feature. If you enable the cluster lock feature, you cannot directly release the cluster. You must disable the cluster lock feature before you can release the cluster.
  • false: disables the cluster lock feature.

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.