All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::SLB::BackendServerToVServerGroupAddition

Last Updated:Jun 10, 2026

ALIYUN::SLB::BackendServerToVServerGroupAddition adds backend servers to an existing server group.

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

VServerGroupId

String

Yes

No

Server group ID.

None.

BackendServers

List

Yes

Yes

Backend server details.

For more information, see BackendServers properties.

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

Instance ID of the backend server.

None.

Port

Integer

Yes

Yes

Port of the backend server.

Valid values: 1 to 65535.

Weight

Integer

No

Yes

Weight of the backend server.

Valid values: 0 to 100.

Type

String

No

Yes

Backend server type.

Valid values:

  • ecs (default): Elastic Compute Service (ECS) instance

  • eni: elastic network interface (ENI)

    Note

    ENIs can be backend servers only for high-performance SLB instances.

Description

String

No

Yes

Description of the backend server.

1 to 80 characters. Supports letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).

ServerIp

String

No

Yes

IP address of the backend server.

Supports ECS instance and ENI IP addresses.

Return values

Fn::GetAtt

VServerGroupId: the ID of the server group.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VServerGroupId:
    Type: String
    Description: The ID of virtual server group.
    Default: rsp-wz9j5sanme***
  BackendServers:
    Type: Json
    Description: The list of a combination of ECS Instance-Port-Weight.Same ecs instance with different port is allowed, but same ecs instance with same port isn't.
    Default:
      - Type: ecs
        ServerId: i-wz9c46a4ejwyj*****
        Port: 80
        Weight: 100
Resources:
  BackendServerToVServerGroupAddition:
    Type: ALIYUN::SLB::BackendServerToVServerGroupAddition
    Properties:
      VServerGroupId:
        Ref: VServerGroupId
      BackendServers:
        Ref: BackendServers
Outputs:
  VServerGroupId:
    Description: The ID of virtual server group.
    Value:
      Fn::GetAtt:
        - BackendServerToVServerGroupAddition
        - VServerGroupId

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VServerGroupId": {
      "Type": "String",
      "Description": "The ID of virtual server group.",
      "Default": "rsp-wz9j5sanme***"
    },
    "BackendServers": {
      "Type": "Json",
      "Description": "The list of a combination of ECS Instance-Port-Weight.Same ecs instance with different port is allowed, but same ecs instance with same port isn't.",
      "Default": [
        {
          "Type": "ecs",
          "ServerId": "i-wz9c46a4ejwyj*****",
          "Port": 80,
          "Weight": 100
        }
      ]
    }
  },
  "Resources": {
    "BackendServerToVServerGroupAddition": {
      "Type": "ALIYUN::SLB::BackendServerToVServerGroupAddition",
      "Properties": {
        "VServerGroupId": {
          "Ref": "VServerGroupId"
        },
        "BackendServers": {
          "Ref": "BackendServers"
        }
      }
    }
  },
  "Outputs": {
    "VServerGroupId": {
      "Description": "The ID of virtual server group.",
      "Value": {
        "Fn::GetAtt": [
          "BackendServerToVServerGroupAddition",
          "VServerGroupId"
        ]
      }
    }
  }
}