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 Editable Description Validity
VServerGroupId String Yes No The ID of the VServer group. None
BackendServers List Yes Yes The list of ECS instances to be added. None

BackendServers syntax

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

BackendServers properties

Name Type Required Editable Description Validity
ServerId String Yes Yes The ID of the ECS instance. None
Port Integer Yes Yes The backend port used by the SLB instance. Valid values: 1 to 65535.
Weight Integer Yes Yes The weight of the ECS instance to be attached to the SLB instance. Valid values: 0 to 100.

Response parameters

Fn::GetAtt

  • VServerGroupId: the ID of the VServer group.

Examples

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