ALIYUN::MSE::Cluster类型用于创建集群。
语法
{
  "Type": "ALIYUN::MSE::Cluster",
  "Properties": {
    "DiskType": String,
    "InstanceCount": Integer,
    "PrivateSlbSpecification": String,
    "VpcId": String,
    "ClusterVersion": String,
    "PubNetworkFlow": String,
    "ClusterSpecification": String,
    "VSwitchId": String,
    "PubSlbSpecification": String,
    "ClusterType": String,
    "NetType": String,
    "ClusterAliasName": String,
    "AcceptLanguage": String,
    "MseVersion": String,
    "ConnectionType": String,
    "RequestPars": String,
    "AclEntryList": List,
    "Tags": List,
    "ResourceGroupId": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| ClusterVersion | String | 是 | 否 | 集群版本。 | 取值: 
 | 
| ClusterSpecification | String | 是 | 否 | 引擎规格。 | 取值: 
 | 
| ClusterType | String | 是 | 否 | 集群类型。 | 取值: 
 | 
| InstanceCount | Integer | 是 | 否 | 实例数。 | 取值范围:1~9。 | 
| NetType | String | 是 | 否 | 网络类型。 | 取值: 
 | 
| DiskType | String | 否 | 否 | 磁盘类型。 | 取值:alicloud-disk-ssd-multi-zone。 | 
| AcceptLanguage | String | 否 | 否 | 返回结果显示的语言。 | 无 | 
| MseVersion | String | 否 | 否 | 集群版本。 | 取值: 
 | 
| PrivateSlbSpecification | String | 否 | 否 | 私网SLB规格。 | 取值: 
 | 
| VpcId | String | 否 | 否 | 专有网络ID。 | 无 | 
| PubNetworkFlow | String | 否 | 否 | 公网带宽。 | 取值范围:0~5000。 单位:Mbps。 说明  0表示不接入公网。 | 
| VSwitchId | String | 否 | 否 | 交换机ID。 | 无 | 
| PubSlbSpecification | String | 否 | 否 | 公网SLB规格。 | 取值: 
 | 
| ClusterAliasName | String | 否 | 是 | 集群别名。 | 支持模糊匹配。 | 
| ConnectionType | String | 否 | 否 | 网络连接类型。 | 无 | 
| RequestPars | String | 否 | 否 | 扩展请求参数。 | 参数为JSON格式。 | 
| AclEntryList | List | 否 | 是 | 白名单列表。 | 多个IP地址用半角逗号(,)分隔。 | 
| Tags | List | 否 | 是 | 用户自定义标签。 | 更多信息,请参考Tags属性。 | 
| ResourceGroupId | String | 否 | 是 | 资源组ID。 | 无 | 
Tags语法
"Tags": [
  {
    "Value": String,
    "Key": String
  }
]Tags属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| Key | String | 是 | 否 | 标签键。 | 长度为1~128个字符,不能以 | 
| Value | String | 否 | 否 | 标签值。 | 长度为0~128个字符,不能以 | 
返回值
Fn::GetAtt
- InternetAddress:公网地址。 
- IntranetAddress:私网地址。 
- AclEntryList:白名单列表。 
- Cpu:CPU数量。 
- InternetPort:公网接口。 
- IntranetPort:私网接口。 
- DiskType:磁盘类型。 
- AppVersion:App版本。 
- PayInfo:付费类型。 
- ClusterName:集群名称。 
- IntranetDomain:内网域名。 
- NetType:网络类型。 
- ClusterVersion:集群版本。 
- InstanceId:实例ID。 
- ClusterId:集群ID。 
- InternetDomain:公网域名。 
- AclId:访问控制列表ID。 
- VSwitchId:交换机ID。 
- ClusterSpecification:引擎规格。 
- HealthStatus:健康状态。 
- MemoryCapacity:内存容量。 
- ClusterType:集群类型。 
- ClusterAliasName:集群别名。 
- InstanceCount:实例数量。 
- DiskCapacity:磁盘容量。 
- VpcId:专有网络ID。 
- PubNetworkFlow:公网带宽。 
- ConnectionType:网络连接类型。 
- MseVersion:集群版本。 
- ConfigSecretEnabled:配置密码是否生效。 
- MCPEnabled:MCP是否生效。 
- ConfigAuthEnabled:是否启用集群配置。 
示例
ROSTemplateFormatVersion: '2015-09-01'
Description: Test MSE Cluster
Parameters:
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
  VSwitchId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      VpcId: ${VpcId}
Resources:
  MseCluster:
    Type: ALIYUN::MSE::Cluster
    Properties:
      MseVersion: mse_pro
      InstanceCount: 3
      ClusterVersion: NACOS_2_0_0
      PubNetworkFlow: 1
      ClusterType: Nacos-Ans
      ClusterSpecification: MSE_SC_2_4_200_c
      NetType: pubnet
      DiskType: alicloud-disk-ssd-multi-zone
      VpcId:
        Ref: VpcId
      VSwitchId:
        Ref: VSwitchId
      PubSlbSpecification: slb.s1.small
Outputs:
  InstanceId:
    Value:
      Fn::GetAtt:
        - MseCluster
        - InstanceId
  ClusterId:
    Value:
      Fn::GetAtt:
        - MseCluster
        - ClusterId                    {
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "Test MSE Cluster",
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
    },
    "VSwitchId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "VpcId": "${VpcId}"
      }
    }
  },
  "Resources": {
    "MseCluster": {
      "Type": "ALIYUN::MSE::Cluster",
      "Properties": {
        "MseVersion": "mse_pro",
        "InstanceCount": 3,
        "ClusterVersion": "NACOS_2_0_0",
        "PubNetworkFlow": 1,
        "ClusterType": "Nacos-Ans",
        "ClusterSpecification": "MSE_SC_2_4_200_c",
        "NetType": "pubnet",
        "DiskType": "alicloud-disk-ssd-multi-zone",
        "VpcId": {
          "Ref": "VpcId"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "PubSlbSpecification": "slb.s1.small"
      }
    }
  },
  "Outputs": {
    "InstanceId": {
      "Value": {
        "Fn::GetAtt": [
          "MseCluster",
          "InstanceId"
        ]
      }
    },
    "ClusterId": {
      "Value": {
        "Fn::GetAtt": [
          "MseCluster",
          "ClusterId"
        ]
      }
    }
  }
}