ALIYUN::SLB::BackendServerToVServerGroupAddition is used to add backend servers to an existing VServer group.

Syntax

{
    "Type" : "ALIYUN::SLB::BackendServerToVServerGroupAddition",
    "Properties" : {
         "BackendServers" : List,
         "VServerGroupId" : String
    }
}
			

Properties

Name Type Required Update allowed Description
VServerGroupId string Yes No VServer group ID.
BackendServers list Yes Yes The ECS instance list to be added.

BackendServers syntax

"BackendServers" : [
    {
        "ServerId" : String,
        "Port" : Integer,
        "Weight" : Integer
    }
]
			

BackendServers properties

Name Type Required Update allowed Description Constraint
ServerId string Yes Yes ECS instance ID. N/A
Port integer Yes Yes The ECS port number monitored by the Server Load Balancer listener. Value:[1, 65535].
Weight integer Yes Yes The ECS instance weight to the Server Load Balancer instance. Value:[0,100].

Response parameters

Fn::GetAtt

  • VServerGroupId: The ID of virtual server group.

Example

{
    "ROSTemplateFormatVersion": "2015-09-01",
    "Resources": {
        "AttachVServerGroup": {
            "Type": "ALIYUN::SLB::BackendServerToVServerGroupAddition",
            "Properties": {
                "VServerGroupId": "sg-2zenh4ndwrqg14yt094fg",
                "BackendServers": [
                    {
                        "ServerId": "i-25zskuabf",
                        "Weight": 20,
                        "Port": 8080
                    },
                    {
                        "ServerId": "i-25zskuabf",
                        "Weight": 100,
                        "Port": 8081
                    }
                ]
            }
        }
    }
}