Queries all global database networks (GDNs) within the current Alibaba Cloud account.
Syntax
{
"Type": "DATASOURCE::POLARDB::GlobalDatabaseNetworks",
"Properties": {
"DbClusterId": String,
"GdnId": String,
"RefreshOptions": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
DbClusterId |
String |
No |
Yes |
The cluster ID. |
Note
Call the DescribeDBClusters operation to query all PolarDB clusters in a specified region, including cluster IDs. |
|
GdnId |
String |
No |
Yes |
The GDN ID. |
None. |
|
RefreshOptions |
String |
No |
Yes |
The refresh policy for data source resources when the stack is updated. |
Valid values:
|
Return values
Fn::GetAtt
-
GlobalDatabaseNetworks: details of the GDNs.
-
GdnIds: the IDs of the GDNs.
|
Property |
Type |
Description |
Constraint |
|
GdnIds |
List |
The IDs of the GDNs. |
None. |
|
GlobalDatabaseNetworks |
List |
Details of the GDNs. |
None. |
|
Status |
String |
The status of the GDN. |
Valid values:
|
|
DbType |
String |
The type of the database engine. |
Only MySQL is supported. |
|
DbVersion |
String |
The version of the database engine. |
Only version 8.0 is supported. |
|
DbClusters |
List |
Details of each cluster in the GDN. |
Example:
|
|
GdnId |
String |
The GDN ID. |
None. |
|
CreateTime |
String |
The time when the GDN was created. |
The time is in the |
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
ExtensionDataSource:
Type: DATASOURCE::POLARDB::GlobalDatabaseNetworks
Properties:
DbClusterId: pc-**************
GdnId: gdn-****************
Outputs:
GlobalDatabaseNetworks:
Description: The list of global database networks.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GlobalDatabaseNetworks
GdnIds:
Description: The list of gdn IDs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GdnIds{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::POLARDB::GlobalDatabaseNetworks",
"Properties": {
"DbClusterId": "pc-**************",
"GdnId": "gdn-****************"
}
}
},
"Outputs": {
"GlobalDatabaseNetworks": {
"Description": "The list of global database networks.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GlobalDatabaseNetworks"
]
}
},
"GdnIds": {
"Description": "The list of gdn IDs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GdnIds"
]
}
}
}
}