alicloud.selectdb.DbInstance
Explore with Pulumi AI
Provides a SelectDB DBInstance resource.
For information about SelectDB DBInstance and how to use it, see What is DBInstance.
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),
});
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)
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
}
_, 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
}
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),
});
});
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 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());
}
}
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}
Create DbInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DbInstance(name: string, args: DbInstanceArgs, opts?: CustomResourceOptions);
@overload
def DbInstance(resource_name: str,
args: DbInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DbInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
vpc_id: Optional[str] = None,
db_instance_class: Optional[str] = None,
db_instance_description: Optional[str] = None,
zone_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
payment_type: Optional[str] = None,
cache_size: Optional[int] = None,
period: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
upgraded_engine_minor_version: Optional[str] = None,
period_time: Optional[int] = None,
enable_public_network: Optional[bool] = None,
desired_security_ip_lists: Optional[Sequence[DbInstanceDesiredSecurityIpListArgs]] = None)
func NewDbInstance(ctx *Context, name string, args DbInstanceArgs, opts ...ResourceOption) (*DbInstance, error)
public DbInstance(string name, DbInstanceArgs args, CustomResourceOptions? opts = null)
public DbInstance(String name, DbInstanceArgs args)
public DbInstance(String name, DbInstanceArgs args, CustomResourceOptions options)
type: alicloud:selectdb:DbInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DbInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DbInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DbInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var alicloudDbInstanceResource = new AliCloud.SelectDB.DbInstance("alicloudDbInstanceResource", new()
{
VpcId = "string",
DbInstanceClass = "string",
DbInstanceDescription = "string",
ZoneId = "string",
VswitchId = "string",
PaymentType = "string",
CacheSize = 0,
Period = "string",
Tags =
{
{ "string", "string" },
},
UpgradedEngineMinorVersion = "string",
PeriodTime = 0,
EnablePublicNetwork = false,
DesiredSecurityIpLists = new[]
{
new AliCloud.SelectDB.Inputs.DbInstanceDesiredSecurityIpListArgs
{
GroupName = "string",
SecurityIpList = "string",
},
},
});
example, err := selectdb.NewDbInstance(ctx, "alicloudDbInstanceResource", &selectdb.DbInstanceArgs{
VpcId: pulumi.String("string"),
DbInstanceClass: pulumi.String("string"),
DbInstanceDescription: pulumi.String("string"),
ZoneId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
PaymentType: pulumi.String("string"),
CacheSize: pulumi.Int(0),
Period: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
UpgradedEngineMinorVersion: pulumi.String("string"),
PeriodTime: pulumi.Int(0),
EnablePublicNetwork: pulumi.Bool(false),
DesiredSecurityIpLists: selectdb.DbInstanceDesiredSecurityIpListArray{
&selectdb.DbInstanceDesiredSecurityIpListArgs{
GroupName: pulumi.String("string"),
SecurityIpList: pulumi.String("string"),
},
},
})
var alicloudDbInstanceResource = new DbInstance("alicloudDbInstanceResource", DbInstanceArgs.builder()
.vpcId("string")
.dbInstanceClass("string")
.dbInstanceDescription("string")
.zoneId("string")
.vswitchId("string")
.paymentType("string")
.cacheSize(0)
.period("string")
.tags(Map.of("string", "string"))
.upgradedEngineMinorVersion("string")
.periodTime(0)
.enablePublicNetwork(false)
.desiredSecurityIpLists(DbInstanceDesiredSecurityIpListArgs.builder()
.groupName("string")
.securityIpList("string")
.build())
.build());
alicloud_db_instance_resource = alicloud.selectdb.DbInstance("alicloudDbInstanceResource",
vpc_id="string",
db_instance_class="string",
db_instance_description="string",
zone_id="string",
vswitch_id="string",
payment_type="string",
cache_size=0,
period="string",
tags={
"string": "string",
},
upgraded_engine_minor_version="string",
period_time=0,
enable_public_network=False,
desired_security_ip_lists=[{
"group_name": "string",
"security_ip_list": "string",
}])
const alicloudDbInstanceResource = new alicloud.selectdb.DbInstance("alicloudDbInstanceResource", {
vpcId: "string",
dbInstanceClass: "string",
dbInstanceDescription: "string",
zoneId: "string",
vswitchId: "string",
paymentType: "string",
cacheSize: 0,
period: "string",
tags: {
string: "string",
},
upgradedEngineMinorVersion: "string",
periodTime: 0,
enablePublicNetwork: false,
desiredSecurityIpLists: [{
groupName: "string",
securityIpList: "string",
}],
});
type: alicloud:selectdb:DbInstance
properties:
cacheSize: 0
dbInstanceClass: string
dbInstanceDescription: string
desiredSecurityIpLists:
- groupName: string
securityIpList: string
enablePublicNetwork: false
paymentType: string
period: string
periodTime: 0
tags:
string: string
upgradedEngineMinorVersion: string
vpcId: string
vswitchId: string
zoneId: string
DbInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DbInstance resource accepts the following input properties:
- Cache
Size int - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- Db
Instance stringClass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - Db
Instance stringDescription - The DBInstance description.
- Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - 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.
- Desired
Security List<Pulumi.Ip Lists Ali Cloud. Select DB. Inputs. Db Instance Desired Security Ip List> - The modified IP address whitelists. See
desired_security_ip_lists
below. - Enable
Public boolNetwork - If DBInstance need to open public network, set it to
true
. - Period string
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - Period
Time int - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- 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.
- Upgraded
Engine stringMinor Version - The DBInstance minor version want to upgraded to.
- Cache
Size int - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- Db
Instance stringClass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - Db
Instance stringDescription - The DBInstance description.
- Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - 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.
- Desired
Security []DbIp Lists Instance Desired Security Ip List Args - The modified IP address whitelists. See
desired_security_ip_lists
below. - Enable
Public boolNetwork - If DBInstance need to open public network, set it to
true
. - Period string
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - Period
Time int - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - map[string]string
- A mapping of tags to assign to the resource.
- 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.
- Upgraded
Engine stringMinor Version - The DBInstance minor version want to upgraded to.
- cache
Size Integer - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- db
Instance StringClass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - db
Instance StringDescription - The DBInstance description.
- payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - 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.
- desired
Security List<DbIp Lists Instance Desired Security Ip List> - The modified IP address whitelists. See
desired_security_ip_lists
below. - enable
Public BooleanNetwork - If DBInstance need to open public network, set it to
true
. - period String
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - period
Time Integer - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - Map<String,String>
- A mapping of tags to assign to the resource.
- 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.
- upgraded
Engine StringMinor Version - The DBInstance minor version want to upgraded to.
- cache
Size number - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- db
Instance stringClass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - db
Instance stringDescription - The DBInstance description.
- payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - 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.
- desired
Security DbIp Lists Instance Desired Security Ip List[] - The modified IP address whitelists. See
desired_security_ip_lists
below. - enable
Public booleanNetwork - If DBInstance need to open public network, set it to
true
. - period string
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - period
Time number - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- 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.
- upgraded
Engine stringMinor Version - The DBInstance minor version want to upgraded to.
- cache_
size int - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- db_
instance_ strclass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - db_
instance_ strdescription - The DBInstance description.
- payment_
type str - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - 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.
- desired_
security_ Sequence[Dbip_ lists Instance Desired Security Ip List Args] - The modified IP address whitelists. See
desired_security_ip_lists
below. - enable_
public_ boolnetwork - If DBInstance need to open public network, set it to
true
. - period str
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - period_
time int - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- 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.
- upgraded_
engine_ strminor_ version - The DBInstance minor version want to upgraded to.
- cache
Size Number - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- db
Instance StringClass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - db
Instance StringDescription - The DBInstance description.
- payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - 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.
- desired
Security List<Property Map>Ip Lists - The modified IP address whitelists. See
desired_security_ip_lists
below. - enable
Public BooleanNetwork - If DBInstance need to open public network, set it to
true
. - period String
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - period
Time Number - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - Map<String>
- A mapping of tags to assign to the resource.
- 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.
- upgraded
Engine StringMinor Version - The DBInstance minor version want to upgraded to.
Outputs
All input properties are implicitly available as output properties. Additionally, the DbInstance resource produces the following output properties:
- Cache
Size intPostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - Cache
Size intPrepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - Cluster
Count intPostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - Cluster
Count intPrepaid - 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. - Engine string
- The engine of DBInstance. Always
selectdb
. - Engine
Minor stringVersion - The current DBInstance minor version.
- Gmt
Created string - The time when DBInstance is created.
- Gmt
Expired string - The time when DBInstance will be expired. Available on
Subscription
DBInstance. - Gmt
Modified string - The time when DBInstance is modified.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Net List<Pulumi.Infos Ali Cloud. Select DB. Outputs. Db Instance Instance Net Info> - The net infos for instances.
- 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
PayAsYouGo
clusters in DBInstance. - Memory
Prepaid int - The sum of memory resource amount offor every
Subscription
clusters in DBInstance. - Region
Id string - The region ID of the instance.
- Security
Ip List<Pulumi.Lists Ali Cloud. Select DB. Outputs. Db Instance Security Ip List> - The details about each IP address whitelist returned.
- Status string
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - Sub
Domain string - The sub domain of DBInstance.
- Cache
Size intPostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - Cache
Size intPrepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - Cluster
Count intPostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - Cluster
Count intPrepaid - 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. - Engine string
- The engine of DBInstance. Always
selectdb
. - Engine
Minor stringVersion - The current DBInstance minor version.
- Gmt
Created string - The time when DBInstance is created.
- Gmt
Expired string - The time when DBInstance will be expired. Available on
Subscription
DBInstance. - Gmt
Modified string - The time when DBInstance is modified.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Net []DbInfos Instance Instance Net Info - The net infos for instances.
- 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
PayAsYouGo
clusters in DBInstance. - Memory
Prepaid int - The sum of memory resource amount offor every
Subscription
clusters in DBInstance. - Region
Id string - The region ID of the instance.
- Security
Ip []DbLists Instance Security Ip List - The details about each IP address whitelist returned.
- Status string
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - Sub
Domain string - The sub domain of DBInstance.
- cache
Size IntegerPostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - cache
Size IntegerPrepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - cluster
Count IntegerPostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - cluster
Count IntegerPrepaid - The sum of cluster counts for
Subscription
clusters in DBInstance. - cpu
Postpaid Integer - The sum of cpu resource amount for every
PayAsYouGo
clusters in DBInstance. - cpu
Prepaid Integer - The sum of cpu resource amount for every
Subscription
clusters in DBInstance. - engine String
- The engine of DBInstance. Always
selectdb
. - engine
Minor StringVersion - The current DBInstance minor version.
- gmt
Created String - The time when DBInstance is created.
- gmt
Expired String - The time when DBInstance will be expired. Available on
Subscription
DBInstance. - gmt
Modified String - The time when DBInstance is modified.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Net List<DbInfos Instance Instance Net Info> - The net infos for instances.
- 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
PayAsYouGo
clusters in DBInstance. - memory
Prepaid Integer - The sum of memory resource amount offor every
Subscription
clusters in DBInstance. - region
Id String - The region ID of the instance.
- security
Ip List<DbLists Instance Security Ip List> - The details about each IP address whitelist returned.
- status String
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - sub
Domain String - The sub domain of DBInstance.
- cache
Size numberPostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - cache
Size numberPrepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - cluster
Count numberPostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - cluster
Count numberPrepaid - The sum of cluster counts for
Subscription
clusters in DBInstance. - cpu
Postpaid number - The sum of cpu resource amount for every
PayAsYouGo
clusters in DBInstance. - cpu
Prepaid number - The sum of cpu resource amount for every
Subscription
clusters in DBInstance. - engine string
- The engine of DBInstance. Always
selectdb
. - engine
Minor stringVersion - The current DBInstance minor version.
- gmt
Created string - The time when DBInstance is created.
- gmt
Expired string - The time when DBInstance will be expired. Available on
Subscription
DBInstance. - gmt
Modified string - The time when DBInstance is modified.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Net DbInfos Instance Instance Net Info[] - The net infos for instances.
- 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
PayAsYouGo
clusters in DBInstance. - memory
Prepaid number - The sum of memory resource amount offor every
Subscription
clusters in DBInstance. - region
Id string - The region ID of the instance.
- security
Ip DbLists Instance Security Ip List[] - The details about each IP address whitelist returned.
- status string
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - sub
Domain string - The sub domain of DBInstance.
- cache_
size_ intpostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - cache_
size_ intprepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - cluster_
count_ intpostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - cluster_
count_ intprepaid - 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. - engine str
- The engine of DBInstance. Always
selectdb
. - engine_
minor_ strversion - The current DBInstance minor version.
- 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
- The provider-assigned unique ID for this managed resource.
- instance_
net_ Sequence[Dbinfos Instance Instance Net Info] - The net infos for instances.
- 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. - region_
id str - The region ID of the instance.
- security_
ip_ Sequence[Dblists Instance Security Ip List] - The details about each IP address whitelist returned.
- status str
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - sub_
domain str - The sub domain of DBInstance.
- cache
Size NumberPostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - cache
Size NumberPrepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - cluster
Count NumberPostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - cluster
Count NumberPrepaid - The sum of cluster counts for
Subscription
clusters in DBInstance. - cpu
Postpaid Number - The sum of cpu resource amount for every
PayAsYouGo
clusters in DBInstance. - cpu
Prepaid Number - The sum of cpu resource amount for every
Subscription
clusters in DBInstance. - engine String
- The engine of DBInstance. Always
selectdb
. - engine
Minor StringVersion - The current DBInstance minor version.
- gmt
Created String - The time when DBInstance is created.
- gmt
Expired String - The time when DBInstance will be expired. Available on
Subscription
DBInstance. - gmt
Modified String - The time when DBInstance is modified.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Net List<Property Map>Infos - The net infos for instances.
- 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
PayAsYouGo
clusters in DBInstance. - memory
Prepaid Number - The sum of memory resource amount offor every
Subscription
clusters in DBInstance. - region
Id String - The region ID of the instance.
- security
Ip List<Property Map>Lists - The details about each IP address whitelist returned.
- status String
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - sub
Domain String - The sub domain of DBInstance.
Look up Existing DbInstance Resource
Get an existing DbInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DbInstanceState, opts?: CustomResourceOptions): DbInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cache_size: Optional[int] = None,
cache_size_postpaid: Optional[int] = None,
cache_size_prepaid: Optional[int] = None,
cluster_count_postpaid: Optional[int] = None,
cluster_count_prepaid: Optional[int] = None,
cpu_postpaid: Optional[int] = None,
cpu_prepaid: Optional[int] = None,
db_instance_class: Optional[str] = None,
db_instance_description: Optional[str] = None,
desired_security_ip_lists: Optional[Sequence[DbInstanceDesiredSecurityIpListArgs]] = None,
enable_public_network: Optional[bool] = None,
engine: Optional[str] = None,
engine_minor_version: Optional[str] = None,
gmt_created: Optional[str] = None,
gmt_expired: Optional[str] = None,
gmt_modified: Optional[str] = None,
instance_net_infos: Optional[Sequence[DbInstanceInstanceNetInfoArgs]] = None,
lock_mode: Optional[str] = None,
lock_reason: Optional[str] = None,
memory_postpaid: Optional[int] = None,
memory_prepaid: Optional[int] = None,
payment_type: Optional[str] = None,
period: Optional[str] = None,
period_time: Optional[int] = None,
region_id: Optional[str] = None,
security_ip_lists: Optional[Sequence[DbInstanceSecurityIpListArgs]] = None,
status: Optional[str] = None,
sub_domain: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
upgraded_engine_minor_version: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> DbInstance
func GetDbInstance(ctx *Context, name string, id IDInput, state *DbInstanceState, opts ...ResourceOption) (*DbInstance, error)
public static DbInstance Get(string name, Input<string> id, DbInstanceState? state, CustomResourceOptions? opts = null)
public static DbInstance get(String name, Output<String> id, DbInstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cache
Size int - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- Cache
Size intPostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - Cache
Size intPrepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - Cluster
Count intPostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - Cluster
Count intPrepaid - 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 stringClass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - Db
Instance stringDescription - The DBInstance description.
- Desired
Security List<Pulumi.Ip Lists Ali Cloud. Select DB. Inputs. Db Instance Desired Security Ip List> - The modified IP address whitelists. See
desired_security_ip_lists
below. - Enable
Public boolNetwork - If DBInstance need to open public network, set it to
true
. - Engine string
- The engine of DBInstance. Always
selectdb
. - Engine
Minor stringVersion - The current DBInstance minor version.
- Gmt
Created string - The time when DBInstance is created.
- Gmt
Expired string - The time when DBInstance will be expired. Available on
Subscription
DBInstance. - Gmt
Modified string - The time when DBInstance is modified.
- Instance
Net List<Pulumi.Infos Ali Cloud. Select DB. Inputs. Db Instance Instance Net Info> - The net infos for instances.
- 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
PayAsYouGo
clusters in DBInstance. - Memory
Prepaid int - The sum of memory resource amount offor every
Subscription
clusters in DBInstance. - Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - Period string
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - Period
Time int - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - Region
Id string - The region ID of the instance.
- Security
Ip List<Pulumi.Lists Ali Cloud. Select DB. Inputs. Db Instance Security Ip List> - The details about each IP address whitelist returned.
- Status string
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - Sub
Domain string - The sub domain of DBInstance.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- 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.
- Upgraded
Engine stringMinor Version - The DBInstance minor version want to upgraded to.
- 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 int - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- Cache
Size intPostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - Cache
Size intPrepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - Cluster
Count intPostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - Cluster
Count intPrepaid - 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 stringClass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - Db
Instance stringDescription - The DBInstance description.
- Desired
Security []DbIp Lists Instance Desired Security Ip List Args - The modified IP address whitelists. See
desired_security_ip_lists
below. - Enable
Public boolNetwork - If DBInstance need to open public network, set it to
true
. - Engine string
- The engine of DBInstance. Always
selectdb
. - Engine
Minor stringVersion - The current DBInstance minor version.
- Gmt
Created string - The time when DBInstance is created.
- Gmt
Expired string - The time when DBInstance will be expired. Available on
Subscription
DBInstance. - Gmt
Modified string - The time when DBInstance is modified.
- Instance
Net []DbInfos Instance Instance Net Info Args - The net infos for instances.
- 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
PayAsYouGo
clusters in DBInstance. - Memory
Prepaid int - The sum of memory resource amount offor every
Subscription
clusters in DBInstance. - Payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - Period string
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - Period
Time int - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - Region
Id string - The region ID of the instance.
- Security
Ip []DbLists Instance Security Ip List Args - The details about each IP address whitelist returned.
- Status string
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - Sub
Domain string - The sub domain of DBInstance.
- map[string]string
- A mapping of tags to assign to the resource.
- 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.
- Upgraded
Engine stringMinor Version - The DBInstance minor version want to upgraded to.
- 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 Integer - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- cache
Size IntegerPostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - cache
Size IntegerPrepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - cluster
Count IntegerPostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - cluster
Count IntegerPrepaid - The sum of cluster counts for
Subscription
clusters in DBInstance. - cpu
Postpaid Integer - The sum of cpu resource amount for every
PayAsYouGo
clusters in DBInstance. - cpu
Prepaid Integer - The sum of cpu resource amount for every
Subscription
clusters in DBInstance. - db
Instance StringClass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - db
Instance StringDescription - The DBInstance description.
- desired
Security List<DbIp Lists Instance Desired Security Ip List> - The modified IP address whitelists. See
desired_security_ip_lists
below. - enable
Public BooleanNetwork - If DBInstance need to open public network, set it to
true
. - engine String
- The engine of DBInstance. Always
selectdb
. - engine
Minor StringVersion - The current DBInstance minor version.
- gmt
Created String - The time when DBInstance is created.
- gmt
Expired String - The time when DBInstance will be expired. Available on
Subscription
DBInstance. - gmt
Modified String - The time when DBInstance is modified.
- instance
Net List<DbInfos Instance Instance Net Info> - The net infos for instances.
- 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
PayAsYouGo
clusters in DBInstance. - memory
Prepaid Integer - The sum of memory resource amount offor every
Subscription
clusters in DBInstance. - payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - period String
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - period
Time Integer - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - region
Id String - The region ID of the instance.
- security
Ip List<DbLists Instance Security Ip List> - The details about each IP address whitelist returned.
- status String
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - sub
Domain String - The sub domain of DBInstance.
- Map<String,String>
- A mapping of tags to assign to the resource.
- 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.
- upgraded
Engine StringMinor Version - The DBInstance minor version want to upgraded to.
- 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 number - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- cache
Size numberPostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - cache
Size numberPrepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - cluster
Count numberPostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - cluster
Count numberPrepaid - The sum of cluster counts for
Subscription
clusters in DBInstance. - cpu
Postpaid number - The sum of cpu resource amount for every
PayAsYouGo
clusters in DBInstance. - cpu
Prepaid number - The sum of cpu resource amount for every
Subscription
clusters in DBInstance. - db
Instance stringClass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - db
Instance stringDescription - The DBInstance description.
- desired
Security DbIp Lists Instance Desired Security Ip List[] - The modified IP address whitelists. See
desired_security_ip_lists
below. - enable
Public booleanNetwork - If DBInstance need to open public network, set it to
true
. - engine string
- The engine of DBInstance. Always
selectdb
. - engine
Minor stringVersion - The current DBInstance minor version.
- gmt
Created string - The time when DBInstance is created.
- gmt
Expired string - The time when DBInstance will be expired. Available on
Subscription
DBInstance. - gmt
Modified string - The time when DBInstance is modified.
- instance
Net DbInfos Instance Instance Net Info[] - The net infos for instances.
- 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
PayAsYouGo
clusters in DBInstance. - memory
Prepaid number - The sum of memory resource amount offor every
Subscription
clusters in DBInstance. - payment
Type string - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - period string
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - period
Time number - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - region
Id string - The region ID of the instance.
- security
Ip DbLists Instance Security Ip List[] - The details about each IP address whitelist returned.
- status string
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - sub
Domain string - The sub domain of DBInstance.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- 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.
- upgraded
Engine stringMinor Version - The DBInstance minor version want to upgraded to.
- 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 int - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- cache_
size_ intpostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - cache_
size_ intprepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - cluster_
count_ intpostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - cluster_
count_ intprepaid - 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_ strclass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - db_
instance_ strdescription - The DBInstance description.
- desired_
security_ Sequence[Dbip_ lists Instance Desired Security Ip List Args] - The modified IP address whitelists. See
desired_security_ip_lists
below. - enable_
public_ boolnetwork - If DBInstance need to open public network, set it to
true
. - engine str
- The engine of DBInstance. Always
selectdb
. - engine_
minor_ strversion - The current DBInstance minor version.
- 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.
- instance_
net_ Sequence[Dbinfos Instance Instance Net Info Args] - The net infos for instances.
- 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
. - period str
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - period_
time int - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - region_
id str - The region ID of the instance.
- security_
ip_ Sequence[Dblists Instance Security Ip List Args] - The details about each IP address whitelist returned.
- status str
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - sub_
domain str - The sub domain of DBInstance.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- 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.
- upgraded_
engine_ strminor_ version - The DBInstance minor version want to upgraded to.
- 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 Number - The cache size in DBInstance on creating default cluster. The number should be divided by 100.
- cache
Size NumberPostpaid - The sum of cache size for every
PayAsYouGo
clusters in DBInstance. - cache
Size NumberPrepaid - The sum of cache size for every
Subscription
clusters in DBInstance. - cluster
Count NumberPostpaid - The sum of cluster counts for
PayAsYouGo
clusters in DBInstance. - cluster
Count NumberPrepaid - The sum of cluster counts for
Subscription
clusters in DBInstance. - cpu
Postpaid Number - The sum of cpu resource amount for every
PayAsYouGo
clusters in DBInstance. - cpu
Prepaid Number - The sum of cpu resource amount for every
Subscription
clusters in DBInstance. - db
Instance StringClass - The class for default cluster in DBInstance. db_cluster_class has a range of class from
selectdb.xlarge
toselectdb.256xlarge
. - db
Instance StringDescription - The DBInstance description.
- desired
Security List<Property Map>Ip Lists - The modified IP address whitelists. See
desired_security_ip_lists
below. - enable
Public BooleanNetwork - If DBInstance need to open public network, set it to
true
. - engine String
- The engine of DBInstance. Always
selectdb
. - engine
Minor StringVersion - The current DBInstance minor version.
- gmt
Created String - The time when DBInstance is created.
- gmt
Expired String - The time when DBInstance will be expired. Available on
Subscription
DBInstance. - gmt
Modified String - The time when DBInstance is modified.
- instance
Net List<Property Map>Infos - The net infos for instances.
- 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
PayAsYouGo
clusters in DBInstance. - memory
Prepaid Number - The sum of memory resource amount offor every
Subscription
clusters in DBInstance. - payment
Type String - The payment type of the resource. Valid values:
PayAsYouGo
,Subscription
. - period String
- It is valid when payment_type is
Subscription
. Valid values areYear
,Month
. - period
Time Number - The duration that you will buy DBInstance. It is valid when payment_type is
Subscription
. Valid values: [1~9], 12, 24, 36. - region
Id String - The region ID of the instance.
- security
Ip List<Property Map>Lists - The details about each IP address whitelist returned.
- status String
- The status of the resource. Valid values:
ACTIVE
,STOPPED
,STARTING
,RESTART
. - sub
Domain String - The sub domain of DBInstance.
- Map<String>
- A mapping of tags to assign to the resource.
- 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.
- upgraded
Engine StringMinor Version - The DBInstance minor version want to upgraded to.
- 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.
Supporting Types
DbInstanceDesiredSecurityIpList, DbInstanceDesiredSecurityIpListArgs
- Group
Name string - Security group name.
- Security
Ip stringList - The IP list of Security group. Each single IP value should be Separated by comma.
- Group
Name string - Security group name.
- Security
Ip stringList - The IP list of Security group. Each single IP value should be Separated by comma.
- group
Name String - Security group name.
- security
Ip StringList - The IP list of Security group. Each single IP value should be Separated by comma.
- group
Name string - Security group name.
- security
Ip stringList - The IP list of Security group. Each single IP value should be Separated by comma.
- group_
name str - Security group name.
- security_
ip_ strlist - The IP list of Security group. Each single IP value should be Separated by comma.
- group
Name String - Security group name.
- security
Ip StringList - The IP list of Security group. Each single IP value should be Separated by comma.
DbInstanceInstanceNetInfo, DbInstanceInstanceNetInfoArgs
- Connection
String string - The connection string of the instance.
- Db
Ip string - The IP address of the instance.
- Net
Type string - The network type of the instance.
- Port
Lists List<Pulumi.Ali Cloud. Select DB. Inputs. Db Instance Instance Net Info Port List> - A list for port provides SelectDB service.
- Vpc
Instance stringId - The VPC ID.
- Vswitch
Id string - The ID of vswitch for DBInstance.
- Connection
String string - The connection string of the instance.
- Db
Ip string - The IP address of the instance.
- Net
Type string - The network type of the instance.
- Port
Lists []DbInstance Instance Net Info Port List - A list for port provides SelectDB service.
- Vpc
Instance stringId - The VPC ID.
- Vswitch
Id string - The ID of vswitch for DBInstance.
- connection
String String - The connection string of the instance.
- db
Ip String - The IP address of the instance.
- net
Type String - The network type of the instance.
- port
Lists List<DbInstance Instance Net Info Port List> - A list for port provides SelectDB service.
- vpc
Instance StringId - The VPC ID.
- vswitch
Id String - The ID of vswitch for DBInstance.
- connection
String string - The connection string of the instance.
- db
Ip string - The IP address of the instance.
- net
Type string - The network type of the instance.
- port
Lists DbInstance Instance Net Info Port List[] - A list for port provides SelectDB service.
- vpc
Instance stringId - The VPC ID.
- vswitch
Id string - The ID of vswitch for DBInstance.
- connection_
string str - The connection string of the instance.
- db_
ip str - The IP address of the instance.
- net_
type str - The network type of the instance.
- port_
lists Sequence[DbInstance Instance Net Info Port List] - A list for port provides SelectDB service.
- vpc_
instance_ strid - The VPC ID.
- vswitch_
id str - The ID of vswitch for DBInstance.
- connection
String String - The connection string of the instance.
- db
Ip String - The IP address of the instance.
- net
Type String - The network type of the instance.
- port
Lists List<Property Map> - A list for port provides SelectDB service.
- vpc
Instance StringId - The VPC ID.
- vswitch
Id String - The ID of vswitch for DBInstance.
DbInstanceInstanceNetInfoPortList, DbInstanceInstanceNetInfoPortListArgs
DbInstanceSecurityIpList, DbInstanceSecurityIpListArgs
- Group
Name string - Security group name.
- Group
Tag string - The tag of Security group.
- List
Net stringType - The network type of Security group.
- Security
Ip stringList - The IP list of Security group. Each single IP value should be Separated by comma.
- Security
Ip stringType - The IP address type. Valid values:
ipv4
,ipv6
(not supported).
- Group
Name string - Security group name.
- Group
Tag string - The tag of Security group.
- List
Net stringType - The network type of Security group.
- Security
Ip stringList - The IP list of Security group. Each single IP value should be Separated by comma.
- Security
Ip stringType - The IP address type. Valid values:
ipv4
,ipv6
(not supported).
- group
Name String - Security group name.
- group
Tag String - The tag of Security group.
- list
Net StringType - The network type of Security group.
- security
Ip StringList - The IP list of Security group. Each single IP value should be Separated by comma.
- security
Ip StringType - The IP address type. Valid values:
ipv4
,ipv6
(not supported).
- group
Name string - Security group name.
- group
Tag string - The tag of Security group.
- list
Net stringType - The network type of Security group.
- security
Ip stringList - The IP list of Security group. Each single IP value should be Separated by comma.
- security
Ip stringType - The IP address type. Valid values:
ipv4
,ipv6
(not supported).
- group_
name str - Security group name.
- group_
tag str - The tag of Security group.
- list_
net_ strtype - The network type of Security group.
- security_
ip_ strlist - The IP list of Security group. Each single IP value should be Separated by comma.
- security_
ip_ strtype - The IP address type. Valid values:
ipv4
,ipv6
(not supported).
- group
Name String - Security group name.
- group
Tag String - The tag of Security group.
- list
Net StringType - The network type of Security group.
- security
Ip StringList - The IP list of Security group. Each single IP value should be Separated by comma.
- security
Ip StringType - The IP address type. Valid values:
ipv4
,ipv6
(not supported).
Import
SelectDB DBInstance can be imported using the id, e.g.
$ pulumi import alicloud:selectdb/dbInstance:DbInstance example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.