Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::POLARDB::GlobalDatabaseNetwork

Última atualização: Jun 27, 2026

Cria uma rede global de bancos de dados (GDN) para o PolarDB.

Sintaxe

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

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

ResourceGroupId

String

Não

Sim

ID do grupo de recursos.

Nenhuma.

DbClusterId

String

Sim

Não

ID do cluster primário.

Nenhuma.

GdnDescription

String

Não

Sim

Descrição da GDN.

A descrição deve atender aos seguintes requisitos:

  • Não pode começar com http:// ou https://.

  • Deve começar com uma letra.

  • Pode conter letras, dígitos, sublinhados (_) e hifens (-).

  • Deve ter de 2 a 126 caracteres.

Valores de retorno

Fn::GetAtt

  • Connections: informações de conexão da GDN.

  • DbClusters: clusters incluídos na 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

  • YAML format

    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 format

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