Queries the available resources for purchase in a PolarDB cluster.
Syntax
{
"Type": "DATASOURCE::POLARDB::DBNodeClasses",
"Properties": {
"DBVersion": String,
"ZoneId": String,
"DBType": String,
"PayType": String,
"DBNodeClass": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
DBVersion |
String |
No |
Yes |
The version of the database engine. |
Valid values:
Note
If you specify DBType, you must specify DBVersion. |
|
ZoneId |
String |
No |
Yes |
The zone ID. |
None. |
|
DBType |
String |
No |
Yes |
The type of the database engine. |
Valid values:
|
|
PayType |
String |
Yes |
Yes |
The billing method. |
Valid values:
|
|
DBNodeClass |
String |
No |
Yes |
The node type. |
For valid values, see Compute node specifications of PolarDB for MySQL Enterprise Edition. |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources during stack updates. |
Valid values:
|
Return values (Fn::GetAtt)
-
DBNodeClassIds: the node types.
-
DBNodeClasses: details of the node types.
|
Property |
Type |
Description |
Constraint |
|
DBNodeClassIds |
List |
The node types. |
None. |
|
DBNodeClasses |
List |
Details of the node types. |
None. |
|
Category |
String |
The edition of the cluster. |
Valid values:
|
|
DBNodeClass |
String |
The node type. |
For valid values, see Compute node specifications of PolarDB for MySQL Enterprise Edition. |
|
Engine |
String |
The version of the database engine. |
None. |
|
ZoneId |
String |
The zone ID. |
None. |
Examples
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"POLARDB": {
"Type": "DATASOURCE::POLARDB::DBNodeClasses",
"Properties": {
"PayType": "Postpaid",
"DBNodeClass": "polar.mysql.x4.large"
}
}
},
"Outputs": {
"DBNodeClassIds": {
"Value": {
"Fn::GetAtt": [
"POLARDB",
"DBNodeClassIds"
]
}
},
"DBNodeClasses": {
"Value": {
"Fn::GetAtt": [
"POLARDB",
"DBNodeClasses"
]
}
}
}
}