If your ApsaraDB RDS for SQL Server instance runs critical workloads, we recommend enabling release protection for it. This feature prevents pay-as-you-go or Serverless instances from being accidentally released due to operational errors, preventing irreversible data loss. This topic describes how to enable and disable instance release protection.
How it works
After you enable release protection, the system blocks any attempts to release the protected instance:
If you try to manually release the instance in the ApsaraDB RDS console, the system displays an error message and the operation fails.
Calling the
DeleteDBInstanceAPI operation to release the instance fails and returns an error message.
Prerequisites
The instance uses the pay-as-you-go or Serverless billing method.
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.
Enable release protection during instance creation
You can enable release protection when you create an instance in the ApsaraDB RDS console or by calling the CreateDBInstance or CloneDBInstance (to restore historical data to a new instance) API operations, which use the DeletionProtection parameter.
The following steps focus on the options related to release protection. For information about other configurations, see Quickly create and use an ApsaraDB RDS for SQL Server instance.
Set Billing Method to Pay-As-You-Go or Serverless.
In the More section, select Prevents instances to be deleted by using the console or calling an API operation by mistake.. Configure other parameters as needed.
Modify release protection
You can modify the release protection setting for an existing instance in the ApsaraDB RDS console or by calling the ModifyDBInstanceDeletionProtection API operation to enable or disable release protection.
Log on to the ApsaraDB RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region in which the RDS instance resides.
On the Instances page, find the target instance. In the Action column, choose .
Enable or disable Release Protection as needed.
Click OK.
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.