VServerGroupProps
Properties for defining a VServerGroup.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-slb-vservergroup
Initializer
using AlibabaCloud.SDK.ROS.CDK.Slb;
new VServerGroupProps {
object LoadBalancerId,
object VServerGroupName,
object BackendServers = null,
TagsProperty[] Tags = null
};
Properties
| Name | Type | Description |
|---|---|---|
LoadBalancerId | object | Property loadBalancerId: The id of load balancer. |
VServerGroupName | object | Property vServerGroupName: The name of the vServer group. |
BackendServers | object | Property backendServers: The backend servers that you want to add. |
Tags | TagsProperty[] | Property tags: Tags to attach to instance. |
LoadBalancerIdRequired
public object LoadBalancerId { get; set; }
- Type: object
Property loadBalancerId: The id of load balancer.
VServerGroupNameRequired
public object VServerGroupName { get; set; }
- Type: object
Property vServerGroupName: The name of the vServer group.
The name must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
BackendServersOptional
public object BackendServers { get; set; }
- Type: object
Property 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), or 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:
- ecs (default): ECS instance
- eni: ENI.
- eni: elastic container instance.
You can specify ENIs and elastic container instances as backend servers only for high-performance SLB instances.
- ServerIp: The IP address of the ECS instance or ENI.
- Port: the backend port. 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.
TagsOptional
public TagsProperty[] Tags { get; set; }
- Type: TagsProperty[]
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.