ALIYUN::SLB::VServerGroup is used to create a server group and attach backend servers to a Server Load Balancer (SLB) instance.
Syntax
{
"Type": "ALIYUN::SLB::VServerGroup",
"Properties": {
"VServerGroupName": String,
"BackendServers": List,
"LoadBalancerId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
VServerGroupName | String | Yes | No | The name of the server group. | None. |
BackendServers | List | No | Yes | The backend servers that you want to attach to the SLB instance. | You can attach up to 20 Elastic Compute Service (ECS) instances. For more information, see BackendServers properties. |
LoadBalancerId | String | Yes | No | The ID of the SLB instance. | None. |
BackendServers syntax
"BackendServers": [
{
"ServerId": String,
"Port": Integer,
"Weight": Integer,
"Type": String,
"Description": String,
"ServerIp": String
}
]
BackendServers properties
Property | Type | Required | Editable | Description | Constraint |
ServerId | String | Yes | Yes | The ID of the instance that you want to use as the backend server. | None. |
Port | Integer | Yes | Yes | The port of the backend server. | Valid values: 1 to 65535. |
Weight | Integer | No | Yes | The weight of the backend server. | Valid values: 0 to 100. |
Type | String | No | Yes | The type of the backend server. | Valid values:
|
Description | String | No | Yes | 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 (_). |
ServerIp | String | No | Yes | The IP address of the backend server. | The IP address of an ECS instance or ENI is supported. |
Return values
Fn::GetAtt
VServerGroupId: the ID of the server group.
BackendServers: the backend servers that are attached to the SLB instance.
LoadBalancerId: the ID of the SLB instance.
Examples
For more examples, visit Listener.json and Listener.yml. In the examples, the following resource types are used: ALIYUN::SLB::Listener, ALIYUN::SLB::LoadBalancerClone, ALIYUN::SLB::Certificate, ALIYUN::SLB::DomainExtension, ALIYUN::SLB::VServerGroup, ALIYUN::SLB::Rule, and ALIYUN::SLB::BackendServerToVServerGroupAddition.