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

Debugging

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.

Examples

Sample requests


http://ess.aliyuncs.com/?Action=DetachDBInstances
&ScalingGroupId=AG6CQdPU8OKdwLjgZcJ****
&DBInstance.1=rm-bp12cy3****
&<Common request parameters>

Sample success responses

XML format

<DetachDBInstancesResponse>
      <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</DetachDBInstancesResponse>

JSON format

{
	"RequestId":"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error codes

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

HTTP status code

Error code

Error message

Description

404

InvalidScalingGroupId.NotFound

The specified scaling group does not exist.

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

400

InvalidDBInstanceId.NotFound

DB instance "%s" does not exist.

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