tencentcloud.DcdbDbInstance
Explore with Pulumi AI
Provides a resource to create a dcdb db_instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const dbInstance = new tencentcloud.DcdbDbInstance("dbInstance", {
instanceName: "test_dcdb_db_instance",
zones: ["ap-guangzhou-5"],
period: 1,
shardMemory: 2,
shardStorage: 10,
shardNodeCount: 2,
shardCount: 2,
vpcId: local.vpc_id,
subnetId: local.subnet_id,
dbVersionId: "8.0",
resourceTags: [{
tagKey: "aaa",
tagValue: "bbb",
}],
initParams: [
{
param: "character_set_server",
value: "utf8mb4",
},
{
param: "lower_case_table_names",
value: "1",
},
{
param: "sync_mode",
value: "2",
},
{
param: "innodb_page_size",
value: "16384",
},
],
securityGroupIds: [local.sg_id],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
db_instance = tencentcloud.DcdbDbInstance("dbInstance",
instance_name="test_dcdb_db_instance",
zones=["ap-guangzhou-5"],
period=1,
shard_memory=2,
shard_storage=10,
shard_node_count=2,
shard_count=2,
vpc_id=local["vpc_id"],
subnet_id=local["subnet_id"],
db_version_id="8.0",
resource_tags=[{
"tag_key": "aaa",
"tag_value": "bbb",
}],
init_params=[
{
"param": "character_set_server",
"value": "utf8mb4",
},
{
"param": "lower_case_table_names",
"value": "1",
},
{
"param": "sync_mode",
"value": "2",
},
{
"param": "innodb_page_size",
"value": "16384",
},
],
security_group_ids=[local["sg_id"]])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewDcdbDbInstance(ctx, "dbInstance", &tencentcloud.DcdbDbInstanceArgs{
InstanceName: pulumi.String("test_dcdb_db_instance"),
Zones: pulumi.StringArray{
pulumi.String("ap-guangzhou-5"),
},
Period: pulumi.Float64(1),
ShardMemory: pulumi.Float64(2),
ShardStorage: pulumi.Float64(10),
ShardNodeCount: pulumi.Float64(2),
ShardCount: pulumi.Float64(2),
VpcId: pulumi.Any(local.Vpc_id),
SubnetId: pulumi.Any(local.Subnet_id),
DbVersionId: pulumi.String("8.0"),
ResourceTags: tencentcloud.DcdbDbInstanceResourceTagArray{
&tencentcloud.DcdbDbInstanceResourceTagArgs{
TagKey: pulumi.String("aaa"),
TagValue: pulumi.String("bbb"),
},
},
InitParams: tencentcloud.DcdbDbInstanceInitParamArray{
&tencentcloud.DcdbDbInstanceInitParamArgs{
Param: pulumi.String("character_set_server"),
Value: pulumi.String("utf8mb4"),
},
&tencentcloud.DcdbDbInstanceInitParamArgs{
Param: pulumi.String("lower_case_table_names"),
Value: pulumi.String("1"),
},
&tencentcloud.DcdbDbInstanceInitParamArgs{
Param: pulumi.String("sync_mode"),
Value: pulumi.String("2"),
},
&tencentcloud.DcdbDbInstanceInitParamArgs{
Param: pulumi.String("innodb_page_size"),
Value: pulumi.String("16384"),
},
},
SecurityGroupIds: pulumi.StringArray{
local.Sg_id,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var dbInstance = new Tencentcloud.DcdbDbInstance("dbInstance", new()
{
InstanceName = "test_dcdb_db_instance",
Zones = new[]
{
"ap-guangzhou-5",
},
Period = 1,
ShardMemory = 2,
ShardStorage = 10,
ShardNodeCount = 2,
ShardCount = 2,
VpcId = local.Vpc_id,
SubnetId = local.Subnet_id,
DbVersionId = "8.0",
ResourceTags = new[]
{
new Tencentcloud.Inputs.DcdbDbInstanceResourceTagArgs
{
TagKey = "aaa",
TagValue = "bbb",
},
},
InitParams = new[]
{
new Tencentcloud.Inputs.DcdbDbInstanceInitParamArgs
{
Param = "character_set_server",
Value = "utf8mb4",
},
new Tencentcloud.Inputs.DcdbDbInstanceInitParamArgs
{
Param = "lower_case_table_names",
Value = "1",
},
new Tencentcloud.Inputs.DcdbDbInstanceInitParamArgs
{
Param = "sync_mode",
Value = "2",
},
new Tencentcloud.Inputs.DcdbDbInstanceInitParamArgs
{
Param = "innodb_page_size",
Value = "16384",
},
},
SecurityGroupIds = new[]
{
local.Sg_id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DcdbDbInstance;
import com.pulumi.tencentcloud.DcdbDbInstanceArgs;
import com.pulumi.tencentcloud.inputs.DcdbDbInstanceResourceTagArgs;
import com.pulumi.tencentcloud.inputs.DcdbDbInstanceInitParamArgs;
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) {
var dbInstance = new DcdbDbInstance("dbInstance", DcdbDbInstanceArgs.builder()
.instanceName("test_dcdb_db_instance")
.zones("ap-guangzhou-5")
.period(1)
.shardMemory("2")
.shardStorage("10")
.shardNodeCount("2")
.shardCount("2")
.vpcId(local.vpc_id())
.subnetId(local.subnet_id())
.dbVersionId("8.0")
.resourceTags(DcdbDbInstanceResourceTagArgs.builder()
.tagKey("aaa")
.tagValue("bbb")
.build())
.initParams(
DcdbDbInstanceInitParamArgs.builder()
.param("character_set_server")
.value("utf8mb4")
.build(),
DcdbDbInstanceInitParamArgs.builder()
.param("lower_case_table_names")
.value("1")
.build(),
DcdbDbInstanceInitParamArgs.builder()
.param("sync_mode")
.value("2")
.build(),
DcdbDbInstanceInitParamArgs.builder()
.param("innodb_page_size")
.value("16384")
.build())
.securityGroupIds(local.sg_id())
.build());
}
}
resources:
dbInstance:
type: tencentcloud:DcdbDbInstance
properties:
instanceName: test_dcdb_db_instance
zones:
- ap-guangzhou-5
period: 1
shardMemory: '2'
shardStorage: '10'
shardNodeCount: '2'
shardCount: '2'
vpcId: ${local.vpc_id}
subnetId: ${local.subnet_id}
dbVersionId: '8.0'
resourceTags:
- tagKey: aaa
tagValue: bbb
initParams:
- param: character_set_server
value: utf8mb4
- param: lower_case_table_names
value: '1'
- param: sync_mode
value: '2'
- param: innodb_page_size
value: '16384'
securityGroupIds:
- ${local.sg_id}
Create DcdbDbInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DcdbDbInstance(name: string, args: DcdbDbInstanceArgs, opts?: CustomResourceOptions);
@overload
def DcdbDbInstance(resource_name: str,
args: DcdbDbInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DcdbDbInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
period: Optional[float] = None,
zones: Optional[Sequence[str]] = None,
shard_storage: Optional[float] = None,
shard_node_count: Optional[float] = None,
shard_memory: Optional[float] = None,
shard_count: Optional[float] = None,
resource_tags: Optional[Sequence[DcdbDbInstanceResourceTagArgs]] = None,
dcn_instance_id: Optional[str] = None,
instance_name: Optional[str] = None,
ipv6_flag: Optional[float] = None,
extranet_access: Optional[bool] = None,
project_id: Optional[float] = None,
auto_renew_flag: Optional[float] = None,
security_group_ids: Optional[Sequence[str]] = None,
dcn_region: Optional[str] = None,
init_params: Optional[Sequence[DcdbDbInstanceInitParamArgs]] = None,
dcdb_db_instance_id: Optional[str] = None,
db_version_id: Optional[str] = None,
subnet_id: Optional[str] = None,
vip: Optional[str] = None,
vipv6: Optional[str] = None,
voucher_ids: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None,
auto_voucher: Optional[bool] = None)
func NewDcdbDbInstance(ctx *Context, name string, args DcdbDbInstanceArgs, opts ...ResourceOption) (*DcdbDbInstance, error)
public DcdbDbInstance(string name, DcdbDbInstanceArgs args, CustomResourceOptions? opts = null)
public DcdbDbInstance(String name, DcdbDbInstanceArgs args)
public DcdbDbInstance(String name, DcdbDbInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:DcdbDbInstance
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 DcdbDbInstanceArgs
- 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 DcdbDbInstanceArgs
- 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 DcdbDbInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DcdbDbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DcdbDbInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DcdbDbInstance 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 DcdbDbInstance resource accepts the following input properties:
- Period double
- The length of time you want to buy, unit: month.
- double
- The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- double
- "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- double
- "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- double
- "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Zones List<string>
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
- Auto
Renew doubleFlag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- Auto
Voucher bool - Whether to automatically use vouchers for payment, not used by default.
- Db
Version stringId - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- Dcdb
Db stringInstance Id - ID of the resource.
- Dcn
Instance stringId - DCN source instance ID.
- Dcn
Region string - DCN source region.
- Extranet
Access bool - Whether to open the extranet access.
- Init
Params List<DcdbDb Instance Init Param> - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- Instance
Name string - Instance name, you can set the name of the instance independently through this field.
- Ipv6Flag double
- Whether to support IPv6.
- Project
Id double - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- List<Dcdb
Db Instance Resource Tag> - Array of tag key-value pairs.
- Security
Group List<string>Ids - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- Subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- Vip string
- The field is required to specify VIP.
- Vipv6 string
- The field is required to specify VIPv6.
- Voucher
Ids List<string> - Voucher ID list, currently only supports specifying one voucher.
- Vpc
Id string - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
- Period float64
- The length of time you want to buy, unit: month.
- float64
- The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- float64
- "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- float64
- "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- float64
- "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Zones []string
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
- Auto
Renew float64Flag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- Auto
Voucher bool - Whether to automatically use vouchers for payment, not used by default.
- Db
Version stringId - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- Dcdb
Db stringInstance Id - ID of the resource.
- Dcn
Instance stringId - DCN source instance ID.
- Dcn
Region string - DCN source region.
- Extranet
Access bool - Whether to open the extranet access.
- Init
Params []DcdbDb Instance Init Param Args - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- Instance
Name string - Instance name, you can set the name of the instance independently through this field.
- Ipv6Flag float64
- Whether to support IPv6.
- Project
Id float64 - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- []Dcdb
Db Instance Resource Tag Args - Array of tag key-value pairs.
- Security
Group []stringIds - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- Subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- Vip string
- The field is required to specify VIP.
- Vipv6 string
- The field is required to specify VIPv6.
- Voucher
Ids []string - Voucher ID list, currently only supports specifying one voucher.
- Vpc
Id string - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
- period Double
- The length of time you want to buy, unit: month.
- Double
- The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- Double
- "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Double
- "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Double
- "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- zones List<String>
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
- auto
Renew DoubleFlag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- auto
Voucher Boolean - Whether to automatically use vouchers for payment, not used by default.
- db
Version StringId - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- dcdb
Db StringInstance Id - ID of the resource.
- dcn
Instance StringId - DCN source instance ID.
- dcn
Region String - DCN source region.
- extranet
Access Boolean - Whether to open the extranet access.
- init
Params List<DcdbDb Instance Init Param> - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- instance
Name String - Instance name, you can set the name of the instance independently through this field.
- ipv6Flag Double
- Whether to support IPv6.
- project
Id Double - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- List<Dcdb
Db Instance Resource Tag> - Array of tag key-value pairs.
- security
Group List<String>Ids - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- subnet
Id String - Virtual private network subnet ID, required when VpcId is not empty.
- vip String
- The field is required to specify VIP.
- vipv6 String
- The field is required to specify VIPv6.
- voucher
Ids List<String> - Voucher ID list, currently only supports specifying one voucher.
- vpc
Id String - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
- period number
- The length of time you want to buy, unit: month.
- number
- The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- number
- "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- number
- "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- number
- "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- zones string[]
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
- auto
Renew numberFlag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- auto
Voucher boolean - Whether to automatically use vouchers for payment, not used by default.
- db
Version stringId - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- dcdb
Db stringInstance Id - ID of the resource.
- dcn
Instance stringId - DCN source instance ID.
- dcn
Region string - DCN source region.
- extranet
Access boolean - Whether to open the extranet access.
- init
Params DcdbDb Instance Init Param[] - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- instance
Name string - Instance name, you can set the name of the instance independently through this field.
- ipv6Flag number
- Whether to support IPv6.
- project
Id number - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- Dcdb
Db Instance Resource Tag[] - Array of tag key-value pairs.
- security
Group string[]Ids - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- vip string
- The field is required to specify VIP.
- vipv6 string
- The field is required to specify VIPv6.
- voucher
Ids string[] - Voucher ID list, currently only supports specifying one voucher.
- vpc
Id string - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
- period float
- The length of time you want to buy, unit: month.
- float
- The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- float
- "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- float
- "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- float
- "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- zones Sequence[str]
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
- auto_
renew_ floatflag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- auto_
voucher bool - Whether to automatically use vouchers for payment, not used by default.
- db_
version_ strid - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- dcdb_
db_ strinstance_ id - ID of the resource.
- dcn_
instance_ strid - DCN source instance ID.
- dcn_
region str - DCN source region.
- extranet_
access bool - Whether to open the extranet access.
- init_
params Sequence[DcdbDb Instance Init Param Args] - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- instance_
name str - Instance name, you can set the name of the instance independently through this field.
- ipv6_
flag float - Whether to support IPv6.
- project_
id float - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- Sequence[Dcdb
Db Instance Resource Tag Args] - Array of tag key-value pairs.
- security_
group_ Sequence[str]ids - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- subnet_
id str - Virtual private network subnet ID, required when VpcId is not empty.
- vip str
- The field is required to specify VIP.
- vipv6 str
- The field is required to specify VIPv6.
- voucher_
ids Sequence[str] - Voucher ID list, currently only supports specifying one voucher.
- vpc_
id str - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
- period Number
- The length of time you want to buy, unit: month.
- Number
- The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- Number
- "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Number
- "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Number
- "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- zones List<String>
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
- auto
Renew NumberFlag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- auto
Voucher Boolean - Whether to automatically use vouchers for payment, not used by default.
- db
Version StringId - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- dcdb
Db StringInstance Id - ID of the resource.
- dcn
Instance StringId - DCN source instance ID.
- dcn
Region String - DCN source region.
- extranet
Access Boolean - Whether to open the extranet access.
- init
Params List<Property Map> - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- instance
Name String - Instance name, you can set the name of the instance independently through this field.
- ipv6Flag Number
- Whether to support IPv6.
- project
Id Number - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- List<Property Map>
- Array of tag key-value pairs.
- security
Group List<String>Ids - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- subnet
Id String - Virtual private network subnet ID, required when VpcId is not empty.
- vip String
- The field is required to specify VIP.
- vipv6 String
- The field is required to specify VIPv6.
- voucher
Ids List<String> - Voucher ID list, currently only supports specifying one voucher.
- vpc
Id String - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
Outputs
All input properties are implicitly available as output properties. Additionally, the DcdbDbInstance resource produces the following output properties:
Look up Existing DcdbDbInstance Resource
Get an existing DcdbDbInstance 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?: DcdbDbInstanceState, opts?: CustomResourceOptions): DcdbDbInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew_flag: Optional[float] = None,
auto_voucher: Optional[bool] = None,
db_version_id: Optional[str] = None,
dcdb_db_instance_id: Optional[str] = None,
dcn_instance_id: Optional[str] = None,
dcn_region: Optional[str] = None,
extranet_access: Optional[bool] = None,
init_params: Optional[Sequence[DcdbDbInstanceInitParamArgs]] = None,
instance_name: Optional[str] = None,
ipv6_flag: Optional[float] = None,
period: Optional[float] = None,
project_id: Optional[float] = None,
resource_tags: Optional[Sequence[DcdbDbInstanceResourceTagArgs]] = None,
security_group_ids: Optional[Sequence[str]] = None,
shard_count: Optional[float] = None,
shard_memory: Optional[float] = None,
shard_node_count: Optional[float] = None,
shard_storage: Optional[float] = None,
subnet_id: Optional[str] = None,
vip: Optional[str] = None,
vipv6: Optional[str] = None,
voucher_ids: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None,
vport: Optional[float] = None,
zones: Optional[Sequence[str]] = None) -> DcdbDbInstance
func GetDcdbDbInstance(ctx *Context, name string, id IDInput, state *DcdbDbInstanceState, opts ...ResourceOption) (*DcdbDbInstance, error)
public static DcdbDbInstance Get(string name, Input<string> id, DcdbDbInstanceState? state, CustomResourceOptions? opts = null)
public static DcdbDbInstance get(String name, Output<String> id, DcdbDbInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DcdbDbInstance get: id: ${id}
- 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.
- Auto
Renew doubleFlag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- Auto
Voucher bool - Whether to automatically use vouchers for payment, not used by default.
- Db
Version stringId - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- Dcdb
Db stringInstance Id - ID of the resource.
- Dcn
Instance stringId - DCN source instance ID.
- Dcn
Region string - DCN source region.
- Extranet
Access bool - Whether to open the extranet access.
- Init
Params List<DcdbDb Instance Init Param> - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- Instance
Name string - Instance name, you can set the name of the instance independently through this field.
- Ipv6Flag double
- Whether to support IPv6.
- Period double
- The length of time you want to buy, unit: month.
- Project
Id double - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- List<Dcdb
Db Instance Resource Tag> - Array of tag key-value pairs.
- Security
Group List<string>Ids - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- Shard
Count double - The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- Shard
Memory double - "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Shard
Node doubleCount - "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Shard
Storage double - "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- Vip string
- The field is required to specify VIP.
- Vipv6 string
- The field is required to specify VIPv6.
- Voucher
Ids List<string> - Voucher ID list, currently only supports specifying one voucher.
- Vpc
Id string - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
- Vport double
- Intranet port.
- Zones List<string>
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
- Auto
Renew float64Flag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- Auto
Voucher bool - Whether to automatically use vouchers for payment, not used by default.
- Db
Version stringId - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- Dcdb
Db stringInstance Id - ID of the resource.
- Dcn
Instance stringId - DCN source instance ID.
- Dcn
Region string - DCN source region.
- Extranet
Access bool - Whether to open the extranet access.
- Init
Params []DcdbDb Instance Init Param Args - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- Instance
Name string - Instance name, you can set the name of the instance independently through this field.
- Ipv6Flag float64
- Whether to support IPv6.
- Period float64
- The length of time you want to buy, unit: month.
- Project
Id float64 - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- []Dcdb
Db Instance Resource Tag Args - Array of tag key-value pairs.
- Security
Group []stringIds - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- Shard
Count float64 - The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- Shard
Memory float64 - "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Shard
Node float64Count - "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Shard
Storage float64 - "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- Subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- Vip string
- The field is required to specify VIP.
- Vipv6 string
- The field is required to specify VIPv6.
- Voucher
Ids []string - Voucher ID list, currently only supports specifying one voucher.
- Vpc
Id string - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
- Vport float64
- Intranet port.
- Zones []string
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
- auto
Renew DoubleFlag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- auto
Voucher Boolean - Whether to automatically use vouchers for payment, not used by default.
- db
Version StringId - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- dcdb
Db StringInstance Id - ID of the resource.
- dcn
Instance StringId - DCN source instance ID.
- dcn
Region String - DCN source region.
- extranet
Access Boolean - Whether to open the extranet access.
- init
Params List<DcdbDb Instance Init Param> - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- instance
Name String - Instance name, you can set the name of the instance independently through this field.
- ipv6Flag Double
- Whether to support IPv6.
- period Double
- The length of time you want to buy, unit: month.
- project
Id Double - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- List<Dcdb
Db Instance Resource Tag> - Array of tag key-value pairs.
- security
Group List<String>Ids - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- shard
Count Double - The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- shard
Memory Double - "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- shard
Node DoubleCount - "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- shard
Storage Double - "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- subnet
Id String - Virtual private network subnet ID, required when VpcId is not empty.
- vip String
- The field is required to specify VIP.
- vipv6 String
- The field is required to specify VIPv6.
- voucher
Ids List<String> - Voucher ID list, currently only supports specifying one voucher.
- vpc
Id String - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
- vport Double
- Intranet port.
- zones List<String>
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
- auto
Renew numberFlag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- auto
Voucher boolean - Whether to automatically use vouchers for payment, not used by default.
- db
Version stringId - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- dcdb
Db stringInstance Id - ID of the resource.
- dcn
Instance stringId - DCN source instance ID.
- dcn
Region string - DCN source region.
- extranet
Access boolean - Whether to open the extranet access.
- init
Params DcdbDb Instance Init Param[] - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- instance
Name string - Instance name, you can set the name of the instance independently through this field.
- ipv6Flag number
- Whether to support IPv6.
- period number
- The length of time you want to buy, unit: month.
- project
Id number - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- Dcdb
Db Instance Resource Tag[] - Array of tag key-value pairs.
- security
Group string[]Ids - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- shard
Count number - The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- shard
Memory number - "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- shard
Node numberCount - "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- shard
Storage number - "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- vip string
- The field is required to specify VIP.
- vipv6 string
- The field is required to specify VIPv6.
- voucher
Ids string[] - Voucher ID list, currently only supports specifying one voucher.
- vpc
Id string - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
- vport number
- Intranet port.
- zones string[]
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
- auto_
renew_ floatflag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- auto_
voucher bool - Whether to automatically use vouchers for payment, not used by default.
- db_
version_ strid - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- dcdb_
db_ strinstance_ id - ID of the resource.
- dcn_
instance_ strid - DCN source instance ID.
- dcn_
region str - DCN source region.
- extranet_
access bool - Whether to open the extranet access.
- init_
params Sequence[DcdbDb Instance Init Param Args] - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- instance_
name str - Instance name, you can set the name of the instance independently through this field.
- ipv6_
flag float - Whether to support IPv6.
- period float
- The length of time you want to buy, unit: month.
- project_
id float - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- Sequence[Dcdb
Db Instance Resource Tag Args] - Array of tag key-value pairs.
- security_
group_ Sequence[str]ids - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- shard_
count float - The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- shard_
memory float - "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- shard_
node_ floatcount - "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- shard_
storage float - "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- subnet_
id str - Virtual private network subnet ID, required when VpcId is not empty.
- vip str
- The field is required to specify VIP.
- vipv6 str
- The field is required to specify VIPv6.
- voucher_
ids Sequence[str] - Voucher ID list, currently only supports specifying one voucher.
- vpc_
id str - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
- vport float
- Intranet port.
- zones Sequence[str]
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
- auto
Renew NumberFlag - "Automatic renewal flag, 0 means the default state (the user has not set it, that is, the initial state is manual renewal, and the user has activated the prepaid non-stop privilege and will also perform automatic renewal).""1 means automatic renewal, 2 means no automatic renewal (user setting).""if the business has no concept of renewal or automatic renewal is not required, it needs to be set to 0.".
- auto
Voucher Boolean - Whether to automatically use vouchers for payment, not used by default.
- db
Version StringId - "Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17.""8.0.18 - MySQL 8.0.18;""10.1.9 - Mariadb 10.1.9;""5.7.17 - Percona 5.7.17""If not filled, the default is 5.7.17, which means Percona 5.7.17.".
- dcdb
Db StringInstance Id - ID of the resource.
- dcn
Instance StringId - DCN source instance ID.
- dcn
Region String - DCN source region.
- extranet
Access Boolean - Whether to open the extranet access.
- init
Params List<Property Map> - "parameter list. The optional values of this interface are:""character_set_server (character set, must be passed),""lower_case_table_names (table name is case sensitive, must be passed, 0 - sensitive; 1 - insensitive),""innodb_page_size (innodb data page, default 16K),""sync_mode ( Synchronous mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous degenerate. The default is strong synchronous degenerate)".
- instance
Name String - Instance name, you can set the name of the instance independently through this field.
- ipv6Flag Number
- Whether to support IPv6.
- period Number
- The length of time you want to buy, unit: month.
- project
Id Number - Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
- List<Property Map>
- Array of tag key-value pairs.
- security
Group List<String>Ids - Security group ids, the security group can be passed in the form of an array, compatible with the previous SecurityGroupId parameter.
- shard
Count Number - The number of instance fragments, the optional range is 2-8, and new fragments can be added to a maximum of 64 fragments by upgrading the instance.
- shard
Memory Number - "Shard memory size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- shard
Node NumberCount - "Number of single shard nodes, can pass DescribeShardSpec""Query the instance specification to obtain.".
- shard
Storage Number - "Shard storage size, unit: GB, can pass DescribeShardSpec""Query the instance specification to obtain.".
- subnet
Id String - Virtual private network subnet ID, required when VpcId is not empty.
- vip String
- The field is required to specify VIP.
- vipv6 String
- The field is required to specify VIPv6.
- voucher
Ids List<String> - Voucher ID list, currently only supports specifying one voucher.
- vpc
Id String - Virtual private network ID, if not passed or passed empty, it means that it is created as a basic network.
- vport Number
- Intranet port.
- zones List<String>
- "The availability zone distribution of shard nodes can be filled with up to two availability zones. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.""Note that the current availability zone that can be sold needs to be pulled through the DescribeDCDBSaleInfo interface.".
Supporting Types
DcdbDbInstanceInitParam, DcdbDbInstanceInitParamArgs
DcdbDbInstanceResourceTag, DcdbDbInstanceResourceTagArgs
Import
dcdb db_instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/dcdbDbInstance:DcdbDbInstance db_instance db_instance_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.