语法
{
"Type": "ALIYUN::POLARDB::DBNodes",
"Properties": {
"DBClusterId": String,
"Amount": Integer,
"ImciSwitch": String,
"ResourceGroupId": String,
"DBNodeType": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
DBClusterId | String | 是 | 否 | 集群ID。 | 无。 |
Amount | Integer | 是 | 是 | 添加到集群的节点数。 | 无。 |
ImciSwitch | String | 否 | 否 | 是否开启列存索引。 | 取值: |
ResourceGroupId | String | 否 | 否 | 资源组ID。 | 无 |
DBNodeType | String | 否 | 否 | 节点类型。 | 取值: |
返回值
Fn::GetAtt
DBNodeIds:添加到集群的节点ID。
OrderIds:订单ID。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DBClusterId:
Type: String
Description: The ID of the ApsaraDB for POLARDB cluster to be added nodes to.
Resources:
DBNodes:
Type: ALIYUN::POLARDB::DBNodes
Properties:
DBClusterId:
Ref: DBClusterId
Amount: 1
Outputs:
DBNodeIds:
Description: The ID list of added cluster nodes.
Value:
Fn::GetAtt:
- DBNodes
- DBNodeIds
OrderIds:
Description: The order ID list of added cluster nodes.
Value:
Fn::GetAtt:
- DBNodes
- OrderIds
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DBClusterId": {
"Type": "String",
"Description": "The ID of the ApsaraDB for POLARDB cluster to be added nodes to."
}
},
"Resources": {
"DBNodes": {
"Type": "ALIYUN::POLARDB::DBNodes",
"Properties": {
"DBClusterId": {
"Ref": "DBClusterId"
},
"Amount": 1
}
}
},
"Outputs": {
"DBNodeIds": {
"Description": "The ID list of added cluster nodes.",
"Value": {
"Fn::GetAtt": [
"DBNodes",
"DBNodeIds"
]
}
},
"OrderIds": {
"Description": "The order ID list of added cluster nodes.",
"Value": {
"Fn::GetAtt": [
"DBNodes",
"OrderIds"
]
}
}
}
}