If your ApsaraDB RDS Custom instance hosts critical services, stores important data, or has important configurations, we recommend enabling release protection for the instance. This feature prevents the instance from being accidentally released, which can have irreversible consequences. After you enable release protection, you cannot manually release the instance from the console or by using an API.
Precautions
Release protection does not prevent an instance from being automatically released in the following situations:
-
The instance is automatically released due to a payment being overdue for more than 15 days.
-
The instance is automatically released after its subscription expires.
-
The instance is stopped or released due to security or compliance risks.
Effects of release protection
If you attempt to release an instance with release protection enabled, the operation fails as follows:
-
If you attempt to manually release the instance in the console, the operation fails and an error message appears.
-
If you call the DeleteRCInstances API operation to release the instance, the call fails and returns an error message.
Enable or disable release protection
You can enable or disable this feature during instance creation or at any time afterward.
For an existing instance
-
Log on to the RDS console. In the navigation pane on the left, click RDS Custom > Custom Instances. In the top navigation bar, select a region.
-
In the Actions column of the target instance, click or .
Alternatively, on the Basic Information page of the instance, in the Configuration Information section, click Configure next to Release Protection.
-
In the dialog box that appears, click OK.
During instance creation
When you create an RDS Custom instance, in the More section, select Prevents instances to be deleted by using the console or calling an API operation by mistake..
Check release protection status
-
Log on to the RDS console. In the navigation pane on the left, click RDS Custom > Custom Instances. In the top navigation bar, select a region.
-
Click the instance ID to go to its Basic Information page.
-
In the Configuration Information section, view the Release Protection field.
Related APIs
-
RunRCInstances: Creates one or more RDS Custom instances.
-
ModifyRCInstanceAttribute: Modifies some attributes of an RDS Custom instance.