Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::MSE::Gateway2

Última atualização: Jun 27, 2026

Cria um gateway nativo da nuvem do Microservices Engine (MSE).

Sintaxe

{
  "Type": "ALIYUN::MSE::Gateway2",
  "Properties": {
    "VpcId": String,
    "AcceptLanguage": String,
    "ChargeType": String,
    "ClbNetworkType": String,
    "EnterpriseSecurityGroup": Boolean,
    "EnableXtrace": Boolean,
    "EnableSls": Boolean,
    "EnableHardwareAcceleration": Boolean,
    "InternetSlb": String,
    "ManagedEntryNetworkType": String,
    "MserVersion": String,
    "Name": String,
    "NlbNetworkType": String,
    "ResourceGroupId": String,
    "Replica": Integer,
    "SlbSpec": String,
    "Spec": String,
    "Tags": List,
    "VSwitchId2": String,
    "VSwitchId": String,
    "XtraceRatio": Integer,
    "ZoneInfo": List,
    "Period": Number,
    "PeriodUnit": String
  }
}

Propriedades

Nome da propriedade

Tipo

Obrigatório

Editável

Descrição

Restrição

VpcId

String

Sim

Não

ID da Virtual Private Cloud (VPC).

Nenhuma

AcceptLanguage

String

Não

Sim

Idioma da mensagem de retorno.

Valores válidos:

  • zh

  • en

ChargeType

String

Não

Sim

Método de faturamento.

Valores válidos:

  • PREPAY: assinatura anual ou mensal.

  • POSTPAY: pagamento conforme o uso.

ClbNetworkType

String

Não

Não

Tipo de rede para compra do CLB (com faturamento por LCU).

Valores válidos:

  • pubnet: Rede pública

  • privatenet: Rede privada

  • privatepubnet: Rede pública + Rede privada

Nota

Instância Serverless: ao criar uma instância, escolha apenas NLB ou CLB (com faturamento por LCU).

EnterpriseSecurityGroup

Boolean

Não

Não

Defina se um grupo de segurança empresarial será usado.

Nenhuma

EnableXtrace

Boolean

Não

Não

Ative se o log do Xtrace será ativado.

Nenhuma

EnableSls

Boolean

Não

Não

Ative se o Simple Log Service (SLS) será ativado.

Nenhuma

EnableHardwareAcceleration

Boolean

Não

Não

Ative se a aceleração de hardware será ativada.

Nenhuma

InternetSlb

String

Não

Não

Especificações do SLB (Server Load Balancer) de rede pública.

Valores válidos:

  • Tipo básico I (slb.s1.small)

  • Tipo padrão I (slb.s2.small)

  • Tipo padrão II (slb.s2.medium)

  • Tipo avançado I (slb.s3.small)

  • Tipo avançado II (slb.s3.medium)

  • Tipo ultra I (slb.s3.large)

ManagedEntryNetworkType

String

Não

Não

Tipo de entrada do gateway.

Valores válidos:

  • pubnet: Rede pública

  • privatenet: Rede privada

  • privatepubnet: Rede pública + Rede privada

MserVersion

String

Não

Não

Tipo de produto do gateway.

Valores válidos:

  • mse_pro: Edição Standard de instância normal

  • mse_premium: Edição Profissional de instância normal

  • mse_serverless: Edição Serverless

Name

String

Não

Não

Nome do gateway.

Nenhuma

NlbNetworkType

String

Não

Não

Tipo de rede para compra do NLB.

Valores válidos:

  • pubnet: Rede pública

  • privatenet: Rede privada

  • privatepubnet: Rede pública + Rede privada

Nota

Instância Serverless: ao criar uma instância, escolha apenas NLB ou CLB (com faturamento por LCU).

ResourceGroupId

String

Não

Não

ID do grupo de recursos.

Nenhuma

Replica

Integer

Não

Não

Número de nós.

Valores válidos: 1 a 30.

SlbSpec

String

Não

Não

Especificações do SLB (Server Load Balancer) de rede privada.

Valores válidos:

  • Tipo básico I (slb.s1.small)

  • Tipo padrão I (slb.s2.small)

  • Tipo padrão II (slb.s2.medium)

  • Tipo avançado I (slb.s3.small)

  • Tipo avançado II (slb.s3.medium)

  • Tipo ultra I (slb.s3.large)

Nota

Instância Serverless: ao criar uma instância, escolha apenas NLB ou CLB (com faturamento por LCU).

Spec

String

Não

Não

Especificações do nó.

Valores válidos:

  • MSE_GTW_16_32_200_c(16C32G)

  • MSE_GTW_2_4_200_c(2C4G)

  • MSE_GTW_4_8_200_c(4C8G)

  • MSE_GTW_8_16_200_c(8C16G)

Tags

List

Não

Não

Tags vinculadas ao gateway.

Para mais informações, consulte Propriedades de Tags.

VSwitchId2

String

Não

Não

ID do vSwitch secundário.

Nenhuma

VSwitchId

String

Não

Não

ID do vSwitch primário.

Nenhuma

XtraceRatio

Integer

Não

Não

Taxa de amostragem do Xtrace.

Valores válidos: 1 a 100.

ZoneInfo

List

Não

Não

Informações da zona.

Para mais informações, consulte Propriedades de ZoneInfo.

Period

Number

Não

Sim

Duração da assinatura do grupo de nós.

Valores válidos:

  • Se PeriodUnit for Year, o intervalo válido é de 1 a 3.

  • Se PeriodUnit for Month, o intervalo válido é de 1 a 9.

PeriodUnit

String

Não

Sim

Unidade do período de assinatura.

Valores válidos:

  • Year

  • Month

Sintaxe de Tags

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Propriedades de Tags

Nome da propriedade

Tipo

Obrigatório

Permite atualizações

Descrição

Restrição

Key

String

Sim

Não

Chave da tag.

Nenhuma

Value

String

Não

Não

Valor da tag.

Nenhuma

Sintaxe de ZoneInfo

"ZoneInfo": [
  {
    "ZoneId": String,
    "VSwitchId": String
  }
]

Propriedades de ZoneInfo

Nome da propriedade

Tipo

Obrigatório

Permite atualizações

Descrição

Restrição

VSwitchId

String

Não

Não

ID do vSwitch.

Nenhuma

ZoneId

String

Não

Não

ID da zona.

Nenhuma

Valores de retorno

Fn::GetAtt

GatewayUniqueId: ID exclusivo do gateway

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VSwitchId:
    AssociationPropertyMetadata:
      VpcId: ${VpcId}
      ZoneId: ${ZoneId}
    AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
    Type: String
    Description:
      en: The primary VSwitch ID.
    Required: false
  ManagedEntryNetworkType:
    Type: String
    Description:
      en: |-
        Gateway entrance type (applicable to the mse_premium instance)
        pubnet: public network
        privatenet: privatenet
        privatepubnet: public + private network
    AllowedValues:
      - pubnet
      - privatenet
      - privatepubnet
    Required: false
  Replica:
    Type: Number
    Description:
      en: The number of nodes you specify when you purchase an normal instance. For high availability, the value for this param is recommended to be greater than 2.
    Required: false
    MinValue: 1
    MaxValue: 30
  Name:
    Type: String
    Description:
      en: The name of the created gateway.
    Required: false
  VpcId:
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
    Type: String
    Description:
      en: The ID of the vpc.
    Required: true
  ChargeType:
    Type: String
    Description:
      en: |-
        The billing method you specify when you purchase an normal instance.
        Valid values:
        PREPAY: subscription
        POSTPAY: pay-as-you-go
    AllowedValues:
      - POSTPAY
      - PREPAY
    Required: false
  Spec:
    Type: String
    Description:
      en: |-
        The node specifications you specify when you purchase an normal instance. Valid values:
        MSE_GTW_16_32_200_c(16C32G)
        MSE_GTW_2_4_200_c(2C4G)
        MSE_GTW_4_8_200_c(4C8G)
        MSE_GTW_8_16_200_c(8C16G)
    AllowedValues:
      - MSE_GTW_16_32_200_c
      - MSE_GTW_2_4_200_c
      - MSE_GTW_4_8_200_c
      - MSE_GTW_8_16_200_c
    Required: false
  NlbNetworkType:
    Type: String
    Description:
      en: |-
        The network type of the Network Load Balancer (NLB) instance you specify when you purchase a serverless instance.
        pubnet: Internet
        privatenet: private network
        privatepubnet: Internet and private network
    AllowedValues:
      - pubnet
      - privatenet
      - privatepubnet
    Required: false
  ClbNetworkType:
    Type: String
    Description:
      en: |-
        The network type of the purchased Classic Load Balancer (CLB) instance that is billed based on LCUs.
        pubnet: Internet
        privatenet: private network
        privatepubnet: Internet and private network
    AllowedValues:
      - pubnet
      - privatenet
      - privatepubnet
    Required: false
  MserVersion:
    Type: String
    Description:
      en: |-
        The MSE gateway instance type. Valid values:
        mse_pro: normal instance
        mse_premium: professional normal instancemse_serverless: serverless instance
    Default: mse_serverless
    Required: false
  ZoneInfo:
    AssociationPropertyMetadata:
      Parameters:
        ZoneId:
          AssociationProperty: ZoneId
          Type: String
          Description:
            en: The id of the zone.
          Required: false
        VSwitchId:
          AssociationPropertyMetadata:
            VpcId: ${VpcId}
            ZoneId: ${ZoneId}
          AssociationProperty: ALIYUN::VPC::VSwitch::VSwitchId
          Type: String
          Description:
            en: The id of the VSwitch.
          Required: false
    AssociationProperty: List[Parameters]
    Type: Json
    Description:
      en: The info details of the available zone.
    Required: false
Resources:
  Gateway2:
    Type: ALIYUN::MSE::Gateway2
    Properties:
      VSwitchId:
        Ref: VSwitchId
      ManagedEntryNetworkType:
        Ref: ManagedEntryNetworkType
      Replica:
        Ref: Replica
      Name:
        Ref: Name
      VpcId:
        Ref: VpcId
      ChargeType:
        Ref: ChargeType
      Spec:
        Ref: Spec
      NlbNetworkType:
        Ref: NlbNetworkType
      ClbNetworkType:
        Ref: ClbNetworkType
      MserVersion:
        Ref: MserVersion
      ZoneInfo:
        Ref: ZoneInfo
Outputs:
  GatewayUniqueId:
    Description: The unique ID of the gateway.
    Value:
      Fn::GetAtt:
        - Gateway2
        - GatewayUniqueId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VSwitchId": {
      "AssociationPropertyMetadata": {
        "VpcId": "${VpcId}",
        "ZoneId": "${ZoneId}"
      },
      "AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
      "Type": "String",
      "Description": {
        "en": "The primary VSwitch ID."
      },
      "Required": false
    },
    "ManagedEntryNetworkType": {
      "Type": "String",
      "Description": {
        "en": "Gateway entrance type (applicable to the mse_premium instance)\npubnet: public network\nprivatenet: privatenet\nprivatepubnet: public + private network"
      },
      "AllowedValues": [
        "pubnet",
        "privatenet",
        "privatepubnet"
      ],
      "Required": false
    },
    "Replica": {
      "Type": "Number",
      "Description": {
        "en": "The number of nodes you specify when you purchase an normal instance. For high availability, the value for this param is recommended to be greater than 2."
      },
      "Required": false,
      "MinValue": 1,
      "MaxValue": 30
    },
    "Name": {
      "Type": "String",
      "Description": {
        "en": "The name of the created gateway."
      },
      "Required": false
    },
    "VpcId": {
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
      "Type": "String",
      "Description": {
        "en": "The ID of the vpc."
      },
      "Required": true
    },
    "ChargeType": {
      "Type": "String",
      "Description": {
        "en": "The billing method you specify when you purchase an normal instance.\nValid values:\nPREPAY: subscription\nPOSTPAY: pay-as-you-go"
      },
      "AllowedValues": [
        "POSTPAY",
        "PREPAY"
      ],
      "Required": false
    },
    "Spec": {
      "Type": "String",
      "Description": {
        "en": "The node specifications you specify when you purchase an normal instance. Valid values:\nMSE_GTW_16_32_200_c(16C32G)\nMSE_GTW_2_4_200_c(2C4G)\nMSE_GTW_4_8_200_c(4C8G)\nMSE_GTW_8_16_200_c(8C16G)"
      },
      "AllowedValues": [
        "MSE_GTW_16_32_200_c",
        "MSE_GTW_2_4_200_c",
        "MSE_GTW_4_8_200_c",
        "MSE_GTW_8_16_200_c"
      ],
      "Required": false
    },
    "NlbNetworkType": {
      "Type": "String",
      "Description": {
        "en": "The network type of the Network Load Balancer (NLB) instance you specify when you purchase a serverless instance.\npubnet: Internet\nprivatenet: private network\nprivatepubnet: Internet and private network"
      },
      "AllowedValues": [
        "pubnet",
        "privatenet",
        "privatepubnet"
      ],
      "Required": false
    },
    "ClbNetworkType": {
      "Type": "String",
      "Description": {
        "en": "The network type of the purchased Classic Load Balancer (CLB) instance that is billed based on LCUs.\npubnet: Internet\nprivatenet: private network\nprivatepubnet: Internet and private network"
      },
      "AllowedValues": [
        "pubnet",
        "privatenet",
        "privatepubnet"
      ],
      "Required": false
    },
    "MserVersion": {
      "Type": "String",
      "Description": {
        "en": "The MSE gateway instance type. Valid values:\nmse_pro: normal instance\nmse_premium: professional normal instancemse_serverless: serverless instance"
      },
      "Default": "mse_serverless",
      "Required": false
    },
    "ZoneInfo": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "ZoneId": {
            "AssociationProperty": "ZoneId",
            "Type": "String",
            "Description": {
              "en": "The id of the zone."
            },
            "Required": false
          },
          "VSwitchId": {
            "AssociationPropertyMetadata": {
              "VpcId": "${VpcId}",
              "ZoneId": "${ZoneId}"
            },
            "AssociationProperty": "ALIYUN::VPC::VSwitch::VSwitchId",
            "Type": "String",
            "Description": {
              "en": "The id of the VSwitch."
            },
            "Required": false
          }
        }
      },
      "AssociationProperty": "List[Parameters]",
      "Type": "Json",
      "Description": {
        "en": "The info details of the available zone."
      },
      "Required": false
    }
  },
  "Resources": {
    "Gateway2": {
      "Type": "ALIYUN::MSE::Gateway2",
      "Properties": {
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "ManagedEntryNetworkType": {
          "Ref": "ManagedEntryNetworkType"
        },
        "Replica": {
          "Ref": "Replica"
        },
        "Name": {
          "Ref": "Name"
        },
        "VpcId": {
          "Ref": "VpcId"
        },
        "ChargeType": {
          "Ref": "ChargeType"
        },
        "Spec": {
          "Ref": "Spec"
        },
        "NlbNetworkType": {
          "Ref": "NlbNetworkType"
        },
        "ClbNetworkType": {
          "Ref": "ClbNetworkType"
        },
        "MserVersion": {
          "Ref": "MserVersion"
        },
        "ZoneInfo": {
          "Ref": "ZoneInfo"
        }
      }
    }
  },
  "Outputs": {
    "GatewayUniqueId": {
      "Description": "The unique ID of the gateway.",
      "Value": {
        "Fn::GetAtt": [
          "Gateway2",
          "GatewayUniqueId"
        ]
      }
    }
  }
}