閱讀116 返回首頁    go 財經資訊


ALIYUN::SLB::BackendServerAttachment__資源列表_資源編排-阿裏雲

ALIYUN::SLB::BackendServerAttachment 類型可用於添加後端服務器。

語法

{
   "Type" : "ALIYUN::SLB::BackendServerAttachment",
   "Properties" : {
         "LoadBalancerId" : String,
      "BackendServers" : String
   }
}

屬性

LoadBalancerId

負載均衡實例的唯一標識。

BackendServers

需要添加的後端服務器列表。注:後端服務器必須是運行中才可以加入負載均衡 
取值:是一個Json string,其結構是一個JsonList。一次請求中,List中的元素個數最多20個。List元素的結構詳見下表和調用示例。

返回值

Fn::GetAtt

示例

{
  "ROSTemplateFormatVersion" : "2015-09-01",
  "Resources" : {
    "LoadBalancer": {
      "Type": "ALIYUN::SLB::LoadBalancer",
      "Properties": {
        "LoadBalancerName": "createdByHeat",
        # "RegionId": "cn-hangzhou",
        "AddressType": "internet",
        "InternetChargeType": "paybybandwidth",
        # "VpcId": 20,
        # "VSwitchId": "cloud",
      }
    },
    "Attachment2": {
      "Type": "ALIYUN::SLB::BackendServerAttachment",
      "Properties": {
        "LoadBalancerId": {"Ref": "LoadBalancer"},
        "BackendServers": [
            {
                "ServerId": "i-25p3336hr",
                "Weight": 100
            },
            {
                "ServerId": "i-25uipytlb",
                "Weight": 100
            }
        ]
      }
    }
  }
}

最後更新:2016-11-23 16:04:02

  上一篇:go ALIYUN::RDS::DBInstanceSecurityIps__資源列表_資源編排-阿裏雲
  下一篇:go ALIYUN::SLB::Listener__資源列表_資源編排-阿裏雲