文档

ALIYUN::POLARDB::GlobalDatabaseNetwork

更新时间:

ALIYUN::POLARDB::GlobalDatabaseNetwork类型用于创建一个新的全球数据库网络(GDN)。

语法

{
  "Type": "ALIYUN::POLARDB::GlobalDatabaseNetwork",
  "Properties": {
    "ResourceGroupId": String,
    "DbClusterId": String,
    "GdnDescription": String
  }
}

属性

属性名称类型必须允许更新描述约束
ResourceGroupIdString资源组ID。
DbClusterIdString主集群ID。
GdnDescriptionStringGDN备注描述。要求如下:
  • 不能以http://https://开头。
  • 必须以大小写字母或中文开头。
  • 可以包含大小写字母、中文、数字、下划线(_)或连字符(-)。
  • 长度为2~126个字符。

返回值

Fn::GetAtt

  • Connections:链接信息。
  • DbClusters:GDN中包含的集群。
  • DbVersion:数据库引擎版本。
  • CreateTime:GDN的创建时间。
  • GdnId:GDN ID。
  • DbType:数据库引擎类型。
  • GdnDescription:GDN备注描述。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      ExtensionResource:
        Type: ALIYUN::POLARDB::GlobalDatabaseNetwork
        Properties:
          DbClusterId: pc-bp1q76364ird*****
          GdnDescription: GDN-fortest
    Outputs:
      Connections:
        Description: The information about the connection to the cluster.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - Connections
      DbClusters:
        Description: The clusters that are included in the GDN.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - DbClusters
      DbVersion:
        Description: The version of the database engine.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - DbVersion
      CreateTime:
        Description: The time at which the GDN was created.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - CreateTime
      GdnId:
        Description: The ID of the GDN.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - GdnId
      DbType:
        Description: The type of the database engine.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - DbType
      GdnDescription:
        Description: The description of the GDN.
        Value:
          Fn::GetAtt:
            - ExtensionResource
            - GdnDescription
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::POLARDB::GlobalDatabaseNetwork",
          "Properties": {
            "DbClusterId": "pc-bp1q76364ird*****",
            "GdnDescription": "GDN-fortest"
          }
        }
      },
      "Outputs": {
        "Connections": {
          "Description": "The information about the connection to the cluster.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "Connections"
            ]
          }
        },
        "DbClusters": {
          "Description": "The clusters that are included in the GDN.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DbClusters"
            ]
          }
        },
        "DbVersion": {
          "Description": "The version of the database engine.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DbVersion"
            ]
          }
        },
        "CreateTime": {
          "Description": "The time at which the GDN was created.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "CreateTime"
            ]
          }
        },
        "GdnId": {
          "Description": "The ID of the GDN.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "GdnId"
            ]
          }
        },
        "DbType": {
          "Description": "The type of the database engine.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DbType"
            ]
          }
        },
        "GdnDescription": {
          "Description": "The description of the GDN.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "GdnDescription"
            ]
          }
        }
      }
    }
  • 本页导读 (1)
文档反馈