Removes backend servers from a specified server group.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | RemoveServersFromServerGroup |
The operation that you want to perform. Set the value to RemoveServersFromServerGroup. |
ServerGroupId | String | Yes | sgp-atstuj3rtoptyui**** |
The ID of the server group. |
Servers.N.ServerId | String | Yes | ecs-bp67acfmxazb4p**** |
The ID of the server.
|
Servers.N.ServerType | String | Yes | Ecs |
The type of the backend server. Valid values:
|
Servers.N.ServerIp | String | No | 192.168.6.6 |
The IP address of the server. If the server group type is Ip, set the ServerId parameter to an IP address. |
Servers.N.Port | Integer | Yes | 443 |
The port used by the backend server. Valid values: 1 to 65535. |
DryRun | Boolean | No | false |
Specifies whether only to precheck the request. Valid values:
|
ClientToken | String | No | 123e4567-e89b-12d3-a456-426655440000 |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among all requests. ClientToken can contain only ASCII characters. Note If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId of each API request may be different.
|
RegionId | String | No | cn-hangzhou |
The ID of the region where the NLB instance is deployed. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 54B48E3D-DF70-471B-AA93-08E683A1B45 |
The ID of the request. |
ServerGroupId | String | sgp-atstuj3rtoptyui**** |
The ID of the server group. |
JobId | String | 72dcd26b-f12d-4c27-b3af-18f6aed5**** |
The ID of the asynchronous task. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=RemoveServersFromServerGroup
&ServerGroupId=sgp-atstuj3rtoptyui****
&Servers=[{"ServerId":"ecs-bp67acfmxazb4p****","ServerType":"Ecs","ServerIp":"192.168.6.6","Port":443}]
&DryRun=false
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<RemoveServersFromServerGroupResponse>
<RequestId>54B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
<ServerGroupId>sgp-atstuj3rtoptyui****</ServerGroupId>
<JobId>72dcd26b-f12d-4c27-b3af-18f6aed5****</JobId>
</RemoveServersFromServerGroupResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "54B48E3D-DF70-471B-AA93-08E683A1B45",
"ServerGroupId" : "sgp-atstuj3rtoptyui****",
"JobId" : "72dcd26b-f12d-4c27-b3af-18f6aed5****"
}
Error codes
For a list of error codes, visit the API Error Center.