Removes one or more backend servers from a specified vServer group.

Note If one or more backend servers specified by the BackendServers parameter do not exist in the specified vServer group, these backend servers are ignored and no error message is returned.

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 RemoveVServerGroupBackendServers

The operation that you want to perform.

Set the value to RemoveVServerGroupBackendServers.

BackendServers String Yes [{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-112" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166.**.**", "Port":"80","Description":"test-113" }]

The list of backend servers that you want to remove from the vServer group.

You can specify at most 20 backend servers for a vServer group in each call.

The value of this parameter is a JSON list of the STRING type. You can specify at most 20 elements in a list for each request.

  • ServerId: the ID of the Elastic Compute Service (ECS) instance or elastic network interface (ENI) that serves as a backend server.
  • Port: the port that is used by the backend server. Valid values: 1 to 65535.
  • Weight: the weight of the backend server. Valid values: 0 to 100.
  • Description: the description of the backend server. The description must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
  • Type: the type of backend server. Valid values:
    • ecs: an ECS instance. This is the default value.
    • eni: an ENI.
  • ServerIp: the IP address of the ECS instance or ENI.
RegionId String Yes cn-hangzhou

The ID of the region where the Classic Load Balancer (CLB) instance is deployed.

VServerGroupId String Yes rsp-cige6****

The ID of the vServer group.

Response parameters

Parameter Type Example Description
VServerGroupId String rsp-cige6j****

The ID of the vServer group.

BackendServers Array of BackendServer N/A

The list of backend servers.

BackendServer N/A N/A N/A
ServerId String vm-230

The ID of the ECS instance or ENI.

Port Integer 80

The port that is used by the backend server.

Weight Integer 100

The weight of the backend server.

Type String ecs

The type of backend server. Valid values:

  • ecs: an ECS instance
  • eni: an ENI
RequestId String 9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=RemoveVServerGroupBackendServers
&BackendServers=[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-112" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166.**.**", "Port":"80","Description":"test-113" }]
&RegionId=cn-hangzhou
&VServerGroupId=rsp-cige6****
&<Common request parameters>

Sample success responses

XML format

<RemoveVServerGroupBackendServersResponse>
  <VServerGroupId>rsp-cige6j****</VServerGroupId>
  <RequestId>9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C</RequestId>
  <BackendServers>
        <BackendServer>
              <Type>ecs</Type>
              <ServerId>vm-230</ServerId>
              <Port>80</Port>
              <Weight>100</Weight>
        </BackendServer>
  </BackendServers>
</RemoveVServerGroupBackendServersResponse>

JSON format

{
    "VServerGroupId": "rsp-cige6j****",
    "RequestId": "9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C",
    "BackendServers": {
        "BackendServer": {
            "Type": "ecs",
            "ServerId": "vm-230",
            "Port": 80,
            "Weight": 100
        }
    }
}

Error codes

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