You can call this operation to remove one or more RDS instances from a scaling group.


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
DBInstance.N RepeatList Yes rm-bp12cy3****

The IDs of RDS instances. You can remove up to five RDS instances from a scaling group at a time.

ScalingGroupId String Yes AG6CQdPU8OKdwLjgZcJ****

The ID of the scaling group.

Action String Yes DetachDBInstances

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

ForceDetach Boolean No false

Specifies whether to remove the private IP addresses of instances in the scaling group from the whitelist of the RDS instance. Valid values:

  • true: removes the private IP addresses.
  • false: does not remove private IP addresses.

Default value: false

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For more information about error codes, visit API Error Center.

HTTP status code

Error code

Error message




The specified scaling group does not exist.

The error message returned because the specified scaling group does not exist in the current account.



DB instance "%s" does not exist.

The error message returned because the specified RDS instance does not exist.