You can call the DetachGadInstanceMember operation to remove a unit node from an ApsaraDB RDS global active database cluster.

Precautions

This operation can be used to remove only unit nodes.

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
Action String Yes DetachGadInstanceMember

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

GadInstanceName String Yes gad-rm-bp1npi2j8********

The ID of the global active database cluster.

RegionId String No cn-hangzhou

The region ID of the central node. You can call the DescribeGadInstances operation to query the most recent region list.

MemberInstanceName String Yes rm-bp1npi2j8********

The ID of the instance that serves as the unit node you want to remove. You can call the DescribeGadInstances query the ID of the instance.

Response parameters

Parameter Type Example Description
RequestId String 65BDA532-28AF-4122-AA39-B382721EEE64

The ID of the request.

Examples

Sample requests

http(s)://rds.aliyuncs.com/?Action=DetachGadInstanceMember
&GadInstanceName=gad-rm-bp1npi2j8********
&MemberInstanceName=rm-bp1npi2j8********
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DetachGadInstanceMemberResponse>
<RequestId>65BDA532-28AF-4122-AA39-B382721EEE64</RequestId>
</DetachGadInstanceMemberResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "65BDA532-28AF-4122-AA39-B382721EEE64"
}

Error codes

For a list of error codes, visit the API Error Center.