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

alicloud.selectdb.getDbInstances

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 DBInstance 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 defaultGetDbInstances = alicloud.selectdb.getDbInstancesOutput({
        ids: [defaultDbInstance.id],
    });
    export const dbInstance = defaultGetDbInstances.apply(defaultGetDbInstances => defaultGetDbInstances.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_get_db_instances = alicloud.selectdb.get_db_instances_output(ids=[default_db_instance.id])
    pulumi.export("dbInstance", default_get_db_instances.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
    		}
    		defaultGetDbInstances := selectdb.GetDbInstancesOutput(ctx, selectdb.GetDbInstancesOutputArgs{
    			Ids: pulumi.StringArray{
    				defaultDbInstance.ID(),
    			},
    		}, nil)
    		ctx.Export("dbInstance", defaultGetDbInstances.ApplyT(func(defaultGetDbInstances selectdb.GetDbInstancesResult) (*string, error) {
    			return &defaultGetDbInstances.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 defaultGetDbInstances = AliCloud.SelectDB.GetDbInstances.Invoke(new()
        {
            Ids = new[]
            {
                defaultDbInstance.Id,
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["dbInstance"] = defaultGetDbInstances.Apply(getDbInstancesResult => getDbInstancesResult.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.SelectdbFunctions;
    import com.pulumi.alicloud.selectdb.inputs.GetDbInstancesArgs;
    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());
    
            final var defaultGetDbInstances = SelectdbFunctions.getDbInstances(GetDbInstancesArgs.builder()
                .ids(defaultDbInstance.id())
                .build());
    
            ctx.export("dbInstance", defaultGetDbInstances.applyValue(getDbInstancesResult -> getDbInstancesResult).applyValue(defaultGetDbInstances -> defaultGetDbInstances.applyValue(getDbInstancesResult -> getDbInstancesResult.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}
    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}
      defaultGetDbInstances:
        fn::invoke:
          Function: alicloud:selectdb:getDbInstances
          Arguments:
            ids:
              - ${defaultDbInstance.id}
    outputs:
      dbInstance: ${defaultGetDbInstances.ids[0]}
    

    Using getDbInstances

    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 getDbInstances(args: GetDbInstancesArgs, opts?: InvokeOptions): Promise<GetDbInstancesResult>
    function getDbInstancesOutput(args: GetDbInstancesOutputArgs, opts?: InvokeOptions): Output<GetDbInstancesResult>
    def get_db_instances(ids: Optional[Sequence[str]] = None,
                         output_file: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDbInstancesResult
    def get_db_instances_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         output_file: Optional[pulumi.Input[str]] = None,
                         tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetDbInstancesResult]
    func GetDbInstances(ctx *Context, args *GetDbInstancesArgs, opts ...InvokeOption) (*GetDbInstancesResult, error)
    func GetDbInstancesOutput(ctx *Context, args *GetDbInstancesOutputArgs, opts ...InvokeOption) GetDbInstancesResultOutput

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

    public static class GetDbInstances 
    {
        public static Task<GetDbInstancesResult> InvokeAsync(GetDbInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetDbInstancesResult> Invoke(GetDbInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbInstancesResult> getDbInstances(GetDbInstancesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:selectdb/getDbInstances:getDbInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of DBInstance IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource. Used for instance searching.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    Ids []string
    A list of DBInstance IDs.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Tags map[string]string
    A mapping of tags to assign to the resource. Used for instance searching.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    ids List<String>
    A list of DBInstance IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    tags Map<String,String>
    A mapping of tags to assign to the resource. Used for instance searching.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    ids string[]
    A list of DBInstance IDs.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    tags {[key: string]: string}
    A mapping of tags to assign to the resource. Used for instance searching.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    ids Sequence[str]
    A list of DBInstance IDs.
    output_file str
    File name where to save data source results (after running pulumi preview).
    tags Mapping[str, str]
    A mapping of tags to assign to the resource. Used for instance searching.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
    ids List<String>
    A list of DBInstance IDs.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    tags Map<String>
    A mapping of tags to assign to the resource. Used for instance searching.

    • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
    • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.

    getDbInstances Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Instances List<Pulumi.AliCloud.SelectDB.Outputs.GetDbInstancesInstance>
    A list of SelectDB DBInstance. Each element contains the following attributes:
    OutputFile string
    Tags Dictionary<string, string>
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Instances []GetDbInstancesInstance
    A list of SelectDB DBInstance. Each element contains the following attributes:
    OutputFile string
    Tags map[string]string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    instances List<GetDbInstancesInstance>
    A list of SelectDB DBInstance. Each element contains the following attributes:
    outputFile String
    tags Map<String,String>
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    instances GetDbInstancesInstance[]
    A list of SelectDB DBInstance. Each element contains the following attributes:
    outputFile string
    tags {[key: string]: string}
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    instances Sequence[GetDbInstancesInstance]
    A list of SelectDB DBInstance. Each element contains the following attributes:
    output_file str
    tags Mapping[str, str]
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    instances List<Property Map>
    A list of SelectDB DBInstance. Each element contains the following attributes:
    outputFile String
    tags Map<String>

    Supporting Types

    GetDbInstancesInstance

    CacheSizePostpaid int
    The sum of cache size for every PayAsYouGo clusters in DBInstance.
    CacheSizePrepaid int
    The sum of cache size for every Subscription clusters in DBInstance.
    ClusterCountPostpaid int
    The sum of cluster counts for PayAsYouGo clusters in DBInstance.
    ClusterCountPrepaid int
    The sum of cluster counts for Subscription clusters in DBInstance.
    CpuPostpaid int
    The sum of cpu resource amount for every PayAsYouGo clusters in DBInstance.
    CpuPrepaid int
    The sum of cpu resource amount for every Subscription clusters in DBInstance.
    DbInstanceDescription string
    The DBInstance description.
    DbInstanceId string
    The instance ID.
    Engine string
    The Engine of the DBInstance.
    EngineMinorVersion string
    The engine minor version of the DBInstance.
    EngineVersion string
    The engine version of the DBInstance.
    GmtCreated string
    The time when DBInstance is created.
    GmtExpired string
    The time when DBInstance will be expired. Available on Subscription DBInstance.
    GmtModified string
    The time when DBInstance is modified.
    Id string
    LockMode string
    The lock mode of the instance. Set the value to lock, which specifies that the instance is locked when it automatically expires or has an overdue payment.
    LockReason string
    The reason why the instance is locked.
    MemoryPostpaid int
    The sum of memory resource amount offor every PayAsYouGo clusters in DBInstance.
    MemoryPrepaid int
    The sum of memory resource amount offor every Subscription clusters in DBInstance.
    PaymentType string
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    RegionId string
    The ID of region for DBInstance.
    Status string
    The status of the DBInstance. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    SubDomain string
    The sub domain of DBInstance.
    VpcId string
    The ID of the VPC for DBInstance.
    VswitchId string
    The ID of vswitch for DBInstance.
    ZoneId string
    The ID of zone for DBInstance.
    CacheSizePostpaid int
    The sum of cache size for every PayAsYouGo clusters in DBInstance.
    CacheSizePrepaid int
    The sum of cache size for every Subscription clusters in DBInstance.
    ClusterCountPostpaid int
    The sum of cluster counts for PayAsYouGo clusters in DBInstance.
    ClusterCountPrepaid int
    The sum of cluster counts for Subscription clusters in DBInstance.
    CpuPostpaid int
    The sum of cpu resource amount for every PayAsYouGo clusters in DBInstance.
    CpuPrepaid int
    The sum of cpu resource amount for every Subscription clusters in DBInstance.
    DbInstanceDescription string
    The DBInstance description.
    DbInstanceId string
    The instance ID.
    Engine string
    The Engine of the DBInstance.
    EngineMinorVersion string
    The engine minor version of the DBInstance.
    EngineVersion string
    The engine version of the DBInstance.
    GmtCreated string
    The time when DBInstance is created.
    GmtExpired string
    The time when DBInstance will be expired. Available on Subscription DBInstance.
    GmtModified string
    The time when DBInstance is modified.
    Id string
    LockMode string
    The lock mode of the instance. Set the value to lock, which specifies that the instance is locked when it automatically expires or has an overdue payment.
    LockReason string
    The reason why the instance is locked.
    MemoryPostpaid int
    The sum of memory resource amount offor every PayAsYouGo clusters in DBInstance.
    MemoryPrepaid int
    The sum of memory resource amount offor every Subscription clusters in DBInstance.
    PaymentType string
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    RegionId string
    The ID of region for DBInstance.
    Status string
    The status of the DBInstance. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    SubDomain string
    The sub domain of DBInstance.
    VpcId string
    The ID of the VPC for DBInstance.
    VswitchId string
    The ID of vswitch for DBInstance.
    ZoneId string
    The ID of zone for DBInstance.
    cacheSizePostpaid Integer
    The sum of cache size for every PayAsYouGo clusters in DBInstance.
    cacheSizePrepaid Integer
    The sum of cache size for every Subscription clusters in DBInstance.
    clusterCountPostpaid Integer
    The sum of cluster counts for PayAsYouGo clusters in DBInstance.
    clusterCountPrepaid Integer
    The sum of cluster counts for Subscription clusters in DBInstance.
    cpuPostpaid Integer
    The sum of cpu resource amount for every PayAsYouGo clusters in DBInstance.
    cpuPrepaid Integer
    The sum of cpu resource amount for every Subscription clusters in DBInstance.
    dbInstanceDescription String
    The DBInstance description.
    dbInstanceId String
    The instance ID.
    engine String
    The Engine of the DBInstance.
    engineMinorVersion String
    The engine minor version of the DBInstance.
    engineVersion String
    The engine version of the DBInstance.
    gmtCreated String
    The time when DBInstance is created.
    gmtExpired String
    The time when DBInstance will be expired. Available on Subscription DBInstance.
    gmtModified String
    The time when DBInstance is modified.
    id String
    lockMode String
    The lock mode of the instance. Set the value to lock, which specifies that the instance is locked when it automatically expires or has an overdue payment.
    lockReason String
    The reason why the instance is locked.
    memoryPostpaid Integer
    The sum of memory resource amount offor every PayAsYouGo clusters in DBInstance.
    memoryPrepaid Integer
    The sum of memory resource amount offor every Subscription clusters in DBInstance.
    paymentType String
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    regionId String
    The ID of region for DBInstance.
    status String
    The status of the DBInstance. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    subDomain String
    The sub domain of DBInstance.
    vpcId String
    The ID of the VPC for DBInstance.
    vswitchId String
    The ID of vswitch for DBInstance.
    zoneId String
    The ID of zone for DBInstance.
    cacheSizePostpaid number
    The sum of cache size for every PayAsYouGo clusters in DBInstance.
    cacheSizePrepaid number
    The sum of cache size for every Subscription clusters in DBInstance.
    clusterCountPostpaid number
    The sum of cluster counts for PayAsYouGo clusters in DBInstance.
    clusterCountPrepaid number
    The sum of cluster counts for Subscription clusters in DBInstance.
    cpuPostpaid number
    The sum of cpu resource amount for every PayAsYouGo clusters in DBInstance.
    cpuPrepaid number
    The sum of cpu resource amount for every Subscription clusters in DBInstance.
    dbInstanceDescription string
    The DBInstance description.
    dbInstanceId string
    The instance ID.
    engine string
    The Engine of the DBInstance.
    engineMinorVersion string
    The engine minor version of the DBInstance.
    engineVersion string
    The engine version of the DBInstance.
    gmtCreated string
    The time when DBInstance is created.
    gmtExpired string
    The time when DBInstance will be expired. Available on Subscription DBInstance.
    gmtModified string
    The time when DBInstance is modified.
    id string
    lockMode string
    The lock mode of the instance. Set the value to lock, which specifies that the instance is locked when it automatically expires or has an overdue payment.
    lockReason string
    The reason why the instance is locked.
    memoryPostpaid number
    The sum of memory resource amount offor every PayAsYouGo clusters in DBInstance.
    memoryPrepaid number
    The sum of memory resource amount offor every Subscription clusters in DBInstance.
    paymentType string
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    regionId string
    The ID of region for DBInstance.
    status string
    The status of the DBInstance. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    subDomain string
    The sub domain of DBInstance.
    vpcId string
    The ID of the VPC for DBInstance.
    vswitchId string
    The ID of vswitch for DBInstance.
    zoneId string
    The ID of zone for DBInstance.
    cache_size_postpaid int
    The sum of cache size for every PayAsYouGo clusters in DBInstance.
    cache_size_prepaid int
    The sum of cache size for every Subscription clusters in DBInstance.
    cluster_count_postpaid int
    The sum of cluster counts for PayAsYouGo clusters in DBInstance.
    cluster_count_prepaid int
    The sum of cluster counts for Subscription clusters in DBInstance.
    cpu_postpaid int
    The sum of cpu resource amount for every PayAsYouGo clusters in DBInstance.
    cpu_prepaid int
    The sum of cpu resource amount for every Subscription clusters in DBInstance.
    db_instance_description str
    The DBInstance description.
    db_instance_id str
    The instance ID.
    engine str
    The Engine of the DBInstance.
    engine_minor_version str
    The engine minor version of the DBInstance.
    engine_version str
    The engine version of the DBInstance.
    gmt_created str
    The time when DBInstance is created.
    gmt_expired str
    The time when DBInstance will be expired. Available on Subscription DBInstance.
    gmt_modified str
    The time when DBInstance is modified.
    id str
    lock_mode str
    The lock mode of the instance. Set the value to lock, which specifies that the instance is locked when it automatically expires or has an overdue payment.
    lock_reason str
    The reason why the instance is locked.
    memory_postpaid int
    The sum of memory resource amount offor every PayAsYouGo clusters in DBInstance.
    memory_prepaid int
    The sum of memory resource amount offor every Subscription clusters in DBInstance.
    payment_type str
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    region_id str
    The ID of region for DBInstance.
    status str
    The status of the DBInstance. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    sub_domain str
    The sub domain of DBInstance.
    vpc_id str
    The ID of the VPC for DBInstance.
    vswitch_id str
    The ID of vswitch for DBInstance.
    zone_id str
    The ID of zone for DBInstance.
    cacheSizePostpaid Number
    The sum of cache size for every PayAsYouGo clusters in DBInstance.
    cacheSizePrepaid Number
    The sum of cache size for every Subscription clusters in DBInstance.
    clusterCountPostpaid Number
    The sum of cluster counts for PayAsYouGo clusters in DBInstance.
    clusterCountPrepaid Number
    The sum of cluster counts for Subscription clusters in DBInstance.
    cpuPostpaid Number
    The sum of cpu resource amount for every PayAsYouGo clusters in DBInstance.
    cpuPrepaid Number
    The sum of cpu resource amount for every Subscription clusters in DBInstance.
    dbInstanceDescription String
    The DBInstance description.
    dbInstanceId String
    The instance ID.
    engine String
    The Engine of the DBInstance.
    engineMinorVersion String
    The engine minor version of the DBInstance.
    engineVersion String
    The engine version of the DBInstance.
    gmtCreated String
    The time when DBInstance is created.
    gmtExpired String
    The time when DBInstance will be expired. Available on Subscription DBInstance.
    gmtModified String
    The time when DBInstance is modified.
    id String
    lockMode String
    The lock mode of the instance. Set the value to lock, which specifies that the instance is locked when it automatically expires or has an overdue payment.
    lockReason String
    The reason why the instance is locked.
    memoryPostpaid Number
    The sum of memory resource amount offor every PayAsYouGo clusters in DBInstance.
    memoryPrepaid Number
    The sum of memory resource amount offor every Subscription clusters in DBInstance.
    paymentType String
    The payment type of the resource. Valid values: PayAsYouGo,Subscription.
    regionId String
    The ID of region for DBInstance.
    status String
    The status of the DBInstance. Valid values: ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING.
    subDomain String
    The sub domain of DBInstance.
    vpcId String
    The ID of the VPC for DBInstance.
    vswitchId String
    The ID of vswitch for DBInstance.
    zoneId String
    The ID of zone for DBInstance.

    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