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

alicloud.selectdb.getDbClusters

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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]);
    
    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])
    
    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
    	})
    }
    
    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]),
        };
    });
    
    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])));
        }
    }
    
    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]}
    

    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>
    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]
    func GetDbClusters(ctx *Context, args *GetDbClustersArgs, opts ...InvokeOption) (*GetDbClustersResult, error)
    func GetDbClustersOutput(ctx *Context, args *GetDbClustersOutputArgs, opts ...InvokeOption) GetDbClustersResultOutput

    > 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)
    }
    public static CompletableFuture<GetDbClustersResult> getDbClusters(GetDbClustersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:selectdb/getDbClusters:getDbClusters
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of DBCluster IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Ids []string
    A list of DBCluster IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ids List<String>
    A list of DBCluster IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    ids string[]
    A list of DBCluster IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    ids Sequence[str]
    A list of DBCluster IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    ids 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 int
    The cache size for DBCluster.
    Cpu int
    The cpu resource amount of DBCluster. Depends on db_cluster_class.
    CreateTime string
    The creation time of the resource.
    DbClusterClass string
    The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
    DbClusterDescription string
    The DBCluster description.
    DbClusterId string
    The cluster ID.
    DbInstanceId string
    The instance ID.
    Engine string
    The Engine of the DBCluster.
    EngineVersion string
    The engine version of the DBCluster.
    Id string
    Memory int
    The memory resource amount of DBCluster. Depends on db_cluster_class.
    ParamChangeLogs List<Pulumi.AliCloud.SelectDB.Inputs.GetDbClustersClusterParamChangeLog>
    The configuration change logs of parameters.
    Params List<Pulumi.AliCloud.SelectDB.Inputs.GetDbClustersClusterParam>
    The details about each parameter in DBCluster returned.
    PaymentType string
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    RegionId string
    The ID of region for the cluster.
    Status string
    The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    VpcId string
    The ID of the VPC for the cluster.
    ZoneId string
    The ID of zone for the cluster.
    CacheSize int
    The cache size for DBCluster.
    Cpu int
    The cpu resource amount of DBCluster. Depends on db_cluster_class.
    CreateTime string
    The creation time of the resource.
    DbClusterClass string
    The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
    DbClusterDescription string
    The DBCluster description.
    DbClusterId string
    The cluster ID.
    DbInstanceId string
    The instance ID.
    Engine string
    The Engine of the DBCluster.
    EngineVersion string
    The engine version of the DBCluster.
    Id string
    Memory int
    The memory resource amount of DBCluster. Depends on db_cluster_class.
    ParamChangeLogs []GetDbClustersClusterParamChangeLog
    The configuration change logs of parameters.
    Params []GetDbClustersClusterParam
    The details about each parameter in DBCluster returned.
    PaymentType string
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    RegionId string
    The ID of region for the cluster.
    Status string
    The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    VpcId string
    The ID of the VPC for the cluster.
    ZoneId string
    The ID of zone for the cluster.
    cacheSize Integer
    The cache size for DBCluster.
    cpu Integer
    The cpu resource amount of DBCluster. Depends on db_cluster_class.
    createTime String
    The creation time of the resource.
    dbClusterClass String
    The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
    dbClusterDescription String
    The DBCluster description.
    dbClusterId String
    The cluster ID.
    dbInstanceId String
    The instance ID.
    engine String
    The Engine of the DBCluster.
    engineVersion String
    The engine version of the DBCluster.
    id String
    memory Integer
    The memory resource amount of DBCluster. Depends on db_cluster_class.
    paramChangeLogs List<GetDbClustersClusterParamChangeLog>
    The configuration change logs of parameters.
    params List<GetDbClustersClusterParam>
    The details about each parameter in DBCluster returned.
    paymentType String
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    regionId String
    The ID of region for the cluster.
    status String
    The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    vpcId String
    The ID of the VPC for the cluster.
    zoneId String
    The ID of zone for the cluster.
    cacheSize number
    The cache size for DBCluster.
    cpu number
    The cpu resource amount of DBCluster. Depends on db_cluster_class.
    createTime string
    The creation time of the resource.
    dbClusterClass string
    The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
    dbClusterDescription string
    The DBCluster description.
    dbClusterId string
    The cluster ID.
    dbInstanceId string
    The instance ID.
    engine string
    The Engine of the DBCluster.
    engineVersion string
    The engine version of the DBCluster.
    id string
    memory number
    The memory resource amount of DBCluster. Depends on db_cluster_class.
    paramChangeLogs GetDbClustersClusterParamChangeLog[]
    The configuration change logs of parameters.
    params GetDbClustersClusterParam[]
    The details about each parameter in DBCluster returned.
    paymentType string
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    regionId string
    The ID of region for the cluster.
    status string
    The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    vpcId string
    The ID of the VPC for the cluster.
    zoneId string
    The ID of zone for the cluster.
    cache_size int
    The cache size for DBCluster.
    cpu int
    The cpu resource amount of DBCluster. Depends on db_cluster_class.
    create_time str
    The creation time of the resource.
    db_cluster_class str
    The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
    db_cluster_description str
    The DBCluster description.
    db_cluster_id str
    The cluster ID.
    db_instance_id str
    The instance ID.
    engine str
    The Engine of the DBCluster.
    engine_version str
    The engine version of the DBCluster.
    id str
    memory int
    The memory resource amount of DBCluster. Depends on db_cluster_class.
    param_change_logs Sequence[GetDbClustersClusterParamChangeLog]
    The configuration change logs of parameters.
    params Sequence[GetDbClustersClusterParam]
    The details about each parameter in DBCluster returned.
    payment_type str
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    region_id str
    The ID of region for the cluster.
    status str
    The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    vpc_id str
    The ID of the VPC for the cluster.
    zone_id str
    The ID of zone for the cluster.
    cacheSize Number
    The cache size for DBCluster.
    cpu Number
    The cpu resource amount of DBCluster. Depends on db_cluster_class.
    createTime String
    The creation time of the resource.
    dbClusterClass String
    The DBCluster class. db_cluster_class has a range of class from selectdb.xlarge to selectdb.256xlarge.
    dbClusterDescription String
    The DBCluster description.
    dbClusterId String
    The cluster ID.
    dbInstanceId String
    The instance ID.
    engine String
    The Engine of the DBCluster.
    engineVersion String
    The engine version of the DBCluster.
    id String
    memory Number
    The memory resource amount of DBCluster. Depends on db_cluster_class.
    paramChangeLogs List<Property Map>
    The configuration change logs of parameters.
    params List<Property Map>
    The details about each parameter in DBCluster returned.
    paymentType String
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    regionId String
    The ID of region for the cluster.
    status String
    The status of the DBCluster. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    vpcId String
    The ID of the VPC for the cluster.
    zoneId String
    The ID of zone for the cluster.

    GetDbClustersClusterParam

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

    GetDbClustersClusterParamChangeLog

    ConfigId int
    The id of parameter change.
    GmtCreated string
    When the parameter change is created.
    GmtModified string
    When the parameter change is modified.
    IsApplied int
    Whether the parameter changing is applied.
    Name string
    Changed parameter name.
    NewValue string
    The new value of parameter.
    OldValue string
    The old value of parameter.
    ConfigId int
    The id of parameter change.
    GmtCreated string
    When the parameter change is created.
    GmtModified string
    When the parameter change is modified.
    IsApplied int
    Whether the parameter changing is applied.
    Name string
    Changed parameter name.
    NewValue string
    The new value of parameter.
    OldValue string
    The old value of parameter.
    configId Integer
    The id of parameter change.
    gmtCreated String
    When the parameter change is created.
    gmtModified String
    When the parameter change is modified.
    isApplied Integer
    Whether the parameter changing is applied.
    name String
    Changed parameter name.
    newValue String
    The new value of parameter.
    oldValue String
    The old value of parameter.
    configId number
    The id of parameter change.
    gmtCreated string
    When the parameter change is created.
    gmtModified string
    When the parameter change is modified.
    isApplied number
    Whether the parameter changing is applied.
    name string
    Changed parameter name.
    newValue string
    The new value of parameter.
    oldValue string
    The old value of parameter.
    config_id int
    The id of parameter change.
    gmt_created str
    When the parameter change is created.
    gmt_modified str
    When the parameter change is modified.
    is_applied int
    Whether the parameter changing is applied.
    name str
    Changed parameter name.
    new_value str
    The new value of parameter.
    old_value str
    The old value of parameter.
    configId Number
    The id of parameter change.
    gmtCreated String
    When the parameter change is created.
    gmtModified String
    When the parameter change is modified.
    isApplied Number
    Whether the parameter changing is applied.
    name String
    Changed parameter name.
    newValue String
    The new value of parameter.
    oldValue 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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi