1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. selectdb
  5. getDbClusters
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.selectdb.getDbClusters

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides the SelectDB DBCluster of the current Alibaba Cloud user.

NOTE: Available since v1.229.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.getZones({
    availableResourceCreation: "VSwitch",
});
const config = new pulumi.Config();
const name = config.get("name") || "terraform_example";
const defaultGetNetworks = alicloud.vpc.getNetworks({
    nameRegex: "^default-NODELETING$",
});
const defaultGetSwitches = Promise.all([defaultGetNetworks, _default]).then(([defaultGetNetworks, _default]) => alicloud.vpc.getSwitches({
    vpcId: defaultGetNetworks.ids?.[0],
    zoneId: _default.zones?.[0]?.id,
}));
const defaultDbInstance = new alicloud.selectdb.DbInstance("default", {
    dbInstanceClass: "selectdb.xlarge",
    dbInstanceDescription: name,
    cacheSize: 200,
    paymentType: "PayAsYouGo",
    vpcId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.vswitches?.[0]?.vpcId),
    zoneId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.vswitches?.[0]?.zoneId),
    vswitchId: defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.vswitches?.[0]?.id),
});
const defaultDbCluster = new alicloud.selectdb.DbCluster("default", {
    dbInstanceId: defaultDbInstance.id,
    dbClusterDescription: name,
    dbClusterClass: "selectdb.2xlarge",
    cacheSize: 400,
    paymentType: "PayAsYouGo",
});
const defaultGetDbClusters = alicloud.selectdb.getDbClustersOutput({
    ids: [defaultDbCluster.id],
});
export const dbCluster = defaultGetDbClusters.apply(defaultGetDbClusters => defaultGetDbClusters.ids?.[0]);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.get_zones(available_resource_creation="VSwitch")
config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "terraform_example"
default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
    zone_id=default.zones[0].id)
default_db_instance = alicloud.selectdb.DbInstance("default",
    db_instance_class="selectdb.xlarge",
    db_instance_description=name,
    cache_size=200,
    payment_type="PayAsYouGo",
    vpc_id=default_get_switches.vswitches[0].vpc_id,
    zone_id=default_get_switches.vswitches[0].zone_id,
    vswitch_id=default_get_switches.vswitches[0].id)
default_db_cluster = alicloud.selectdb.DbCluster("default",
    db_instance_id=default_db_instance.id,
    db_cluster_description=name,
    db_cluster_class="selectdb.2xlarge",
    cache_size=400,
    payment_type="PayAsYouGo")
default_get_db_clusters = alicloud.selectdb.get_db_clusters_output(ids=[default_db_cluster.id])
pulumi.export("dbCluster", default_get_db_clusters.ids[0])
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/selectdb"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		cfg := config.New(ctx, "")
		name := "terraform_example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("^default-NODELETING$"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultGetNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(_default.Zones[0].Id),
		}, nil)
		if err != nil {
			return err
		}
		defaultDbInstance, err := selectdb.NewDbInstance(ctx, "default", &selectdb.DbInstanceArgs{
			DbInstanceClass:       pulumi.String("selectdb.xlarge"),
			DbInstanceDescription: pulumi.String(name),
			CacheSize:             pulumi.Int(200),
			PaymentType:           pulumi.String("PayAsYouGo"),
			VpcId:                 pulumi.String(defaultGetSwitches.Vswitches[0].VpcId),
			ZoneId:                pulumi.String(defaultGetSwitches.Vswitches[0].ZoneId),
			VswitchId:             pulumi.String(defaultGetSwitches.Vswitches[0].Id),
		})
		if err != nil {
			return err
		}
		defaultDbCluster, err := selectdb.NewDbCluster(ctx, "default", &selectdb.DbClusterArgs{
			DbInstanceId:         defaultDbInstance.ID(),
			DbClusterDescription: pulumi.String(name),
			DbClusterClass:       pulumi.String("selectdb.2xlarge"),
			CacheSize:            pulumi.Int(400),
			PaymentType:          pulumi.String("PayAsYouGo"),
		})
		if err != nil {
			return err
		}
		defaultGetDbClusters := selectdb.GetDbClustersOutput(ctx, selectdb.GetDbClustersOutputArgs{
			Ids: pulumi.StringArray{
				defaultDbCluster.ID(),
			},
		}, nil)
		ctx.Export("dbCluster", defaultGetDbClusters.ApplyT(func(defaultGetDbClusters selectdb.GetDbClustersResult) (*string, error) {
			return &defaultGetDbClusters.Ids[0], nil
		}).(pulumi.StringPtrOutput))
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.GetZones.Invoke(new()
    {
        AvailableResourceCreation = "VSwitch",
    });

    var config = new Config();
    var name = config.Get("name") ?? "terraform_example";
    var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
    {
        NameRegex = "^default-NODELETING$",
    });

    var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
    {
        VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
        ZoneId = @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
    });

    var defaultDbInstance = new AliCloud.SelectDB.DbInstance("default", new()
    {
        DbInstanceClass = "selectdb.xlarge",
        DbInstanceDescription = name,
        CacheSize = 200,
        PaymentType = "PayAsYouGo",
        VpcId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.VpcId),
        ZoneId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.ZoneId),
        VswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Vswitches[0]?.Id),
    });

    var defaultDbCluster = new AliCloud.SelectDB.DbCluster("default", new()
    {
        DbInstanceId = defaultDbInstance.Id,
        DbClusterDescription = name,
        DbClusterClass = "selectdb.2xlarge",
        CacheSize = 400,
        PaymentType = "PayAsYouGo",
    });

    var defaultGetDbClusters = AliCloud.SelectDB.GetDbClusters.Invoke(new()
    {
        Ids = new[]
        {
            defaultDbCluster.Id,
        },
    });

    return new Dictionary<string, object?>
    {
        ["dbCluster"] = defaultGetDbClusters.Apply(getDbClustersResult => getDbClustersResult.Ids[0]),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.selectdb.DbInstance;
import com.pulumi.alicloud.selectdb.DbInstanceArgs;
import com.pulumi.alicloud.selectdb.DbCluster;
import com.pulumi.alicloud.selectdb.DbClusterArgs;
import com.pulumi.alicloud.selectdb.SelectdbFunctions;
import com.pulumi.alicloud.selectdb.inputs.GetDbClustersArgs;
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 config = ctx.config();
        final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
            .availableResourceCreation("VSwitch")
            .build());

        final var name = config.get("name").orElse("terraform_example");
        final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
            .nameRegex("^default-NODELETING$")
            .build());

        final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
            .vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
            .zoneId(default_.zones()[0].id())
            .build());

        var defaultDbInstance = new DbInstance("defaultDbInstance", DbInstanceArgs.builder()
            .dbInstanceClass("selectdb.xlarge")
            .dbInstanceDescription(name)
            .cacheSize(200)
            .paymentType("PayAsYouGo")
            .vpcId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].vpcId()))
            .zoneId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].zoneId()))
            .vswitchId(defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.vswitches()[0].id()))
            .build());

        var defaultDbCluster = new DbCluster("defaultDbCluster", DbClusterArgs.builder()
            .dbInstanceId(defaultDbInstance.id())
            .dbClusterDescription(name)
            .dbClusterClass("selectdb.2xlarge")
            .cacheSize(400)
            .paymentType("PayAsYouGo")
            .build());

        final var defaultGetDbClusters = SelectdbFunctions.getDbClusters(GetDbClustersArgs.builder()
            .ids(defaultDbCluster.id())
            .build());

        ctx.export("dbCluster", defaultGetDbClusters.applyValue(getDbClustersResult -> getDbClustersResult).applyValue(defaultGetDbClusters -> defaultGetDbClusters.applyValue(getDbClustersResult -> getDbClustersResult.ids()[0])));
    }
}
Copy
configuration:
  name:
    type: string
    default: terraform_example
resources:
  defaultDbInstance:
    type: alicloud:selectdb:DbInstance
    name: default
    properties:
      dbInstanceClass: selectdb.xlarge
      dbInstanceDescription: ${name}
      cacheSize: 200
      paymentType: PayAsYouGo
      vpcId: ${defaultGetSwitches.vswitches[0].vpcId}
      zoneId: ${defaultGetSwitches.vswitches[0].zoneId}
      vswitchId: ${defaultGetSwitches.vswitches[0].id}
  defaultDbCluster:
    type: alicloud:selectdb:DbCluster
    name: default
    properties:
      dbInstanceId: ${defaultDbInstance.id}
      dbClusterDescription: ${name}
      dbClusterClass: selectdb.2xlarge
      cacheSize: 400
      paymentType: PayAsYouGo
variables:
  default:
    fn::invoke:
      function: alicloud:getZones
      arguments:
        availableResourceCreation: VSwitch
  defaultGetNetworks:
    fn::invoke:
      function: alicloud:vpc:getNetworks
      arguments:
        nameRegex: ^default-NODELETING$
  defaultGetSwitches:
    fn::invoke:
      function: alicloud:vpc:getSwitches
      arguments:
        vpcId: ${defaultGetNetworks.ids[0]}
        zoneId: ${default.zones[0].id}
  defaultGetDbClusters:
    fn::invoke:
      function: alicloud:selectdb:getDbClusters
      arguments:
        ids:
          - ${defaultDbCluster.id}
outputs:
  dbCluster: ${defaultGetDbClusters.ids[0]}
Copy

Using getDbClusters

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 getDbClusters(args: GetDbClustersArgs, opts?: InvokeOptions): Promise<GetDbClustersResult>
function getDbClustersOutput(args: GetDbClustersOutputArgs, opts?: InvokeOptions): Output<GetDbClustersResult>
Copy
def get_db_clusters(ids: Optional[Sequence[str]] = None,
                    output_file: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDbClustersResult
def get_db_clusters_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                    output_file: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDbClustersResult]
Copy
func GetDbClusters(ctx *Context, args *GetDbClustersArgs, opts ...InvokeOption) (*GetDbClustersResult, error)
func GetDbClustersOutput(ctx *Context, args *GetDbClustersOutputArgs, opts ...InvokeOption) GetDbClustersResultOutput
Copy

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

public static class GetDbClusters 
{
    public static Task<GetDbClustersResult> InvokeAsync(GetDbClustersArgs args, InvokeOptions? opts = null)
    public static Output<GetDbClustersResult> Invoke(GetDbClustersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDbClustersResult> getDbClusters(GetDbClustersArgs args, InvokeOptions options)
public static Output<GetDbClustersResult> getDbClusters(GetDbClustersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:selectdb/getDbClusters:getDbClusters
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
A list of DBCluster IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
Ids Changes to this property will trigger replacement. []string
A list of DBCluster IDs.
OutputFile string
File name where to save data source results (after running pulumi preview).
ids Changes to this property will trigger replacement. List<String>
A list of DBCluster IDs.
outputFile String
File name where to save data source results (after running pulumi preview).
ids Changes to this property will trigger replacement. string[]
A list of DBCluster IDs.
outputFile string
File name where to save data source results (after running pulumi preview).
ids Changes to this property will trigger replacement. Sequence[str]
A list of DBCluster IDs.
output_file str
File name where to save data source results (after running pulumi preview).
ids Changes to this property will trigger replacement. List<String>
A list of DBCluster IDs.
outputFile String
File name where to save data source results (after running pulumi preview).

getDbClusters Result

The following output properties are available:

Clusters List<Pulumi.AliCloud.SelectDB.Outputs.GetDbClustersCluster>
A list of SelectDB DBClusters. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
OutputFile string
Clusters []GetDbClustersCluster
A list of SelectDB DBClusters. Each element contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
OutputFile string
clusters List<GetDbClustersCluster>
A list of SelectDB DBClusters. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
outputFile String
clusters GetDbClustersCluster[]
A list of SelectDB DBClusters. Each element contains the following attributes:
id string
The provider-assigned unique ID for this managed resource.
ids string[]
outputFile string
clusters Sequence[GetDbClustersCluster]
A list of SelectDB DBClusters. Each element contains the following attributes:
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
output_file str
clusters List<Property Map>
A list of SelectDB DBClusters. Each element contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
outputFile String

Supporting Types

GetDbClustersCluster

CacheSize This property is required. int
The cache size for DBCluster.
Cpu This property is required. int
The cpu resource amount of DBCluster. Depends on db_cluster_class.
CreateTime This property is required. string
The creation time of the resource.
DbClusterClass This property is required. string
The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
DbClusterDescription This property is required. string
The DBCluster description.
DbClusterId This property is required. string
The cluster ID.
DbInstanceId This property is required. string
The instance ID.
Engine This property is required. string
The Engine of the DBCluster.
EngineVersion This property is required. string
The engine version of the DBCluster.
Id This property is required. string
Memory This property is required. int
The memory resource amount of DBCluster. Depends on db_cluster_class.
ParamChangeLogs This property is required. List<Pulumi.AliCloud.SelectDB.Inputs.GetDbClustersClusterParamChangeLog>
The configuration change logs of parameters.
Params This property is required. List<Pulumi.AliCloud.SelectDB.Inputs.GetDbClustersClusterParam>
The details about each parameter in DBCluster returned.
PaymentType This property is required. string
The payment type of the resource. Valid values: PayAsYouGo,Subscription.
RegionId This property is required. string
The ID of region for the cluster.
Status This property is required. string
The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
VpcId This property is required. string
The ID of the VPC for the cluster.
ZoneId This property is required. string
The ID of zone for the cluster.
CacheSize This property is required. int
The cache size for DBCluster.
Cpu This property is required. int
The cpu resource amount of DBCluster. Depends on db_cluster_class.
CreateTime This property is required. string
The creation time of the resource.
DbClusterClass This property is required. string
The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
DbClusterDescription This property is required. string
The DBCluster description.
DbClusterId This property is required. string
The cluster ID.
DbInstanceId This property is required. string
The instance ID.
Engine This property is required. string
The Engine of the DBCluster.
EngineVersion This property is required. string
The engine version of the DBCluster.
Id This property is required. string
Memory This property is required. int
The memory resource amount of DBCluster. Depends on db_cluster_class.
ParamChangeLogs This property is required. []GetDbClustersClusterParamChangeLog
The configuration change logs of parameters.
Params This property is required. []GetDbClustersClusterParam
The details about each parameter in DBCluster returned.
PaymentType This property is required. string
The payment type of the resource. Valid values: PayAsYouGo,Subscription.
RegionId This property is required. string
The ID of region for the cluster.
Status This property is required. string
The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
VpcId This property is required. string
The ID of the VPC for the cluster.
ZoneId This property is required. string
The ID of zone for the cluster.
cacheSize This property is required. Integer
The cache size for DBCluster.
cpu This property is required. Integer
The cpu resource amount of DBCluster. Depends on db_cluster_class.
createTime This property is required. String
The creation time of the resource.
dbClusterClass This property is required. String
The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
dbClusterDescription This property is required. String
The DBCluster description.
dbClusterId This property is required. String
The cluster ID.
dbInstanceId This property is required. String
The instance ID.
engine This property is required. String
The Engine of the DBCluster.
engineVersion This property is required. String
The engine version of the DBCluster.
id This property is required. String
memory This property is required. Integer
The memory resource amount of DBCluster. Depends on db_cluster_class.
paramChangeLogs This property is required. List<GetDbClustersClusterParamChangeLog>
The configuration change logs of parameters.
params This property is required. List<GetDbClustersClusterParam>
The details about each parameter in DBCluster returned.
paymentType This property is required. String
The payment type of the resource. Valid values: PayAsYouGo,Subscription.
regionId This property is required. String
The ID of region for the cluster.
status This property is required. String
The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
vpcId This property is required. String
The ID of the VPC for the cluster.
zoneId This property is required. String
The ID of zone for the cluster.
cacheSize This property is required. number
The cache size for DBCluster.
cpu This property is required. number
The cpu resource amount of DBCluster. Depends on db_cluster_class.
createTime This property is required. string
The creation time of the resource.
dbClusterClass This property is required. string
The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
dbClusterDescription This property is required. string
The DBCluster description.
dbClusterId This property is required. string
The cluster ID.
dbInstanceId This property is required. string
The instance ID.
engine This property is required. string
The Engine of the DBCluster.
engineVersion This property is required. string
The engine version of the DBCluster.
id This property is required. string
memory This property is required. number
The memory resource amount of DBCluster. Depends on db_cluster_class.
paramChangeLogs This property is required. GetDbClustersClusterParamChangeLog[]
The configuration change logs of parameters.
params This property is required. GetDbClustersClusterParam[]
The details about each parameter in DBCluster returned.
paymentType This property is required. string
The payment type of the resource. Valid values: PayAsYouGo,Subscription.
regionId This property is required. string
The ID of region for the cluster.
status This property is required. string
The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
vpcId This property is required. string
The ID of the VPC for the cluster.
zoneId This property is required. string
The ID of zone for the cluster.
cache_size This property is required. int
The cache size for DBCluster.
cpu This property is required. int
The cpu resource amount of DBCluster. Depends on db_cluster_class.
create_time This property is required. str
The creation time of the resource.
db_cluster_class This property is required. str
The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
db_cluster_description This property is required. str
The DBCluster description.
db_cluster_id This property is required. str
The cluster ID.
db_instance_id This property is required. str
The instance ID.
engine This property is required. str
The Engine of the DBCluster.
engine_version This property is required. str
The engine version of the DBCluster.
id This property is required. str
memory This property is required. int
The memory resource amount of DBCluster. Depends on db_cluster_class.
param_change_logs This property is required. Sequence[GetDbClustersClusterParamChangeLog]
The configuration change logs of parameters.
params This property is required. Sequence[GetDbClustersClusterParam]
The details about each parameter in DBCluster returned.
payment_type This property is required. str
The payment type of the resource. Valid values: PayAsYouGo,Subscription.
region_id This property is required. str
The ID of region for the cluster.
status This property is required. str
The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
vpc_id This property is required. str
The ID of the VPC for the cluster.
zone_id This property is required. str
The ID of zone for the cluster.
cacheSize This property is required. Number
The cache size for DBCluster.
cpu This property is required. Number
The cpu resource amount of DBCluster. Depends on db_cluster_class.
createTime This property is required. String
The creation time of the resource.
dbClusterClass This property is required. String
The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
dbClusterDescription This property is required. String
The DBCluster description.
dbClusterId This property is required. String
The cluster ID.
dbInstanceId This property is required. String
The instance ID.
engine This property is required. String
The Engine of the DBCluster.
engineVersion This property is required. String
The engine version of the DBCluster.
id This property is required. String
memory This property is required. Number
The memory resource amount of DBCluster. Depends on db_cluster_class.
paramChangeLogs This property is required. List<Property Map>
The configuration change logs of parameters.
params This property is required. List<Property Map>
The details about each parameter in DBCluster returned.
paymentType This property is required. String
The payment type of the resource. Valid values: PayAsYouGo,Subscription.
regionId This property is required. String
The ID of region for the cluster.
status This property is required. String
The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
vpcId This property is required. String
The ID of the VPC for the cluster.
zoneId This property is required. String
The ID of zone for the cluster.

GetDbClustersClusterParam

Comment This property is required. string
The comments on the parameter.
DefaultValue This property is required. string
The default value of the parameter.
IsDynamic This property is required. int
Indicates whether the parameter immediately takes effect without requiring a restart.
IsUserModifiable This property is required. int
Indicates whether the parameter is modifiable.
Name This property is required. string
Changed parameter name.
Optional This property is required. int
The value range of the parameter.
ParamCategory This property is required. string
The category of the parameter.
Value This property is required. string
The new value of Parameter.
Comment This property is required. string
The comments on the parameter.
DefaultValue This property is required. string
The default value of the parameter.
IsDynamic This property is required. int
Indicates whether the parameter immediately takes effect without requiring a restart.
IsUserModifiable This property is required. int
Indicates whether the parameter is modifiable.
Name This property is required. string
Changed parameter name.
Optional This property is required. int
The value range of the parameter.
ParamCategory This property is required. string
The category of the parameter.
Value This property is required. string
The new value of Parameter.
comment This property is required. String
The comments on the parameter.
defaultValue This property is required. String
The default value of the parameter.
isDynamic This property is required. Integer
Indicates whether the parameter immediately takes effect without requiring a restart.
isUserModifiable This property is required. Integer
Indicates whether the parameter is modifiable.
name This property is required. String
Changed parameter name.
optional This property is required. Integer
The value range of the parameter.
paramCategory This property is required. String
The category of the parameter.
value This property is required. String
The new value of Parameter.
comment This property is required. string
The comments on the parameter.
defaultValue This property is required. string
The default value of the parameter.
isDynamic This property is required. number
Indicates whether the parameter immediately takes effect without requiring a restart.
isUserModifiable This property is required. number
Indicates whether the parameter is modifiable.
name This property is required. string
Changed parameter name.
optional This property is required. number
The value range of the parameter.
paramCategory This property is required. string
The category of the parameter.
value This property is required. string
The new value of Parameter.
comment This property is required. str
The comments on the parameter.
default_value This property is required. str
The default value of the parameter.
is_dynamic This property is required. int
Indicates whether the parameter immediately takes effect without requiring a restart.
is_user_modifiable This property is required. int
Indicates whether the parameter is modifiable.
name This property is required. str
Changed parameter name.
optional This property is required. int
The value range of the parameter.
param_category This property is required. str
The category of the parameter.
value This property is required. str
The new value of Parameter.
comment This property is required. String
The comments on the parameter.
defaultValue This property is required. String
The default value of the parameter.
isDynamic This property is required. Number
Indicates whether the parameter immediately takes effect without requiring a restart.
isUserModifiable This property is required. Number
Indicates whether the parameter is modifiable.
name This property is required. String
Changed parameter name.
optional This property is required. Number
The value range of the parameter.
paramCategory This property is required. String
The category of the parameter.
value This property is required. String
The new value of Parameter.

GetDbClustersClusterParamChangeLog

ConfigId This property is required. int
The id of parameter change.
GmtCreated This property is required. string
When the parameter change is created.
GmtModified This property is required. string
When the parameter change is modified.
IsApplied This property is required. int
Whether the parameter changing is applied.
Name This property is required. string
Changed parameter name.
NewValue This property is required. string
The new value of parameter.
OldValue This property is required. string
The old value of parameter.
ConfigId This property is required. int
The id of parameter change.
GmtCreated This property is required. string
When the parameter change is created.
GmtModified This property is required. string
When the parameter change is modified.
IsApplied This property is required. int
Whether the parameter changing is applied.
Name This property is required. string
Changed parameter name.
NewValue This property is required. string
The new value of parameter.
OldValue This property is required. string
The old value of parameter.
configId This property is required. Integer
The id of parameter change.
gmtCreated This property is required. String
When the parameter change is created.
gmtModified This property is required. String
When the parameter change is modified.
isApplied This property is required. Integer
Whether the parameter changing is applied.
name This property is required. String
Changed parameter name.
newValue This property is required. String
The new value of parameter.
oldValue This property is required. String
The old value of parameter.
configId This property is required. number
The id of parameter change.
gmtCreated This property is required. string
When the parameter change is created.
gmtModified This property is required. string
When the parameter change is modified.
isApplied This property is required. number
Whether the parameter changing is applied.
name This property is required. string
Changed parameter name.
newValue This property is required. string
The new value of parameter.
oldValue This property is required. string
The old value of parameter.
config_id This property is required. int
The id of parameter change.
gmt_created This property is required. str
When the parameter change is created.
gmt_modified This property is required. str
When the parameter change is modified.
is_applied This property is required. int
Whether the parameter changing is applied.
name This property is required. str
Changed parameter name.
new_value This property is required. str
The new value of parameter.
old_value This property is required. str
The old value of parameter.
configId This property is required. Number
The id of parameter change.
gmtCreated This property is required. String
When the parameter change is created.
gmtModified This property is required. String
When the parameter change is modified.
isApplied This property is required. Number
Whether the parameter changing is applied.
name This property is required. String
Changed parameter name.
newValue This property is required. String
The new value of parameter.
oldValue This property is required. String
The old value of parameter.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi