public static final class AddBackendServersRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddBackendServersRequest.Builder |
backendServers(String backendServers)
The list of backend servers that you want to add.
|
AddBackendServersRequest |
build() |
AddBackendServersRequest.Builder |
loadBalancerId(String loadBalancerId)
The ID of the CLB instance.
|
AddBackendServersRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
AddBackendServersRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
AddBackendServersRequest.Builder |
regionId(String regionId)
The ID of the region where the Classic Load Balancer (CLB) instance is deployed.
|
AddBackendServersRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
AddBackendServersRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
public AddBackendServersRequest.Builder backendServers(String backendServers)
The list of backend servers that you want to add. Set the following parameters:
ServerId: Required. This value must be a string. Enter the ID of an ECS instance, elastic network interface (ENI), or elastic container instance. If ServerId is set to the ID of an ENI or elastic container instance, Type is required.
Weight: the weight of the backend server. Valid values: 0 to 100. Default value: 100.
If the value is set to 0, no requests are forwarded to the backend server.
Description: Optional. The description of the backend server. This value must be a string. 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 the backend server. Valid values:
You can specify ENIs and elastic container instances as the backend servers only for high-performance CLB instances.
Examples:
[{ "ServerId": "i-xxxxxxxxx", "Weight": "100", "Type": "ecs", "Port":"80","Description":"test-112" }][{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168..", "Port":"80","Description":"test-112" }][{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168..", "Port":"80","Description":"test-113" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166..", "Port":"80","Description":"test-113" }][{ "ServerId": "eci-xxxxxxxxx", "Weight": "100", "Type": "eci", "ServerIp": "192.168..", "Port":"80","Description":"test-114" }]example:The backend servers that you add to a CLB instance must be in the Running state. You can add at most 20 backend servers to a CLB instance in each request.
[{ "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" }]
public AddBackendServersRequest.Builder loadBalancerId(String loadBalancerId)
The ID of the CLB instance.
This parameter is required.
example:lb-2ze7o5h52g02kkzz******
public AddBackendServersRequest.Builder ownerAccount(String ownerAccount)
public AddBackendServersRequest.Builder ownerId(Long ownerId)
public AddBackendServersRequest.Builder regionId(String regionId)
The ID of the region where the Classic Load Balancer (CLB) instance is deployed.
You can call the DescribeRegions operation to query the most recent region list.
example:cn-beijing
public AddBackendServersRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public AddBackendServersRequest.Builder resourceOwnerId(Long resourceOwnerId)
public AddBackendServersRequest build()
Copyright © 2026. All rights reserved.