Enables or disables deletion protection for an ApsaraDB for HBase 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 Yes ModifyClusterDeletionProtection

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

ClusterId String Yes ld-bp150tns0sjxs****

The ID of the ApsaraDB for HBase cluster. You can call the DescribeInstances operation to query the instance ID.

Protection Boolean Yes true

Specifies whether to enable deletion protection.

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

Response parameters

Parameter Type Example Description
RequestId String 24C80BD8-C710-4138-893A-D2AFED4FC13D

The ID of the request.

Examples

Sample requests

http(s)://hbase.aliyuncs.com/?Action=ModifyClusterDeletionProtection
&ClusterId=ld-bp150tns0sjxs****
&Protection=true
&<Common request parameters>

Sample success responses

XML format

<RequestId>24C80BD8-C710-4138-893A-D2AFED4FC13D</RequestId>

JSON format

{
    "RequestId": "24C80BD8-C710-4138-893A-D2AFED4FC13D"
}

Error codes

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