ALIYUN::Lindorm::MultiZoneInstance类型用于创建多可用区Lindorm实例。
语法
{
  "Type": "ALIYUN::Lindorm::MultiZoneInstance",
  "Properties": {
    "StandbyZoneId": String,
    "ResourceGroupId": String,
    "InstanceChargeType": String,
    "LogDiskCategory": String,
    "StandbyVSwitchId": String,
    "SolrNum": Integer,
    "SolrSpec": String,
    "CoreSpec": String,
    "FilestoreSpec": String,
    "TsdbNum": Integer,
    "ArbiterZoneId": String,
    "PrimaryZoneId": String,
    "MultiZoneCombination": String,
    "CoreSingleStorage": Integer,
    "ColdStorage": Integer,
    "DiskCategory": String,
    "LogSpec": String,
    "Period": Integer,
    "PrimaryVSwitchId": String,
    "ArbiterVSwitchId": String,
    "InstanceName": String,
    "FilestoreNum": Integer,
    "VpcId": String,
    "SecurityIpList": List,
    "LindormSpec": String,
    "TsdbSpec": String,
    "LogSingleStorage": Integer,
    "LindormNum": Integer,
    "LogNum": Integer,
    "PeriodUnit": String,
    "StreamSpec": String,
    "StreamNum": Integer,
    "DeletionProtection": Boolean
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| StandbyZoneId | String | 否 | 否 | 多可用区实例,备可用区的可用区ID。 | 无 | 
| ResourceGroupId | String | 否 | 否 | 资源组ID。 | 无 | 
| InstanceChargeType | String | 否 | 否 | 实例的付费类型。 | 取值: 
 | 
| LogDiskCategory | String | 否 | 否 | 多可用区实例,log节点磁盘类型。 | 取值: 
 | 
| StandbyVSwitchId | String | 否 | 否 | 备可用区的虚拟交换机ID。 | 必须在StandbyZoneId对应的可用区下。 | 
| SolrNum | Integer | 否 | 否 | 实例的搜索引擎节点数量。 | 取值范围:0~60。 | 
| SolrSpec | String | 否 | 否 | 实例的搜索引擎节点规格。 | 取值: 
 | 
| CoreSpec | String | 否 | 否 | 实例的本地盘类型节点规格。 | 本地存储类型为local_ssd_pro时,本参数取值为: 
 本地存储类型为local_hdd_pro时,本参数取值为: 
 | 
| FilestoreSpec | String | 否 | 否 | 实例的文件引擎节点规格。 | 取值: lindorm.c.xlarge:表示4核8GB(标准规格)。 | 
| TsdbNum | Integer | 否 | 否 | 实例的时序引擎节点数量。 | 取值: 
 | 
| ArbiterZoneId | String | 否 | 否 | 协调可用区的可用区ID。 | 无 | 
| PrimaryZoneId | String | 否 | 否 | 主可用区的可用区ID。 | 无 | 
| MultiZoneCombination | String | 否 | 否 | 多可用区组合。 | 取值: 
 | 
| CoreSingleStorage | Integer | 否 | 否 | core单节点容量。 | 取值范围:400~64000。 单位为GB。 | 
| ColdStorage | Integer | 否 | 否 | 实例的冷存储容量。 | 单位为GB,不填默认不开通冷存储。 取值范围:800~1000000。 | 
| DiskCategory | String | 是 | 否 | 实例的存储类型。 | 取值: 
 | 
| LogSpec | String | 否 | 否 | log节点规格。 | 取值: 
 | 
| Period | Integer | 否 | 否 | 实例包年包月的时间。 | 取值: 
 说明  当InstanceChargeType取值为PREPAY时,本参数可用且必须传入。 | 
| PrimaryVSwitchId | String | 否 | 否 | 主可用区的虚拟交换机ID。 | 必须在PrimaryZoneId对应的可用区下。 | 
| ArbiterVSwitchId | String | 否 | 否 | 协调可用区虚拟交换机ID。 | 交换机需位于ArbiterZoneId对应的可用区下。 | 
| InstanceName | String | 是 | 否 | 实例名称。 | 无 | 
| FilestoreNum | Integer | 否 | 否 | 实例的文件引擎节点数量。 | 取值: 
 | 
| VpcId | String | 是 | 否 | 实例的专有网络ID。 | 无 | 
| SecurityIpList | List | 否 | 是 | 需要设置的白名单IP地址。 | 说明  127.0.0.1表示禁止所有地址访问,例如192.168.0.0/24表示允许所有192.168.0.X的IP地址访问该Lindorm实例。多个白名单用半角逗号(,)分隔。 | 
| LindormSpec | String | 否 | 否 | 实例的宽表引擎节点规格。 | 取值: 
 | 
| TsdbSpec | String | 否 | 否 | 实例的时序引擎节点规格。 | 取值: 
 | 
| LogSingleStorage | Integer | 否 | 否 | log单节点磁盘容量。 | 取值范围:400~64000。 单位为GB。 | 
| LindormNum | Integer | 否 | 否 | 实例的宽表引擎节点数量。 | 非本地盘存储类型的实例,取值范围:4~400。 本地盘存储类型的实例,取值范围:6~400。 | 
| LogNum | Integer | 否 | 否 | log节点数量。 | 取值范围:4~400。 | 
| PeriodUnit | String | 否 | 否 | 实例购买的付费周期。 | 取值: 
 说明  当InstanceChargeType取值为PREPAY时,本参数可用且必须传入。 | 
| StreamSpec | String | 否 | 否 | 实例的流引擎节点规格。 | 取值: 
 | 
| StreamNum | Integer | 否 | 否 | 实例的流引擎节点数量。 | 取值:0~60。 | 
| DeletionProtection | Boolean | 否 | 是 | 是否开启删除保护。 | 取值: 
 | 
返回值
Fn::GetAtt
- JdbcUrlList:数据库的JDBC连接信息列表。 
- InstanceId:实例ID。 
- AuthInfos:Lindorm实例授权信息列表。 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
  StandbyZoneId:
    Type: String
    AssociationProperty: ALIYUN::ECS::ZoneId
  ArbiterZoneId:
    Type: String
    AssociationProperty: ALIYUN::ECS::ZoneId
  PrimaryZoneId:
    Type: String
    AssociationProperty: ALIYUN::ECS::ZoneId
  StandbyVSwitchId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      ZoneId: ${StandbyZoneId}
      VpcId: ${VpcId}
  PrimaryVSwitchId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      ZoneId: ${PrimaryZoneId}
      VpcId: ${VpcId}
  ArbiterVSwitchId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      ZoneId: ${ArbiterZoneId}
      VpcId: ${VpcId}
Resources:
  MultiZoneInstance:
    Type: ALIYUN::Lindorm::MultiZoneInstance
    Properties:
      PrimaryVSwitchId:
        Ref: PrimaryVSwitchId
      ArbiterVSwitchId:
        Ref: ArbiterVSwitchId
      LogSpec: lindorm.sn1.large
      CoreSingleStorage: 400
      LogDiskCategory: cloud_efficiency
      ArbiterZoneId:
        Ref: ArbiterZoneId
      PrimaryZoneId:
        Ref: PrimaryZoneId
      StandbyZoneId:
        Ref: StandbyZoneId
      InstanceChargeType: POSTPAY
      StandbyVSwitchId:
        Ref: StandbyVSwitchId
      DiskCategory: cloud_efficiency
      InstanceName: TestLindormDB
      VpcId:
        Ref: VpcId
      LindormSpec: lindorm.c.2xlarge
      LindormNum: 4
      LogNum: 4
      LogSingleStorage: 400
Outputs:
  JdbcUrlList:
    Description: The list of the jdbc connection address.
    Value:
      Fn::GetAtt:
        - MultiZoneInstance
        - JdbcUrlList
  InstanceId:
    Description: The ID of the Lindorm instance that is created.
    Value:
      Fn::GetAtt:
        - MultiZoneInstance
        - InstanceId{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
    },
    "StandbyZoneId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ZoneId"
    },
    "ArbiterZoneId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ZoneId"
    },
    "PrimaryZoneId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ZoneId"
    },
    "StandbyVSwitchId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "ZoneId": "${StandbyZoneId}",
        "VpcId": "${VpcId}"
      }
    },
    "PrimaryVSwitchId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "ZoneId": "${PrimaryZoneId}",
        "VpcId": "${VpcId}"
      }
    },
    "ArbiterVSwitchId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "ZoneId": "${ArbiterZoneId}",
        "VpcId": "${VpcId}"
      }
    }
  },
  "Resources": {
    "MultiZoneInstance": {
      "Type": "ALIYUN::Lindorm::MultiZoneInstance",
      "Properties": {
        "PrimaryVSwitchId": {
          "Ref": "PrimaryVSwitchId"
        },
        "ArbiterVSwitchId": {
          "Ref": "ArbiterVSwitchId"
        },
        "LogSpec": "lindorm.sn1.large",
        "CoreSingleStorage": 400,
        "LogDiskCategory": "cloud_efficiency",
        "ArbiterZoneId": {
          "Ref": "ArbiterZoneId"
        },
        "PrimaryZoneId": {
          "Ref": "PrimaryZoneId"
        },
        "StandbyZoneId": {
          "Ref": "StandbyZoneId"
        },
        "InstanceChargeType": "POSTPAY",
        "StandbyVSwitchId": {
          "Ref": "StandbyVSwitchId"
        },
        "DiskCategory": "cloud_efficiency",
        "InstanceName": "TestLindormDB",
        "VpcId": {
          "Ref": "VpcId"
        },
        "LindormSpec": "lindorm.c.2xlarge",
        "LindormNum": 4,
        "LogNum": 4,
        "LogSingleStorage": 400
      }
    }
  },
  "Outputs": {
    "JdbcUrlList": {
      "Description": "The list of the jdbc connection address.",
      "Value": {
        "Fn::GetAtt": [
          "MultiZoneInstance",
          "JdbcUrlList"
        ]
      }
    },
    "InstanceId": {
      "Description": "The ID of the Lindorm instance that is created.",
      "Value": {
        "Fn::GetAtt": [
          "MultiZoneInstance",
          "InstanceId"
        ]
      }
    }
  }
}