Enables or disables the cluster lock.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterDeletion |
update |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the target cluster. Note
Call the DescribeDBClusters operation to find the cluster ID. |
pc-bp1313h70cd5m**** |
| Protection |
boolean |
No |
Specifies whether to enable or disable the cluster lock. The default value is false. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
24C80BD8-C710-4138-893A-D2AFED4FC13D |
Examples
Success response
JSON format
{
"RequestId": "24C80BD8-C710-4138-893A-D2AFED4FC13D"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | OperationDenied.DBClusterPayType | The operation is not permitted due to the pay type of cluster. | This operation is not supported by the billing method of the cluster. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.