Release protection prevents an ApsaraDB RDS for MySQL instance from being accidentally deleted through the console or an API call. Enable it on instances running critical workloads to avoid irreversible data loss.
Prerequisites
Before you begin, ensure that you have:
-
An ApsaraDB RDS for MySQL instance with a billing method of Pay-as-you-go or Serverless
Limitations
Release protection does not prevent automatic release in the following scenarios:
-
Your account has an overdue payment for more than 15 days.
-
The RDS instance does not comply with security compliance policies.
How release protection works
When release protection is enabled, any attempt to delete the instance is blocked:
| Method | Behavior |
|---|---|
| Console | An error message is displayed indicating the instance cannot be released. |
API (DeleteDBInstance) |
The operation returns an error. See DeleteDBInstance. |
Enable release protection during instance creation
-
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where your RDS instance resides.
-
On the Instances page, click Create Instance.
-
In the Basic Resources step, set Billing Method to Pay-as-you-go and configure other required parameters. Click Next: Instance Configuration.
-
In the Instance Configuration step, select Prevents instances from being unexpectedly deleted by using the console or calling an API operation and configure other required parameters. Click Next: Confirm Order.
-
Configure the required parameters.
To enable or disable release protection via API when creating an instance, set the DeletionProtection parameter in CreateDBInstance or CloneDBInstance.
Enable or disable release protection on an existing instance
-
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where your RDS instance resides.
-
On the Instances page, find the target instance. In the Actions column, click More > Change Release Protection Settings.
-
In the dialog box that appears, turn on or turn off Release Protection.
-
Click OK.
To enable or disable release protection via API, call ModifyDBInstanceDeletionProtection.
Check release protection status
-
Go to the Instances page. In the top navigation bar, select the region. Find the RDS instance and click its ID.
-
On the Basic Information page, view the Release Protection parameter in the Configuration Information section.
Related API operations
| Operation | Description |
|---|---|
| CreateDBInstance | Creates an instance. |
| CloneDBInstance | Restores data from an existing instance to a new (cloned) instance. |
| ModifyDBInstanceDeletionProtection | Enables or disables release protection for an instance. |