全部产品
Search
文档中心

资源编排:ALIYUN::POLARDB::DBNodes

更新时间:Nov 15, 2023

ALIYUN::POLARDB::DBNodes类型用于增加PolarDB集群节点。

语法

 {
  "Type": "ALIYUN::POLARDB::DBNodes",
  "Properties": {
    "DBClusterId": String,
    "Amount": Integer,
    "ImciSwitch": String,
    "ResourceGroupId": String,
    "DBNodeType": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DBClusterId

String

集群ID。

无。

Amount

Integer

添加到集群的节点数。

无。

ImciSwitch

String

是否开启列存索引。

取值:

  • ON:开启。

  • OFF:关闭。

ResourceGroupId

String

资源组ID。

DBNodeType

String

节点类型。

取值:

  • RO

  • STANDBY

  • DLNode

返回值

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"
            ]
          }
        }
      }
    }