ALIYUN::MSE::Gateway类型用于添加网关。
语法
{
"Type": "ALIYUN::MSE::Gateway",
"Properties": {
"BackupVSwitchId": String,
"EnterpriseSecurityGroup": String,
"VpcId": String,
"VSwitchId": String,
"SlbSpec": String,
"Spec": String,
"InternetSlbSpec": String,
"Replica": Integer,
"Name": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|
BackupVSwitchId | String | 否 | 否 | 备交换机ID。 | 无 |
EnterpriseSecurityGroup | String | 否 | 否 | 网关是否为企业安全组类型。 | 取值:- true:是企业安全组类型。
- false:不是企业安全组类型。
|
VpcId | String | 是 | 否 | 专有网络ID。 | 无 |
VSwitchId | String | 是 | 否 | 主交换机ID。 | 无 |
SlbSpec | String | 否 | 否 | 私网SLB规格。 | 无 |
Spec | String | 是 | 否 | 网关节点规格。 | 取值:- MSE_GTW_2_4_200_c
- MSE_GTW_4_8_200_c
- MSE_GTW_8_16_200_c
- MSE_GTW_16_32_200_c
|
InternetSlbSpec | String | 否 | 否 | 公网SLB规格。 | 无 |
Replica | Integer | 是 | 否 | 节点数量。 | 取值范围:1~30。 |
Name | String | 否 | 否 | 网关名称。 | 无 |
返回值
Fn::GetAtt
- GatewayUniqueId:网关唯一标识ID。
- BackupVSwitchId:备交换机ID。
- VpcId:专有网络ID。
- VSwitchId:主交换机ID。
- PaymentType:资源的支付类型。
- Spec:节点规格。
- Replica:节点数量。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VSwitchZoneId:
AssociationProperty: ALIYUN::ECS::Instance:ZoneId
Type: String
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
Description: VpcId
VSwitchId:
Type: String
AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
AssociationPropertyMetadata:
VpcId: VpcId
ZoneId: VSwitchZoneId
Resources:
MSEGateway:
Type: ALIYUN::MSE::Gateway
Properties:
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
Spec: MSE_GTW_2_4_200_c
Replica: 2
Outputs:
GatewayUniqueId:
Description: Gateway unique identification
Value:
Fn::GetAtt:
- MSEGateway
- GatewayUniqueId
BackupVSwitchId:
Description: VSwitchId For Backup
Value:
Fn::GetAtt:
- MSEGateway
- BackupVSwitchId
VpcId:
Description: VpcId
Value:
Fn::GetAtt:
- MSEGateway
- VpcId
VSwitchId:
Description: VSwitchId
Value:
Fn::GetAtt:
- MSEGateway
- VSwitchId
PaymentType:
Description: The payment type of the resource
Value:
Fn::GetAtt:
- MSEGateway
- PaymentType
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VSwitchZoneId": {
"AssociationProperty": "ALIYUN::ECS::Instance:ZoneId",
"Type": "String"
},
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
"Description": "VpcId"
},
"VSwitchId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
"AssociationPropertyMetadata": {
"VpcId": "VpcId",
"ZoneId": "VSwitchZoneId"
}
}
},
"Resources": {
"MSEGateway": {
"Type": "ALIYUN::MSE::Gateway",
"Properties": {
"VpcId": {
"Ref": "VpcId"
},
"VSwitchId": {
"Ref": "VSwitchId"
},
"Spec": "MSE_GTW_2_4_200_c",
"Replica": 2
}
}
},
"Outputs": {
"GatewayUniqueId": {
"Description": "Gateway unique identification",
"Value": {
"Fn::GetAtt": [
"MSEGateway",
"GatewayUniqueId"
]
}
},
"BackupVSwitchId": {
"Description": "VSwitchId For Backup",
"Value": {
"Fn::GetAtt": [
"MSEGateway",
"BackupVSwitchId"
]
}
},
"VpcId": {
"Description": "VpcId",
"Value": {
"Fn::GetAtt": [
"MSEGateway",
"VpcId"
]
}
},
"VSwitchId": {
"Description": "VSwitchId",
"Value": {
"Fn::GetAtt": [
"MSEGateway",
"VSwitchId"
]
}
},
"PaymentType": {
"Description": "The payment type of the resource",
"Value": {
"Fn::GetAtt": [
"MSEGateway",
"PaymentType"
]
}
}
}
}