DATASOURCE::POLARDB::GlobalDatabaseNetwork类型用于查看当前阿里云账号下单个全球数据库网络(GDN)详情。
语法
{
"Type": "DATASOURCE::POLARDB::GlobalDatabaseNetwork",
"Properties": {
"GdnId": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
GdnId | String | 是 | 是 | GDN ID。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
Connections:集群链接信息。
DbClusters:GDN 中包含的集群。
DbVersion:数据库引擎版本。
CreateTime:GDN创建时间。
GdnId:GDN ID。
DbType:数据库引擎类型。
GdnDescription:GDN的描述信息。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
GdnId:
Type: String
Description:
en: The ID of the GDN.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::POLARDB::GlobalDatabaseNetwork
Properties:
GdnId:
Ref: GdnId
Outputs:
Connections:
Description: The information about the connection to the cluster.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Connections
DbClusters:
Description: The clusters that are included in the GDN.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DbClusters
DbVersion:
Description: The version of the database engine. Only version 8.0 is supported.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DbVersion
CreateTime:
Description: The time at which the GDN was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
GdnId:
Description: The ID of the GDN.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GdnId
DbType:
Description: The type of the database engine. Only MySQL is supported.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DbType
GdnDescription:
Description: |-
The description of the GDN. The description must meet the following requirements:
It cannot start with http:// or https://.
It must start with a letter.
It can contain letters, digits, underscores (_), and hyphens (-).
It must be 2 to 126 characters in length.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GdnDescription
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GdnId": {
"Type": "String",
"Description": {
"en": "The ID of the GDN."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::POLARDB::GlobalDatabaseNetwork",
"Properties": {
"GdnId": {
"Ref": "GdnId"
}
}
}
},
"Outputs": {
"Connections": {
"Description": "The information about the connection to the cluster.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Connections"
]
}
},
"DbClusters": {
"Description": "The clusters that are included in the GDN.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DbClusters"
]
}
},
"DbVersion": {
"Description": "The version of the database engine. Only version 8.0 is supported.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DbVersion"
]
}
},
"CreateTime": {
"Description": "The time at which the GDN was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"GdnId": {
"Description": "The ID of the GDN.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GdnId"
]
}
},
"DbType": {
"Description": "The type of the database engine. Only MySQL is supported.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DbType"
]
}
},
"GdnDescription": {
"Description": "The description of the GDN. The description must meet the following requirements:\nIt cannot start with http:// or https://.\nIt must start with a letter.\nIt can contain letters, digits, underscores (_), and hyphens (-).\nIt must be 2 to 126 characters in length.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GdnDescription"
]
}
}
}
}
文档内容是否对您有帮助?