ALIYUN::POLARDB::DBNodes is used to add nodes to an ApsaraDB for POLARDB cluster.
Syntax
{
"Type": "ALIYUN::POLARDB::DBNodes",
"Properties": {
"DBClusterId": String,
"Amount": Integer
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
DBClusterId | String | Yes | No | The ID of the cluster. | None. |
Amount | Integer | Yes | Yes | The number of nodes to be added to the cluster. | None. |
Response parameters
Fn::GetAtt
- DBNodeIds: the IDs of the nodes added to the cluster.
- OrderIds: the order IDs of added cluster nodes.
Examples
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"DBNodes": {
"Type": "ALIYUN::POLARDB::DBNodes",
"Properties": {
"DBClusterId": {
"Ref": "DBClusterId"
},
"Amount": {
"Ref": "Amount"
}
}
}
},
"Parameters": {
"DBClusterId": {
"Type": "String",
"Description": "The ID of the ApsaraDB for POLARDB cluster to be added nodes to."
},
"Amount": {
"Type": "Number",
"Description": "Number of nodes to be added to cluster.",
"MaxValue": 16,
"MinValue": 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"
]
}
}
}
}
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Resources:
DBNodes:
Type: ALIYUN::POLARDB::DBNodes
Properties:
DBClusterId:
Ref: DBClusterId
Amount:
Ref: Amount
Parameters:
DBClusterId:
Type: String
Description: The ID of the ApsaraDB for POLARDB cluster to be added nodes to.
Amount:
Type: Number
Description: Number of nodes to be added to cluster.
MaxValue: 16
MinValue: 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