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
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
VServerGroupId | String | Yes | No | The ID of the VServer group. | None. |
BackendServers | List | Yes | Yes | The list of ECS instances to be added. | For more information, see BackendServers properties. |
BackendServers syntax
"BackendServers": [
{
"ServerId": String,
"Port": Integer,
"Weight": Integer
}
]
BackendServers properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
ServerId | String | Yes | Yes | The ID of the ECS instance. | None. |
Port | Integer | Yes | Yes | The backend port number used by the SLB instance. | Valid values: 1 to 65535. |
Weight | Integer | No | 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
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VServerGroupId": {
"Type": "String",
"Description": "The ID of virtual server group."
},
"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."
}
},
"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"
]
}
}
}
}
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VServerGroupId:
Type: String
Description: The ID of virtual server group.
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.
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