ALIYUN::MSE::Gateway

ALIYUN::MSE::Gateway类型用于添加网关。

说明

该资源仅可创建按量付费版的传统实例(普通实例),如需创建其他付费类型或Serverless类型网关,请使用ALIYUN::MSE::Gateway2

语法

{
  "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。

说明

建议节点数大于等于2,以保证网关高可用。

Name

String

网关名称。

返回值

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