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
  }
}

属性

属性名称类型必须允许更新描述约束
BackupVSwitchIdString备交换机ID。
EnterpriseSecurityGroupString网关是否为企业安全组类型。取值:
  • true:是企业安全组类型。
  • false:不是企业安全组类型。
VpcIdString专有网络ID。
VSwitchIdString主交换机ID。
SlbSpecString私网SLB规格。
SpecString网关节点规格。取值:
  • MSE_GTW_2_4_200_c
  • MSE_GTW_4_8_200_c
  • MSE_GTW_8_16_200_c
  • MSE_GTW_16_32_200_c
InternetSlbSpecString公网SLB规格。
ReplicaInteger节点数量。取值范围:1~30。
说明 建议节点数大于等于2,以保证网关高可用。
NameString网关名称。

返回值

Fn::GetAtt

  • GatewayUniqueId:网关唯一标识ID。
  • BackupVSwitchId:备交换机ID。
  • VpcId:专有网络ID。
  • VSwitchId:主交换机ID。
  • PaymentType:资源的支付类型。
  • Spec:节点规格。
  • Replica:节点数量。

示例

  • YAML格式

    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
  • JSON格式

    {
      "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"
            ]
          }
        }
      }
    }