DATASOURCE::POLARDB::DBClusters is used to query the details of PolarDB clusters.
Syntax
{
"Type": "DATASOURCE::POLARDB::DBClusters",
"Properties": {
"Description": String,
"DbVersion": String,
"ResourceGroupId": String,
"DbClusterId": String,
"Expired": String,
"DbType": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Description | String | No | Yes | The description of the cluster. | None. |
DbVersion | String | No | Yes | The database engine version of the cluster. | Valid values:
|
ResourceGroupId | String | No | Yes | The ID of the resource group. | None. |
DbClusterId | String | No | Yes | The cluster ID. | None. |
Expired | String | No | Yes | Specifies whether the cluster has expired. | Valid values:
|
DbType | String | No | Yes | The database engine type of the cluster. | None. |
Return values
Fn::GetAtt
- DbClusterIds: the cluster IDs.
- DBClusters: details of the clusters.
Property | Type | Description | Constraint |
---|---|---|---|
DbClusterIds | List | The cluster IDs. | None. |
DBClusters | List | Details of the clusters. | None. |
Category | String | The edition of the cluster. | Valid values:
|
LockMode | String | The lock mode of the cluster. | Valid values:
|
DeletionLock | String | Indicates whether the cluster is locked and can be deleted. | Valid values:
Note If the cluster is locked, you cannot delete the cluster. |
DbClusterId | String | The cluster ID. | None. |
VpcId | String | The ID of the virtual private cloud (VPC). | None. |
Description | String | The description of the cluster. | None. |
Tags | List | The tags of the cluster. | Example:
|
ClusterNetworkType | String | The network type of the cluster. | None. |
RegionId | String | The region ID. | None. |
ResourceGroupId | String | The ID of the resource group. | None. |
DbNodes | List | Details of the nodes. | Example:
|
DbNodeClass | String | The instance type of the node. | None. |
Expired | String | Indicates whether the cluster has expired. | Valid values:
Note This property is returned if PaymentType is set to Prepaid. |
Status | String | The state of the cluster. | None. |
DbVersion | String | The database engine version of the cluster. | None. |
ZoneId | String | The zone ID. | None. |
StorageUsed | String | The storage space that is consumed by the cluster. | Unit: bytes. |
Engine | String | The database type. | None. |
StorageSpace | String | The storage space that uses the subscription billing method. | Unit: bytes. |
DbType | String | The database engine type of the cluster. | None. |
DbNodeNumber | Integer | The number of nodes. | None. |
ExpireTime | String | The time when the cluster expired. |
|
PaymentType | String | The billing method of the cluster. | Valid values:
|
CreateTime | String | The time when the cluster was created. | None. |
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::POLARDB::DBClusters", "Properties": { "DbVersion": "5.7" } } }, "Outputs": { "DbClusterIds": { "Description": "The ID of the cluster.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DbClusterIds" ] } }, "DBClusters": { "Description": "The list of db clusters.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "DBClusters" ] } } } }