public static final class AddVServerGroupBackendServersRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddVServerGroupBackendServersRequest.Builder |
backendServers(String backendServers)
The backend servers that you want to add.
|
AddVServerGroupBackendServersRequest |
build() |
AddVServerGroupBackendServersRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
AddVServerGroupBackendServersRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
AddVServerGroupBackendServersRequest.Builder |
regionId(String regionId)
The region ID of the Server Load Balancer (SLB) instance.
|
AddVServerGroupBackendServersRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
AddVServerGroupBackendServersRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
AddVServerGroupBackendServersRequest.Builder |
vServerGroupId(String vServerGroupId)
The ID of the vServer group.
|
public AddVServerGroupBackendServersRequest.Builder backendServers(String backendServers)
The backend servers that you want to add. Configure the following parameters:
ServerId: Required. The ID of the backend server. Specify the ID in a string. You can specify the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), and an elastic container instance. If you set ServerId to the ID of an ENI or an elastic container instance, you must configure the Type parameter.
Weight: the weight of the backend server. Valid values: 0 to 100. Default value: 100. If you set the weight of a backend server to 0, no requests are forwarded to the backend server.
Description: Optional. The description of the backend server. Specify the description in 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 backend servers only for high-performance SLB instances.
Examples:
Add an ECS instance:
[{ "ServerId": "i-xxxxxxxxx", "Weight": "100", "Type": "ecs", "Port":"80","Description":"test-112" }]
Add an ENI:
[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168..", "Port":"80","Description":"test-112" }]
Add an ENI with multiple IP addresses:
[{ "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" }]
Add an elastic container instance:
[{ "ServerId": "eci-xxxxxxxxx", "Weight": "100", "Type": "eci", "ServerIp": "192.168..", "Port":"80","Description":"test-114" }]
You can add only running backend servers to SLB instances. You can specify at most 20 backend servers in each call.
This parameter is required.
example:[{ "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 AddVServerGroupBackendServersRequest.Builder ownerAccount(String ownerAccount)
public AddVServerGroupBackendServersRequest.Builder ownerId(Long ownerId)
public AddVServerGroupBackendServersRequest.Builder regionId(String regionId)
The region ID of the Server Load Balancer (SLB) instance.
This parameter is required.
example:cn-hangzhou
public AddVServerGroupBackendServersRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public AddVServerGroupBackendServersRequest.Builder resourceOwnerId(Long resourceOwnerId)
public AddVServerGroupBackendServersRequest.Builder vServerGroupId(String vServerGroupId)
The ID of the vServer group.
This parameter is required.
example:rsp-cige6******
public AddVServerGroupBackendServersRequest build()
Copyright © 2026. All rights reserved.