edit-icon download-icon

ALIYUN::SLB::BackendServerAttachment

Last Updated: Jun 13, 2018

The ALIYUN::SLB::BackendServerAttachment type is used to add backend servers.

Syntax

  1. {
  2. "Type" : "ALIYUN::SLB::BackendServerAttachment",
  3. "Properties" : {
  4. "LoadBalancerId" : String,
  5. "BackendServers" : List,
  6. "BackendServerList" : List,
  7. "BackendServerWeightList" : List
  8. }
  9. }

Properties

Name Type Required Update allowed Description Constraint
LoadBalancerId string Yes No Unique ID of a Server Load Balancer instance. N/A
BackendServerList list No Yes List of backend servers you want to add. This parameter is used with BackendServerWeightList. ECS instance IDs are separated by commas(,). This parameter is ignored when BackendServers is specified.
BackendServerWeightList list No Yes Weights of all ECS instances in BackendServerList, which are specified in sequence. If this parameter is not specified, the weights of the ECS instances in BackendServerList are 100. When the server amount of BackendServerWeightList is less than that of BackendServerList, the weights of the remaining ECS instances in BackendServerList are set to the last value in BackendServerWeightList.
BackendServers list No Yes List of backend servers you want to add. Only backend servers in the running state can be added to Server Load Balancer.

BackendServers syntax

  1. "BackendServers" : [
  2. {
  3. "ServerId" : String,
  4. "Weight" : Integer
  5. }
  6. ]

BackendServers properties

Name Type Required Update allowed Description Constraint
ServerId string Yes Yes ECS instance ID. The ECS instance must be in the running state.
Weight integer Yes Yes Weight of the ECS instance in the Server Load Balancer instance. Value range: [0, 100]; default value: 100.

Return values

Fn::GetAtt

  • BackendServers: List of backend servers added to the Server Load Balancer instance.

  • LoadBalancerId: ID of the Server Load Balancer instance.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "Attachment2": {
  5. "Type": "ALIYUN::SLB::BackendServerAttachment",
  6. "Properties": {
  7. "LoadBalancerId": "15187200816-cn-beijing-btc-a01",
  8. "BackendServerList": ["i-25o0m3nzq","i-25zskuabf"],
  9. "BackendServerWeightList": ["20", "100"]
  10. }
  11. }
  12. }
  13. }
Thank you! We've received your feedback.