Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::POLARDB::GlobalDatabaseNetwork

Última atualização: Jun 27, 2026

Consulta os detalhes de uma Global Database Network (GDN) na conta atual do Alibaba Cloud.

Sintaxe

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

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

GdnId

String

Sim

Sim

ID da GDN.

Nenhuma.

RefreshOptions

String

Não

Sim

Política de atualização dos recursos de fonte de dados ao atualizar a pilha.

Valores válidos:

  • Never (padrão): não atualiza os recursos de fonte de dados ao atualizar a pilha.

  • Always: atualiza os recursos de fonte de dados ao atualizar a pilha.

Valores de retorno

Fn::GetAtt

  • Connections: detalhes de conexão do cluster.

  • DbClusters: clusters da GDN.

  • DbVersion: versão do mecanismo de banco de dados.

  • CreateTime: hora de criação da GDN.

  • GdnId: ID da GDN.

  • DbType: tipo do mecanismo de banco de dados.

  • GdnDescription: descrição da GDN.

Exemplos

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"
        ]
      }
    }
  }
}