1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. polardb
  5. getGlobalDatabaseNetworks
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.polardb.getGlobalDatabaseNetworks

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the PolarDB Global Database Networks of the current Alibaba Cloud user.

    NOTE: Available since v1.181.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const this = alicloud.polardb.getNodeClasses({
        dbType: "MySQL",
        dbVersion: "8.0",
        payType: "PostPaid",
        category: "Normal",
    });
    const _default = new alicloud.vpc.Network("default", {
        vpcName: "terraform-example",
        cidrBlock: "172.16.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("default", {
        vpcId: _default.id,
        cidrBlock: "172.16.0.0/24",
        zoneId: _this.then(_this => _this.classes?.[0]?.zoneId),
        vswitchName: "terraform-example",
    });
    const cluster = new alicloud.polardb.Cluster("cluster", {
        dbType: "MySQL",
        dbVersion: "8.0",
        payType: "PostPaid",
        dbNodeCount: 2,
        dbNodeClass: _this.then(_this => _this.classes?.[0]?.supportedEngines?.[0]?.availableResources?.[0]?.dbNodeClass),
        vswitchId: defaultSwitch.id,
    });
    const defaultGlobalDatabaseNetwork = new alicloud.polardb.GlobalDatabaseNetwork("default", {
        dbClusterId: cluster.id,
        description: cluster.id,
    });
    const ids = alicloud.polardb.getGlobalDatabaseNetworksOutput({
        ids: [defaultGlobalDatabaseNetwork.id],
    });
    export const polardbGlobalDatabaseNetworkId1 = ids.apply(ids => ids.networks?.[0]?.id);
    const description = alicloud.polardb.getGlobalDatabaseNetworksOutput({
        description: defaultGlobalDatabaseNetwork.description,
    });
    export const polardbGlobalDatabaseNetworkId2 = description.apply(description => description.networks?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    this = alicloud.polardb.get_node_classes(db_type="MySQL",
        db_version="8.0",
        pay_type="PostPaid",
        category="Normal")
    default = alicloud.vpc.Network("default",
        vpc_name="terraform-example",
        cidr_block="172.16.0.0/16")
    default_switch = alicloud.vpc.Switch("default",
        vpc_id=default.id,
        cidr_block="172.16.0.0/24",
        zone_id=this.classes[0].zone_id,
        vswitch_name="terraform-example")
    cluster = alicloud.polardb.Cluster("cluster",
        db_type="MySQL",
        db_version="8.0",
        pay_type="PostPaid",
        db_node_count=2,
        db_node_class=this.classes[0].supported_engines[0].available_resources[0].db_node_class,
        vswitch_id=default_switch.id)
    default_global_database_network = alicloud.polardb.GlobalDatabaseNetwork("default",
        db_cluster_id=cluster.id,
        description=cluster.id)
    ids = alicloud.polardb.get_global_database_networks_output(ids=[default_global_database_network.id])
    pulumi.export("polardbGlobalDatabaseNetworkId1", ids.networks[0].id)
    description = alicloud.polardb.get_global_database_networks_output(description=default_global_database_network.description)
    pulumi.export("polardbGlobalDatabaseNetworkId2", description.networks[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/polardb"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		this, err := polardb.GetNodeClasses(ctx, &polardb.GetNodeClassesArgs{
    			DbType:    pulumi.StringRef("MySQL"),
    			DbVersion: pulumi.StringRef("8.0"),
    			PayType:   "PostPaid",
    			Category:  pulumi.StringRef("Normal"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
    			VpcName:   pulumi.String("terraform-example"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
    			VpcId:       _default.ID(),
    			CidrBlock:   pulumi.String("172.16.0.0/24"),
    			ZoneId:      pulumi.String(this.Classes[0].ZoneId),
    			VswitchName: pulumi.String("terraform-example"),
    		})
    		if err != nil {
    			return err
    		}
    		cluster, err := polardb.NewCluster(ctx, "cluster", &polardb.ClusterArgs{
    			DbType:      pulumi.String("MySQL"),
    			DbVersion:   pulumi.String("8.0"),
    			PayType:     pulumi.String("PostPaid"),
    			DbNodeCount: pulumi.Int(2),
    			DbNodeClass: pulumi.String(this.Classes[0].SupportedEngines[0].AvailableResources[0].DbNodeClass),
    			VswitchId:   defaultSwitch.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		defaultGlobalDatabaseNetwork, err := polardb.NewGlobalDatabaseNetwork(ctx, "default", &polardb.GlobalDatabaseNetworkArgs{
    			DbClusterId: cluster.ID(),
    			Description: cluster.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		ids := polardb.GetGlobalDatabaseNetworksOutput(ctx, polardb.GetGlobalDatabaseNetworksOutputArgs{
    			Ids: pulumi.StringArray{
    				defaultGlobalDatabaseNetwork.ID(),
    			},
    		}, nil)
    		ctx.Export("polardbGlobalDatabaseNetworkId1", ids.ApplyT(func(ids polardb.GetGlobalDatabaseNetworksResult) (*string, error) {
    			return &ids.Networks[0].Id, nil
    		}).(pulumi.StringPtrOutput))
    		description := polardb.GetGlobalDatabaseNetworksOutput(ctx, polardb.GetGlobalDatabaseNetworksOutputArgs{
    			Description: defaultGlobalDatabaseNetwork.Description,
    		}, nil)
    		ctx.Export("polardbGlobalDatabaseNetworkId2", description.ApplyT(func(description polardb.GetGlobalDatabaseNetworksResult) (*string, error) {
    			return &description.Networks[0].Id, nil
    		}).(pulumi.StringPtrOutput))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = AliCloud.PolarDB.GetNodeClasses.Invoke(new()
        {
            DbType = "MySQL",
            DbVersion = "8.0",
            PayType = "PostPaid",
            Category = "Normal",
        });
    
        var @default = new AliCloud.Vpc.Network("default", new()
        {
            VpcName = "terraform-example",
            CidrBlock = "172.16.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
        {
            VpcId = @default.Id,
            CidrBlock = "172.16.0.0/24",
            ZoneId = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.ZoneId)),
            VswitchName = "terraform-example",
        });
    
        var cluster = new AliCloud.PolarDB.Cluster("cluster", new()
        {
            DbType = "MySQL",
            DbVersion = "8.0",
            PayType = "PostPaid",
            DbNodeCount = 2,
            DbNodeClass = @this.Apply(@this => @this.Apply(getNodeClassesResult => getNodeClassesResult.Classes[0]?.SupportedEngines[0]?.AvailableResources[0]?.DbNodeClass)),
            VswitchId = defaultSwitch.Id,
        });
    
        var defaultGlobalDatabaseNetwork = new AliCloud.PolarDB.GlobalDatabaseNetwork("default", new()
        {
            DbClusterId = cluster.Id,
            Description = cluster.Id,
        });
    
        var ids = AliCloud.PolarDB.GetGlobalDatabaseNetworks.Invoke(new()
        {
            Ids = new[]
            {
                defaultGlobalDatabaseNetwork.Id,
            },
        });
    
        var description = AliCloud.PolarDB.GetGlobalDatabaseNetworks.Invoke(new()
        {
            Description = defaultGlobalDatabaseNetwork.Description,
        });
    
        return new Dictionary<string, object?>
        {
            ["polardbGlobalDatabaseNetworkId1"] = ids.Apply(getGlobalDatabaseNetworksResult => getGlobalDatabaseNetworksResult.Networks[0]?.Id),
            ["polardbGlobalDatabaseNetworkId2"] = description.Apply(getGlobalDatabaseNetworksResult => getGlobalDatabaseNetworksResult.Networks[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.polardb.PolardbFunctions;
    import com.pulumi.alicloud.polardb.inputs.GetNodeClassesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.polardb.Cluster;
    import com.pulumi.alicloud.polardb.ClusterArgs;
    import com.pulumi.alicloud.polardb.GlobalDatabaseNetwork;
    import com.pulumi.alicloud.polardb.GlobalDatabaseNetworkArgs;
    import com.pulumi.alicloud.polardb.inputs.GetGlobalDatabaseNetworksArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var this = PolardbFunctions.getNodeClasses(GetNodeClassesArgs.builder()
                .dbType("MySQL")
                .dbVersion("8.0")
                .payType("PostPaid")
                .category("Normal")
                .build());
    
            var default_ = new Network("default", NetworkArgs.builder()
                .vpcName("terraform-example")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
                .vpcId(default_.id())
                .cidrBlock("172.16.0.0/24")
                .zoneId(this_.classes()[0].zoneId())
                .vswitchName("terraform-example")
                .build());
    
            var cluster = new Cluster("cluster", ClusterArgs.builder()
                .dbType("MySQL")
                .dbVersion("8.0")
                .payType("PostPaid")
                .dbNodeCount("2")
                .dbNodeClass(this_.classes()[0].supportedEngines()[0].availableResources()[0].dbNodeClass())
                .vswitchId(defaultSwitch.id())
                .build());
    
            var defaultGlobalDatabaseNetwork = new GlobalDatabaseNetwork("defaultGlobalDatabaseNetwork", GlobalDatabaseNetworkArgs.builder()
                .dbClusterId(cluster.id())
                .description(cluster.id())
                .build());
    
            final var ids = PolardbFunctions.getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs.builder()
                .ids(defaultGlobalDatabaseNetwork.id())
                .build());
    
            ctx.export("polardbGlobalDatabaseNetworkId1", ids.applyValue(getGlobalDatabaseNetworksResult -> getGlobalDatabaseNetworksResult).applyValue(ids -> ids.applyValue(getGlobalDatabaseNetworksResult -> getGlobalDatabaseNetworksResult.networks()[0].id())));
            final var description = PolardbFunctions.getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs.builder()
                .description(defaultGlobalDatabaseNetwork.description())
                .build());
    
            ctx.export("polardbGlobalDatabaseNetworkId2", description.applyValue(getGlobalDatabaseNetworksResult -> getGlobalDatabaseNetworksResult).applyValue(description -> description.applyValue(getGlobalDatabaseNetworksResult -> getGlobalDatabaseNetworksResult.networks()[0].id())));
        }
    }
    
    resources:
      default:
        type: alicloud:vpc:Network
        properties:
          vpcName: terraform-example
          cidrBlock: 172.16.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        name: default
        properties:
          vpcId: ${default.id}
          cidrBlock: 172.16.0.0/24
          zoneId: ${this.classes[0].zoneId}
          vswitchName: terraform-example
      cluster:
        type: alicloud:polardb:Cluster
        properties:
          dbType: MySQL
          dbVersion: '8.0'
          payType: PostPaid
          dbNodeCount: '2'
          dbNodeClass: ${this.classes[0].supportedEngines[0].availableResources[0].dbNodeClass}
          vswitchId: ${defaultSwitch.id}
      defaultGlobalDatabaseNetwork:
        type: alicloud:polardb:GlobalDatabaseNetwork
        name: default
        properties:
          dbClusterId: ${cluster.id}
          description: ${cluster.id}
    variables:
      this:
        fn::invoke:
          Function: alicloud:polardb:getNodeClasses
          Arguments:
            dbType: MySQL
            dbVersion: '8.0'
            payType: PostPaid
            category: Normal
      ids:
        fn::invoke:
          Function: alicloud:polardb:getGlobalDatabaseNetworks
          Arguments:
            ids:
              - ${defaultGlobalDatabaseNetwork.id}
      description:
        fn::invoke:
          Function: alicloud:polardb:getGlobalDatabaseNetworks
          Arguments:
            description: ${defaultGlobalDatabaseNetwork.description}
    outputs:
      polardbGlobalDatabaseNetworkId1: ${ids.networks[0].id}
      polardbGlobalDatabaseNetworkId2: ${description.networks[0].id}
    

    Using getGlobalDatabaseNetworks

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getGlobalDatabaseNetworks(args: GetGlobalDatabaseNetworksArgs, opts?: InvokeOptions): Promise<GetGlobalDatabaseNetworksResult>
    function getGlobalDatabaseNetworksOutput(args: GetGlobalDatabaseNetworksOutputArgs, opts?: InvokeOptions): Output<GetGlobalDatabaseNetworksResult>
    def get_global_database_networks(db_cluster_id: Optional[str] = None,
                                     description: Optional[str] = None,
                                     gdn_id: Optional[str] = None,
                                     ids: Optional[Sequence[str]] = None,
                                     output_file: Optional[str] = None,
                                     page_number: Optional[int] = None,
                                     page_size: Optional[int] = None,
                                     status: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetGlobalDatabaseNetworksResult
    def get_global_database_networks_output(db_cluster_id: Optional[pulumi.Input[str]] = None,
                                     description: Optional[pulumi.Input[str]] = None,
                                     gdn_id: Optional[pulumi.Input[str]] = None,
                                     ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                     output_file: Optional[pulumi.Input[str]] = None,
                                     page_number: Optional[pulumi.Input[int]] = None,
                                     page_size: Optional[pulumi.Input[int]] = None,
                                     status: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetGlobalDatabaseNetworksResult]
    func GetGlobalDatabaseNetworks(ctx *Context, args *GetGlobalDatabaseNetworksArgs, opts ...InvokeOption) (*GetGlobalDatabaseNetworksResult, error)
    func GetGlobalDatabaseNetworksOutput(ctx *Context, args *GetGlobalDatabaseNetworksOutputArgs, opts ...InvokeOption) GetGlobalDatabaseNetworksResultOutput

    > Note: This function is named GetGlobalDatabaseNetworks in the Go SDK.

    public static class GetGlobalDatabaseNetworks 
    {
        public static Task<GetGlobalDatabaseNetworksResult> InvokeAsync(GetGlobalDatabaseNetworksArgs args, InvokeOptions? opts = null)
        public static Output<GetGlobalDatabaseNetworksResult> Invoke(GetGlobalDatabaseNetworksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGlobalDatabaseNetworksResult> getGlobalDatabaseNetworks(GetGlobalDatabaseNetworksArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:polardb/getGlobalDatabaseNetworks:getGlobalDatabaseNetworks
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DbClusterId string
    The ID of the cluster.
    Description string
    The description of the Global Database Network.
    GdnId string
    The ID of the Global Database Network.
    Ids List<string>
    A list of Global Database Network IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Status string
    The status of the Global Database Network. Valid values:
    DbClusterId string
    The ID of the cluster.
    Description string
    The description of the Global Database Network.
    GdnId string
    The ID of the Global Database Network.
    Ids []string
    A list of Global Database Network IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    Status string
    The status of the Global Database Network. Valid values:
    dbClusterId String
    The ID of the cluster.
    description String
    The description of the Global Database Network.
    gdnId String
    The ID of the Global Database Network.
    ids List<String>
    A list of Global Database Network IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    status String
    The status of the Global Database Network. Valid values:
    dbClusterId string
    The ID of the cluster.
    description string
    The description of the Global Database Network.
    gdnId string
    The ID of the Global Database Network.
    ids string[]
    A list of Global Database Network IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    status string
    The status of the Global Database Network. Valid values:
    db_cluster_id str
    The ID of the cluster.
    description str
    The description of the Global Database Network.
    gdn_id str
    The ID of the Global Database Network.
    ids Sequence[str]
    A list of Global Database Network IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    page_number int
    page_size int
    status str
    The status of the Global Database Network. Valid values:
    dbClusterId String
    The ID of the cluster.
    description String
    The description of the Global Database Network.
    gdnId String
    The ID of the Global Database Network.
    ids List<String>
    A list of Global Database Network IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number
    status String
    The status of the Global Database Network. Valid values:

    getGlobalDatabaseNetworks Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Networks List<Pulumi.AliCloud.PolarDB.Outputs.GetGlobalDatabaseNetworksNetwork>
    A list of PolarDB Global Database Networks. Each element contains the following attributes:
    DbClusterId string
    The ID of the PolarDB cluster.
    Description string
    The description of the Global Database Network.
    GdnId string
    The ID of the Global Database Network.
    OutputFile string
    PageNumber int
    PageSize int
    Status string
    The status of the Global Database Network.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Networks []GetGlobalDatabaseNetworksNetwork
    A list of PolarDB Global Database Networks. Each element contains the following attributes:
    DbClusterId string
    The ID of the PolarDB cluster.
    Description string
    The description of the Global Database Network.
    GdnId string
    The ID of the Global Database Network.
    OutputFile string
    PageNumber int
    PageSize int
    Status string
    The status of the Global Database Network.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    networks List<GetGlobalDatabaseNetworksNetwork>
    A list of PolarDB Global Database Networks. Each element contains the following attributes:
    dbClusterId String
    The ID of the PolarDB cluster.
    description String
    The description of the Global Database Network.
    gdnId String
    The ID of the Global Database Network.
    outputFile String
    pageNumber Integer
    pageSize Integer
    status String
    The status of the Global Database Network.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    networks GetGlobalDatabaseNetworksNetwork[]
    A list of PolarDB Global Database Networks. Each element contains the following attributes:
    dbClusterId string
    The ID of the PolarDB cluster.
    description string
    The description of the Global Database Network.
    gdnId string
    The ID of the Global Database Network.
    outputFile string
    pageNumber number
    pageSize number
    status string
    The status of the Global Database Network.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    networks Sequence[GetGlobalDatabaseNetworksNetwork]
    A list of PolarDB Global Database Networks. Each element contains the following attributes:
    db_cluster_id str
    The ID of the PolarDB cluster.
    description str
    The description of the Global Database Network.
    gdn_id str
    The ID of the Global Database Network.
    output_file str
    page_number int
    page_size int
    status str
    The status of the Global Database Network.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    networks List<Property Map>
    A list of PolarDB Global Database Networks. Each element contains the following attributes:
    dbClusterId String
    The ID of the PolarDB cluster.
    description String
    The description of the Global Database Network.
    gdnId String
    The ID of the Global Database Network.
    outputFile String
    pageNumber Number
    pageSize Number
    status String
    The status of the Global Database Network.

    Supporting Types

    GetGlobalDatabaseNetworksNetwork

    CreateTime string
    The time when the Global Database Network was created. The time is in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.
    DbClusters List<Pulumi.AliCloud.PolarDB.Inputs.GetGlobalDatabaseNetworksNetworkDbCluster>
    The details of each cluster in the Global Database Network.
    DbType string
    The type of the database engine. Only MySQL is supported.
    DbVersion string
    The version number of the database engine. Only the 8.0 version is supported.
    Description string
    The description of the Global Database Network.
    GdnId string
    The ID of the Global Database Network.
    Id string
    The ID of the Global Database Network.
    Status string
    The status of the Global Database Network. Valid values:
    CreateTime string
    The time when the Global Database Network was created. The time is in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.
    DbClusters []GetGlobalDatabaseNetworksNetworkDbCluster
    The details of each cluster in the Global Database Network.
    DbType string
    The type of the database engine. Only MySQL is supported.
    DbVersion string
    The version number of the database engine. Only the 8.0 version is supported.
    Description string
    The description of the Global Database Network.
    GdnId string
    The ID of the Global Database Network.
    Id string
    The ID of the Global Database Network.
    Status string
    The status of the Global Database Network. Valid values:
    createTime String
    The time when the Global Database Network was created. The time is in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.
    dbClusters List<GetGlobalDatabaseNetworksNetworkDbCluster>
    The details of each cluster in the Global Database Network.
    dbType String
    The type of the database engine. Only MySQL is supported.
    dbVersion String
    The version number of the database engine. Only the 8.0 version is supported.
    description String
    The description of the Global Database Network.
    gdnId String
    The ID of the Global Database Network.
    id String
    The ID of the Global Database Network.
    status String
    The status of the Global Database Network. Valid values:
    createTime string
    The time when the Global Database Network was created. The time is in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.
    dbClusters GetGlobalDatabaseNetworksNetworkDbCluster[]
    The details of each cluster in the Global Database Network.
    dbType string
    The type of the database engine. Only MySQL is supported.
    dbVersion string
    The version number of the database engine. Only the 8.0 version is supported.
    description string
    The description of the Global Database Network.
    gdnId string
    The ID of the Global Database Network.
    id string
    The ID of the Global Database Network.
    status string
    The status of the Global Database Network. Valid values:
    create_time str
    The time when the Global Database Network was created. The time is in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.
    db_clusters Sequence[GetGlobalDatabaseNetworksNetworkDbCluster]
    The details of each cluster in the Global Database Network.
    db_type str
    The type of the database engine. Only MySQL is supported.
    db_version str
    The version number of the database engine. Only the 8.0 version is supported.
    description str
    The description of the Global Database Network.
    gdn_id str
    The ID of the Global Database Network.
    id str
    The ID of the Global Database Network.
    status str
    The status of the Global Database Network. Valid values:
    createTime String
    The time when the Global Database Network was created. The time is in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.
    dbClusters List<Property Map>
    The details of each cluster in the Global Database Network.
    dbType String
    The type of the database engine. Only MySQL is supported.
    dbVersion String
    The version number of the database engine. Only the 8.0 version is supported.
    description String
    The description of the Global Database Network.
    gdnId String
    The ID of the Global Database Network.
    id String
    The ID of the Global Database Network.
    status String
    The status of the Global Database Network. Valid values:

    GetGlobalDatabaseNetworksNetworkDbCluster

    DbClusterId string
    The ID of the cluster.
    RegionId string
    The region ID of the cluster.
    Role string
    The role of the cluster.
    DbClusterId string
    The ID of the cluster.
    RegionId string
    The region ID of the cluster.
    Role string
    The role of the cluster.
    dbClusterId String
    The ID of the cluster.
    regionId String
    The region ID of the cluster.
    role String
    The role of the cluster.
    dbClusterId string
    The ID of the cluster.
    regionId string
    The region ID of the cluster.
    role string
    The role of the cluster.
    db_cluster_id str
    The ID of the cluster.
    region_id str
    The region ID of the cluster.
    role str
    The role of the cluster.
    dbClusterId String
    The ID of the cluster.
    regionId String
    The region ID of the cluster.
    role String
    The role of the cluster.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi