すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:データソース::POLARDB::グローバルデータベースネットワーク

最終更新日:Mar 17, 2025

DATASOURCE::POLARDB::GlobalDatabaseNetwork は、現在の Alibaba Cloud アカウント内のグローバルデータベースネットワーク (GDN) の詳細をクエリするために使用されます。

構文

{
  "Type": "DATASOURCE::POLARDB::GlobalDatabaseNetwork",
  "Properties": {
    "GdnId": String,
    "RefreshOptions": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

GdnId

String

はい

はい

GDN の ID。

なし。

RefreshOptions

String

いいえ

はい

スタックの更新時のデータソースリソースのリフレッシュポリシー。

有効な値:

  • Never (デフォルト): スタックの更新時にデータソースリソースをリフレッシュしません。

  • Always: スタックの更新時にデータソースリソースをリフレッシュします。

戻り値

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": "クラスタへの接続に関する情報。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Connections"
        ]
      }
    },
    "DbClusters": {
      "Description": "GDN に含まれるクラスタ。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DbClusters"
        ]
      }
    },
    "DbVersion": {
      "Description": "データベースエンジンのバージョン。バージョン 8.0 のみがサポートされています。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DbVersion"
        ]
      }
    },
    "CreateTime": {
      "Description": "GDN が作成された時刻。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "GdnId": {
      "Description": "GDN の ID。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GdnId"
        ]
      }
    },
    "DbType": {
      "Description": "データベースエンジンのタイプ。MySQL のみがサポートされています。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DbType"
        ]
      }
    },
    "GdnDescription": {
      "Description": "GDN の説明。説明は次の要件を満たしている必要があります。\nhttp:// または https:// で始めることはできません。\n文字で始める必要があります。\n文字、数字、アンダースコア (_)、およびハイフン (-) を含めることができます。\n長さは 2 ~ 126 文字である必要があります。",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GdnDescription"
        ]
      }
    }
  }
}