Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 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",
engineMinorVersion: "3.0.12",
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",
engine_minor_version="3.0.12",
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"),
EngineMinorVersion: pulumi.String("3.0.12"),
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",
EngineMinorVersion = "3.0.12",
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.ids()[0])
.zoneId(default_.zones()[0].id())
.build());
var defaultDbInstance = new DbInstance("defaultDbInstance", DbInstanceArgs.builder()
.dbInstanceClass("selectdb.xlarge")
.dbInstanceDescription(name)
.cacheSize(200)
.paymentType("PayAsYouGo")
.engineMinorVersion("3.0.12")
.vpcId(defaultGetSwitches.vswitches()[0].vpcId())
.zoneId(defaultGetSwitches.vswitches()[0].zoneId())
.vswitchId(defaultGetSwitches.vswitches()[0].id())
.build());
final var defaultGetDbInstances = SelectdbFunctions.getDbInstances(GetDbInstancesArgs.builder()
.ids(defaultDbInstance.id())
.build());
ctx.export("dbInstance", defaultGetDbInstances.applyValue(_defaultGetDbInstances -> _defaultGetDbInstances.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
engineMinorVersion: 3.0.12
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)
public static Output<GetDbInstancesResult> getDbInstances(GetDbInstancesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:selectdb/getDbInstances:getDbInstances
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of DBInstance IDs.
- Output
File string - File name where to save data source results (after running
pulumi preview). - 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.
- Output
File string - File name where to save data source results (after running
pulumi preview). - 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.
- output
File String - File name where to save data source results (after running
pulumi preview). - 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.
- output
File string - File name where to save data source results (after running
pulumi preview). - {[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). - 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.
- output
File String - File name where to save data source results (after running
pulumi preview). - 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.
Ali Cloud. Select DB. Outputs. Get Db Instances Instance> - A list of SelectDB DBInstance. Each element contains the following attributes:
- Output
File string - Dictionary<string, string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Instances
[]Get
Db Instances Instance - A list of SelectDB DBInstance. Each element contains the following attributes:
- Output
File string - map[string]string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- instances
List<Get
Db Instances Instance> - A list of SelectDB DBInstance. Each element contains the following attributes:
- output
File String - Map<String,String>
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- instances
Get
Db Instances Instance[] - A list of SelectDB DBInstance. Each element contains the following attributes:
- output
File string - {[key: string]: string}
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- instances
Sequence[Get
Db Instances Instance] - A list of SelectDB DBInstance. Each element contains the following attributes:
- output_
file str - 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:
- output
File String - Map<String>
Supporting Types
GetDbInstancesInstance
- Cache
Size intPostpaid - The sum of cache size for every
PayAsYouGoclusters in DBInstance. - Cache
Size intPrepaid - The sum of cache size for every
Subscriptionclusters in DBInstance. - Cluster
Count intPostpaid - The sum of cluster counts for
PayAsYouGoclusters in DBInstance. - Cluster
Count intPrepaid - The sum of cluster counts for
Subscriptionclusters in DBInstance. - Cpu
Postpaid int - The sum of cpu resource amount for every
PayAsYouGoclusters in DBInstance. - Cpu
Prepaid int - The sum of cpu resource amount for every
Subscriptionclusters in DBInstance. - Db
Instance stringDescription - The DBInstance description.
- Db
Instance stringId - The instance ID.
- Engine string
- The Engine of the DBInstance.
- Engine
Minor stringVersion - The engine minor version of the DBInstance.
- Engine
Version string - The engine version of the DBInstance.
- Gmt
Created string - The time when DBInstance is created.
- Gmt
Expired string - The time when DBInstance will be expired. Available on
SubscriptionDBInstance. - Gmt
Modified string - The time when DBInstance is modified.
- Id string
- Lock
Mode 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.
- Lock
Reason string - The reason why the instance is locked.
- Memory
Postpaid int - The sum of memory resource amount offor every
PayAsYouGoclusters in DBInstance. - Memory
Prepaid int - The sum of memory resource amount offor every
Subscriptionclusters in DBInstance. - Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo,Subscription. - Region
Id string - The ID of region for DBInstance.
- Status string
- The status of the DBInstance. Valid values:
ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING. - Sub
Domain string - The sub domain of DBInstance.
- Vpc
Id string - The ID of the VPC for DBInstance.
- Vswitch
Id string - The ID of vswitch for DBInstance.
- Zone
Id string - The ID of zone for DBInstance.
- Cache
Size intPostpaid - The sum of cache size for every
PayAsYouGoclusters in DBInstance. - Cache
Size intPrepaid - The sum of cache size for every
Subscriptionclusters in DBInstance. - Cluster
Count intPostpaid - The sum of cluster counts for
PayAsYouGoclusters in DBInstance. - Cluster
Count intPrepaid - The sum of cluster counts for
Subscriptionclusters in DBInstance. - Cpu
Postpaid int - The sum of cpu resource amount for every
PayAsYouGoclusters in DBInstance. - Cpu
Prepaid int - The sum of cpu resource amount for every
Subscriptionclusters in DBInstance. - Db
Instance stringDescription - The DBInstance description.
- Db
Instance stringId - The instance ID.
- Engine string
- The Engine of the DBInstance.
- Engine
Minor stringVersion - The engine minor version of the DBInstance.
- Engine
Version string - The engine version of the DBInstance.
- Gmt
Created string - The time when DBInstance is created.
- Gmt
Expired string - The time when DBInstance will be expired. Available on
SubscriptionDBInstance. - Gmt
Modified string - The time when DBInstance is modified.
- Id string
- Lock
Mode 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.
- Lock
Reason string - The reason why the instance is locked.
- Memory
Postpaid int - The sum of memory resource amount offor every
PayAsYouGoclusters in DBInstance. - Memory
Prepaid int - The sum of memory resource amount offor every
Subscriptionclusters in DBInstance. - Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo,Subscription. - Region
Id string - The ID of region for DBInstance.
- Status string
- The status of the DBInstance. Valid values:
ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING. - Sub
Domain string - The sub domain of DBInstance.
- Vpc
Id string - The ID of the VPC for DBInstance.
- Vswitch
Id string - The ID of vswitch for DBInstance.
- Zone
Id string - The ID of zone for DBInstance.
- cache
Size IntegerPostpaid - The sum of cache size for every
PayAsYouGoclusters in DBInstance. - cache
Size IntegerPrepaid - The sum of cache size for every
Subscriptionclusters in DBInstance. - cluster
Count IntegerPostpaid - The sum of cluster counts for
PayAsYouGoclusters in DBInstance. - cluster
Count IntegerPrepaid - The sum of cluster counts for
Subscriptionclusters in DBInstance. - cpu
Postpaid Integer - The sum of cpu resource amount for every
PayAsYouGoclusters in DBInstance. - cpu
Prepaid Integer - The sum of cpu resource amount for every
Subscriptionclusters in DBInstance. - db
Instance StringDescription - The DBInstance description.
- db
Instance StringId - The instance ID.
- engine String
- The Engine of the DBInstance.
- engine
Minor StringVersion - The engine minor version of the DBInstance.
- engine
Version String - The engine version of the DBInstance.
- gmt
Created String - The time when DBInstance is created.
- gmt
Expired String - The time when DBInstance will be expired. Available on
SubscriptionDBInstance. - gmt
Modified String - The time when DBInstance is modified.
- id String
- lock
Mode 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.
- lock
Reason String - The reason why the instance is locked.
- memory
Postpaid Integer - The sum of memory resource amount offor every
PayAsYouGoclusters in DBInstance. - memory
Prepaid Integer - The sum of memory resource amount offor every
Subscriptionclusters in DBInstance. - payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo,Subscription. - region
Id String - The ID of region for DBInstance.
- status String
- The status of the DBInstance. Valid values:
ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING. - sub
Domain String - The sub domain of DBInstance.
- vpc
Id String - The ID of the VPC for DBInstance.
- vswitch
Id String - The ID of vswitch for DBInstance.
- zone
Id String - The ID of zone for DBInstance.
- cache
Size numberPostpaid - The sum of cache size for every
PayAsYouGoclusters in DBInstance. - cache
Size numberPrepaid - The sum of cache size for every
Subscriptionclusters in DBInstance. - cluster
Count numberPostpaid - The sum of cluster counts for
PayAsYouGoclusters in DBInstance. - cluster
Count numberPrepaid - The sum of cluster counts for
Subscriptionclusters in DBInstance. - cpu
Postpaid number - The sum of cpu resource amount for every
PayAsYouGoclusters in DBInstance. - cpu
Prepaid number - The sum of cpu resource amount for every
Subscriptionclusters in DBInstance. - db
Instance stringDescription - The DBInstance description.
- db
Instance stringId - The instance ID.
- engine string
- The Engine of the DBInstance.
- engine
Minor stringVersion - The engine minor version of the DBInstance.
- engine
Version string - The engine version of the DBInstance.
- gmt
Created string - The time when DBInstance is created.
- gmt
Expired string - The time when DBInstance will be expired. Available on
SubscriptionDBInstance. - gmt
Modified string - The time when DBInstance is modified.
- id string
- lock
Mode 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.
- lock
Reason string - The reason why the instance is locked.
- memory
Postpaid number - The sum of memory resource amount offor every
PayAsYouGoclusters in DBInstance. - memory
Prepaid number - The sum of memory resource amount offor every
Subscriptionclusters in DBInstance. - payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo,Subscription. - region
Id string - The ID of region for DBInstance.
- status string
- The status of the DBInstance. Valid values:
ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING. - sub
Domain string - The sub domain of DBInstance.
- vpc
Id string - The ID of the VPC for DBInstance.
- vswitch
Id string - The ID of vswitch for DBInstance.
- zone
Id string - The ID of zone for DBInstance.
- cache_
size_ intpostpaid - The sum of cache size for every
PayAsYouGoclusters in DBInstance. - cache_
size_ intprepaid - The sum of cache size for every
Subscriptionclusters in DBInstance. - cluster_
count_ intpostpaid - The sum of cluster counts for
PayAsYouGoclusters in DBInstance. - cluster_
count_ intprepaid - The sum of cluster counts for
Subscriptionclusters in DBInstance. - cpu_
postpaid int - The sum of cpu resource amount for every
PayAsYouGoclusters in DBInstance. - cpu_
prepaid int - The sum of cpu resource amount for every
Subscriptionclusters in DBInstance. - db_
instance_ strdescription - The DBInstance description.
- db_
instance_ strid - The instance ID.
- engine str
- The Engine of the DBInstance.
- engine_
minor_ strversion - 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
SubscriptionDBInstance. - 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
PayAsYouGoclusters in DBInstance. - memory_
prepaid int - The sum of memory resource amount offor every
Subscriptionclusters 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.
- cache
Size NumberPostpaid - The sum of cache size for every
PayAsYouGoclusters in DBInstance. - cache
Size NumberPrepaid - The sum of cache size for every
Subscriptionclusters in DBInstance. - cluster
Count NumberPostpaid - The sum of cluster counts for
PayAsYouGoclusters in DBInstance. - cluster
Count NumberPrepaid - The sum of cluster counts for
Subscriptionclusters in DBInstance. - cpu
Postpaid Number - The sum of cpu resource amount for every
PayAsYouGoclusters in DBInstance. - cpu
Prepaid Number - The sum of cpu resource amount for every
Subscriptionclusters in DBInstance. - db
Instance StringDescription - The DBInstance description.
- db
Instance StringId - The instance ID.
- engine String
- The Engine of the DBInstance.
- engine
Minor StringVersion - The engine minor version of the DBInstance.
- engine
Version String - The engine version of the DBInstance.
- gmt
Created String - The time when DBInstance is created.
- gmt
Expired String - The time when DBInstance will be expired. Available on
SubscriptionDBInstance. - gmt
Modified String - The time when DBInstance is modified.
- id String
- lock
Mode 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.
- lock
Reason String - The reason why the instance is locked.
- memory
Postpaid Number - The sum of memory resource amount offor every
PayAsYouGoclusters in DBInstance. - memory
Prepaid Number - The sum of memory resource amount offor every
Subscriptionclusters in DBInstance. - payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo,Subscription. - region
Id String - The ID of region for DBInstance.
- status String
- The status of the DBInstance. Valid values:
ACTIVATION,CREATING,DELETING,RESTARTING,ORDER_PREPARING. - sub
Domain String - The sub domain of DBInstance.
- vpc
Id String - The ID of the VPC for DBInstance.
- vswitch
Id String - The ID of vswitch for DBInstance.
- zone
Id 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
alicloudTerraform Provider.
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
