All Products
Search
Document Center

Resource Orchestration Service:PolarDB resources

Last Updated:Jun 22, 2026

Lists the AssociationProperty values and metadata for PolarDB resources in ROS templates.

AssociationProperty value

Description

Corresponding AssociationPropertyMetadata

ALIYUN::POLARDB::DBCluster::DBClusterId

The ID of a PolarDB cluster.

  • RegionId: the region ID. Default value: the region of the stack.

Example:

  • Sample code

    JSON example:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "DBClusterId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::POLARDB::DBCluster::DBClusterId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        }
      }
    }

    YAML example:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      DBClusterId:
        Type: String
        AssociationProperty: ALIYUN::POLARDB::DBCluster::DBClusterId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
  • Example explanation

    In this example, the AssociationProperty of DBClusterId is set to ALIYUN::POLARDB::DBCluster::DBClusterId, and RegionId is specified in AssociationPropertyMetadata to retrieve PolarDB cluster IDs in the specified region.

ALIYUN::POLARDB::DBCluster::DBNodeClass

The node class of a PolarDB cluster.

  • RegionId: the region ID. Default value: the region of the stack.

  • ZoneId: the zone ID.

  • DBType: the database engine type.

    • MySQL

    • PostgreSQL

    • Oracle

  • DBVersion: the database engine version.

    • Valid MySQL versions:

      • 5.6

      • 5.7

      • 8.0

    • Valid PostgreSQL versions:

      • 11

      • 14

    • Valid Oracle versions:

      • 11

      • 14

  • PayType: the billing method.

    • Postpaid: pay-as-you-go (also called postpaid or hourly billing) (default).

    • Prepaid: subscription (also called upfront payment).

Example:

  • Sample code

    JSON example:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "ZoneId": {
          "Type": "String",
          "AssociationProperty": "ZoneId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}"
          }
        },
        "DBNodeClass": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::POLARDB::DBCluster::DBNodeClass",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "ZoneId": "${ZoneId}"
          }
        }
      }
    }

    YAML example:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      ZoneId:
        Type: String
        AssociationProperty: ZoneId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
      DBNodeClass:
        Type: String
        AssociationProperty: ALIYUN::POLARDB::DBCluster::DBNodeClass
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          ZoneId: ${ZoneId}