tencentcloud.MariadbInstance
Explore with Pulumi AI
Provides a resource to create a mariadb instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const instance = new tencentcloud.MariadbInstance("instance", {
autoRenewFlag: 1,
dbVersionId: "8.0",
dcnInstanceId: "",
dcnRegion: "",
initParams: [
{
param: "character_set_server",
value: "utf8mb4",
},
{
param: "lower_case_table_names",
value: "0",
},
{
param: "innodb_page_size",
value: "16384",
},
{
param: "sync_mode",
value: "1",
},
],
instanceName: "terraform-test",
ipv6Flag: 0,
memory: 8,
nodeCount: 2,
period: 1,
storage: 10,
subnetId: "subnet-3ku415by",
tags: {
createby: "terrafrom-2",
},
vpcId: "vpc-ii1jfbhl",
zones: ["ap-guangzhou-3"],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
instance = tencentcloud.MariadbInstance("instance",
auto_renew_flag=1,
db_version_id="8.0",
dcn_instance_id="",
dcn_region="",
init_params=[
{
"param": "character_set_server",
"value": "utf8mb4",
},
{
"param": "lower_case_table_names",
"value": "0",
},
{
"param": "innodb_page_size",
"value": "16384",
},
{
"param": "sync_mode",
"value": "1",
},
],
instance_name="terraform-test",
ipv6_flag=0,
memory=8,
node_count=2,
period=1,
storage=10,
subnet_id="subnet-3ku415by",
tags={
"createby": "terrafrom-2",
},
vpc_id="vpc-ii1jfbhl",
zones=["ap-guangzhou-3"])
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.NewMariadbInstance(ctx, "instance", &tencentcloud.MariadbInstanceArgs{
AutoRenewFlag: pulumi.Float64(1),
DbVersionId: pulumi.String("8.0"),
DcnInstanceId: pulumi.String(""),
DcnRegion: pulumi.String(""),
InitParams: tencentcloud.MariadbInstanceInitParamArray{
&tencentcloud.MariadbInstanceInitParamArgs{
Param: pulumi.String("character_set_server"),
Value: pulumi.String("utf8mb4"),
},
&tencentcloud.MariadbInstanceInitParamArgs{
Param: pulumi.String("lower_case_table_names"),
Value: pulumi.String("0"),
},
&tencentcloud.MariadbInstanceInitParamArgs{
Param: pulumi.String("innodb_page_size"),
Value: pulumi.String("16384"),
},
&tencentcloud.MariadbInstanceInitParamArgs{
Param: pulumi.String("sync_mode"),
Value: pulumi.String("1"),
},
},
InstanceName: pulumi.String("terraform-test"),
Ipv6Flag: pulumi.Float64(0),
Memory: pulumi.Float64(8),
NodeCount: pulumi.Float64(2),
Period: pulumi.Float64(1),
Storage: pulumi.Float64(10),
SubnetId: pulumi.String("subnet-3ku415by"),
Tags: pulumi.StringMap{
"createby": pulumi.String("terrafrom-2"),
},
VpcId: pulumi.String("vpc-ii1jfbhl"),
Zones: pulumi.StringArray{
pulumi.String("ap-guangzhou-3"),
},
})
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 instance = new Tencentcloud.MariadbInstance("instance", new()
{
AutoRenewFlag = 1,
DbVersionId = "8.0",
DcnInstanceId = "",
DcnRegion = "",
InitParams = new[]
{
new Tencentcloud.Inputs.MariadbInstanceInitParamArgs
{
Param = "character_set_server",
Value = "utf8mb4",
},
new Tencentcloud.Inputs.MariadbInstanceInitParamArgs
{
Param = "lower_case_table_names",
Value = "0",
},
new Tencentcloud.Inputs.MariadbInstanceInitParamArgs
{
Param = "innodb_page_size",
Value = "16384",
},
new Tencentcloud.Inputs.MariadbInstanceInitParamArgs
{
Param = "sync_mode",
Value = "1",
},
},
InstanceName = "terraform-test",
Ipv6Flag = 0,
Memory = 8,
NodeCount = 2,
Period = 1,
Storage = 10,
SubnetId = "subnet-3ku415by",
Tags =
{
{ "createby", "terrafrom-2" },
},
VpcId = "vpc-ii1jfbhl",
Zones = new[]
{
"ap-guangzhou-3",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MariadbInstance;
import com.pulumi.tencentcloud.MariadbInstanceArgs;
import com.pulumi.tencentcloud.inputs.MariadbInstanceInitParamArgs;
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 instance = new MariadbInstance("instance", MariadbInstanceArgs.builder()
.autoRenewFlag(1)
.dbVersionId("8.0")
.dcnInstanceId("")
.dcnRegion("")
.initParams(
MariadbInstanceInitParamArgs.builder()
.param("character_set_server")
.value("utf8mb4")
.build(),
MariadbInstanceInitParamArgs.builder()
.param("lower_case_table_names")
.value("0")
.build(),
MariadbInstanceInitParamArgs.builder()
.param("innodb_page_size")
.value("16384")
.build(),
MariadbInstanceInitParamArgs.builder()
.param("sync_mode")
.value("1")
.build())
.instanceName("terraform-test")
.ipv6Flag(0)
.memory(8)
.nodeCount(2)
.period(1)
.storage(10)
.subnetId("subnet-3ku415by")
.tags(Map.of("createby", "terrafrom-2"))
.vpcId("vpc-ii1jfbhl")
.zones("ap-guangzhou-3")
.build());
}
}
resources:
instance:
type: tencentcloud:MariadbInstance
properties:
# security_group_ids = ""
autoRenewFlag: 1
# project_id = ""
dbVersionId: '8.0'
dcnInstanceId: ""
dcnRegion: ""
initParams:
- param: character_set_server
value: utf8mb4
- param: lower_case_table_names
value: '0'
- param: innodb_page_size
value: '16384'
- param: sync_mode
value: '1'
instanceName: terraform-test
ipv6Flag: 0
memory: 8
nodeCount: 2
period: 1
storage: 10
subnetId: subnet-3ku415by
tags:
createby: terrafrom-2
# auto_voucher =
# // voucher_ids =
vpcId: vpc-ii1jfbhl
zones:
- ap-guangzhou-3
Create MariadbInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MariadbInstance(name: string, args: MariadbInstanceArgs, opts?: CustomResourceOptions);
@overload
def MariadbInstance(resource_name: str,
args: MariadbInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MariadbInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
memory: Optional[float] = None,
zones: Optional[Sequence[str]] = None,
storage: Optional[float] = None,
node_count: Optional[float] = None,
init_params: Optional[Sequence[MariadbInstanceInitParamArgs]] = None,
security_group_ids: Optional[Sequence[str]] = None,
instance_name: Optional[str] = None,
ipv6_flag: Optional[float] = None,
mariadb_instance_id: Optional[str] = None,
dcn_region: Optional[str] = None,
dcn_instance_id: Optional[str] = None,
period: Optional[float] = None,
project_id: Optional[float] = None,
auto_renew_flag: Optional[float] = None,
db_version_id: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vip: Optional[str] = None,
voucher_ids: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None,
auto_voucher: Optional[bool] = None)
func NewMariadbInstance(ctx *Context, name string, args MariadbInstanceArgs, opts ...ResourceOption) (*MariadbInstance, error)
public MariadbInstance(string name, MariadbInstanceArgs args, CustomResourceOptions? opts = null)
public MariadbInstance(String name, MariadbInstanceArgs args)
public MariadbInstance(String name, MariadbInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:MariadbInstance
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 MariadbInstanceArgs
- 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 MariadbInstanceArgs
- 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 MariadbInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MariadbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MariadbInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MariadbInstance 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 MariadbInstance resource accepts the following input properties:
- Memory double
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- Node
Count double - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- Storage double
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- Zones List<string>
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
- Auto
Renew doubleFlag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- Auto
Voucher bool - Whether to automatically use the voucher for payment, the default is not used.
- Db
Version stringId - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- Dcn
Instance stringId - DCN source instance ID.
- Dcn
Region string - DCN source region.
- Init
Params List<MariadbInstance Init Param> - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- Instance
Name string - Instance name, you can set the name of the instance independently through this field.
- Ipv6Flag double
- Whether IPv6 is supported.
- Mariadb
Instance stringId - ID of the resource.
- Period double
- The duration of the purchase, 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.
- Security
Group List<string>Ids - Security group ID list.
- Subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- Dictionary<string, string>
- tag list.
- Vip string
- Intranet IP address.
- Voucher
Ids List<string> - A list of voucher IDs. Currently, only one voucher can be specified.
- Vpc
Id string - Virtual private network ID, if not passed, it means that it is created as a basic network.
- Memory float64
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- Node
Count float64 - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- Storage float64
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- Zones []string
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
- Auto
Renew float64Flag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- Auto
Voucher bool - Whether to automatically use the voucher for payment, the default is not used.
- Db
Version stringId - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- Dcn
Instance stringId - DCN source instance ID.
- Dcn
Region string - DCN source region.
- Init
Params []MariadbInstance Init Param Args - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- Instance
Name string - Instance name, you can set the name of the instance independently through this field.
- Ipv6Flag float64
- Whether IPv6 is supported.
- Mariadb
Instance stringId - ID of the resource.
- Period float64
- The duration of the purchase, 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.
- Security
Group []stringIds - Security group ID list.
- Subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- map[string]string
- tag list.
- Vip string
- Intranet IP address.
- Voucher
Ids []string - A list of voucher IDs. Currently, only one voucher can be specified.
- Vpc
Id string - Virtual private network ID, if not passed, it means that it is created as a basic network.
- memory Double
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- node
Count Double - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- storage Double
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- zones List<String>
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
- auto
Renew DoubleFlag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- auto
Voucher Boolean - Whether to automatically use the voucher for payment, the default is not used.
- db
Version StringId - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- dcn
Instance StringId - DCN source instance ID.
- dcn
Region String - DCN source region.
- init
Params List<MariadbInstance Init Param> - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- instance
Name String - Instance name, you can set the name of the instance independently through this field.
- ipv6Flag Double
- Whether IPv6 is supported.
- mariadb
Instance StringId - ID of the resource.
- period Double
- The duration of the purchase, 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.
- security
Group List<String>Ids - Security group ID list.
- subnet
Id String - Virtual private network subnet ID, required when VpcId is not empty.
- Map<String,String>
- tag list.
- vip String
- Intranet IP address.
- voucher
Ids List<String> - A list of voucher IDs. Currently, only one voucher can be specified.
- vpc
Id String - Virtual private network ID, if not passed, it means that it is created as a basic network.
- memory number
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- node
Count number - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- storage number
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- zones string[]
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
- auto
Renew numberFlag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- auto
Voucher boolean - Whether to automatically use the voucher for payment, the default is not used.
- db
Version stringId - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- dcn
Instance stringId - DCN source instance ID.
- dcn
Region string - DCN source region.
- init
Params MariadbInstance Init Param[] - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- instance
Name string - Instance name, you can set the name of the instance independently through this field.
- ipv6Flag number
- Whether IPv6 is supported.
- mariadb
Instance stringId - ID of the resource.
- period number
- The duration of the purchase, 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.
- security
Group string[]Ids - Security group ID list.
- subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- {[key: string]: string}
- tag list.
- vip string
- Intranet IP address.
- voucher
Ids string[] - A list of voucher IDs. Currently, only one voucher can be specified.
- vpc
Id string - Virtual private network ID, if not passed, it means that it is created as a basic network.
- memory float
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- node_
count float - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- storage float
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- zones Sequence[str]
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
- auto_
renew_ floatflag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- auto_
voucher bool - Whether to automatically use the voucher for payment, the default is not used.
- db_
version_ strid - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- dcn_
instance_ strid - DCN source instance ID.
- dcn_
region str - DCN source region.
- init_
params Sequence[MariadbInstance Init Param Args] - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- instance_
name str - Instance name, you can set the name of the instance independently through this field.
- ipv6_
flag float - Whether IPv6 is supported.
- mariadb_
instance_ strid - ID of the resource.
- period float
- The duration of the purchase, 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.
- security_
group_ Sequence[str]ids - Security group ID list.
- subnet_
id str - Virtual private network subnet ID, required when VpcId is not empty.
- Mapping[str, str]
- tag list.
- vip str
- Intranet IP address.
- voucher_
ids Sequence[str] - A list of voucher IDs. Currently, only one voucher can be specified.
- vpc_
id str - Virtual private network ID, if not passed, it means that it is created as a basic network.
- memory Number
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- node
Count Number - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- storage Number
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- zones List<String>
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
- auto
Renew NumberFlag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- auto
Voucher Boolean - Whether to automatically use the voucher for payment, the default is not used.
- db
Version StringId - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- dcn
Instance StringId - DCN source instance ID.
- dcn
Region String - DCN source region.
- init
Params List<Property Map> - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- instance
Name String - Instance name, you can set the name of the instance independently through this field.
- ipv6Flag Number
- Whether IPv6 is supported.
- mariadb
Instance StringId - ID of the resource.
- period Number
- The duration of the purchase, 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.
- security
Group List<String>Ids - Security group ID list.
- subnet
Id String - Virtual private network subnet ID, required when VpcId is not empty.
- Map<String>
- tag list.
- vip String
- Intranet IP address.
- voucher
Ids List<String> - A list of voucher IDs. Currently, only one voucher can be specified.
- vpc
Id String - Virtual private network ID, if not passed, it means that it is created as a basic network.
Outputs
All input properties are implicitly available as output properties. Additionally, the MariadbInstance resource produces the following output properties:
- App
Id double - ID of the application to which the instance belongs.
- Cpu double
- Number of CPU cores of the instance.
- Create
Time string - Instance creation time, the format is 2006-01-02 15:04:05.
- Db
Engine string - Database Engine.
- Dcn
Dst doubleNum - Number of DCN disaster recovery instances.
- Dcn
Flag double - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- Dcn
Status double - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- Excluster
Id string - Exclusive cluster ID, if it is empty, it means a normal instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Instance ID, uniquely identifies a TDSQL instance.
- Instance
Type double - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- Is
Audit doubleSupported - Whether the instance supports auditing. 1-supported; 0-not supported.
- Is
Encrypt doubleSupported - Whether data encryption is supported. 1-supported; 0-not supported.
- Is
Tmp double - Whether it is a temporary instance, 0 means no, non-zero means yes.
- Locker double
- Asynchronous task process ID when the instance is in an asynchronous task.
- Machine string
- Machine Model.
- Paymode string
- Payment Mode.
- Period
End stringTime - Instance expiration time, the format is 2006-01-02 15:04:05.
- Pid double
- Product Type ID.
- Qps double
- Maximum Qps value.
- Region string
- The name of the region where the instance is located, such as ap-shanghai.
- Status double
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- Status
Desc string - Description of the current running state of the instance.
- Tdsql
Version string - TDSQL version information.
- Uin string
- The account to which the instance belongs.
- Update
Time string - The last update time of the instance in the format of 2006-01-02 15:04:05.
- Vipv6 string
- Intranet IPv6.
- Vport double
- Intranet port.
- Wan
Domain string - The domain name accessed from the external network, which can be resolved by the public network.
- Wan
Port double - Internet port.
- Wan
Port doubleIpv6 - Internet IPv6 port.
- Wan
Status double - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- Wan
Status doubleIpv6 - Internet IPv6 status.
- Wan
Vip string - Extranet IP address, accessible from the public network.
- Wan
Vipv6 string - Internet IPv6.
- App
Id float64 - ID of the application to which the instance belongs.
- Cpu float64
- Number of CPU cores of the instance.
- Create
Time string - Instance creation time, the format is 2006-01-02 15:04:05.
- Db
Engine string - Database Engine.
- Dcn
Dst float64Num - Number of DCN disaster recovery instances.
- Dcn
Flag float64 - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- Dcn
Status float64 - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- Excluster
Id string - Exclusive cluster ID, if it is empty, it means a normal instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Instance ID, uniquely identifies a TDSQL instance.
- Instance
Type float64 - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- Is
Audit float64Supported - Whether the instance supports auditing. 1-supported; 0-not supported.
- Is
Encrypt float64Supported - Whether data encryption is supported. 1-supported; 0-not supported.
- Is
Tmp float64 - Whether it is a temporary instance, 0 means no, non-zero means yes.
- Locker float64
- Asynchronous task process ID when the instance is in an asynchronous task.
- Machine string
- Machine Model.
- Paymode string
- Payment Mode.
- Period
End stringTime - Instance expiration time, the format is 2006-01-02 15:04:05.
- Pid float64
- Product Type ID.
- Qps float64
- Maximum Qps value.
- Region string
- The name of the region where the instance is located, such as ap-shanghai.
- Status float64
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- Status
Desc string - Description of the current running state of the instance.
- Tdsql
Version string - TDSQL version information.
- Uin string
- The account to which the instance belongs.
- Update
Time string - The last update time of the instance in the format of 2006-01-02 15:04:05.
- Vipv6 string
- Intranet IPv6.
- Vport float64
- Intranet port.
- Wan
Domain string - The domain name accessed from the external network, which can be resolved by the public network.
- Wan
Port float64 - Internet port.
- Wan
Port float64Ipv6 - Internet IPv6 port.
- Wan
Status float64 - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- Wan
Status float64Ipv6 - Internet IPv6 status.
- Wan
Vip string - Extranet IP address, accessible from the public network.
- Wan
Vipv6 string - Internet IPv6.
- app
Id Double - ID of the application to which the instance belongs.
- cpu Double
- Number of CPU cores of the instance.
- create
Time String - Instance creation time, the format is 2006-01-02 15:04:05.
- db
Engine String - Database Engine.
- dcn
Dst DoubleNum - Number of DCN disaster recovery instances.
- dcn
Flag Double - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- dcn
Status Double - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- excluster
Id String - Exclusive cluster ID, if it is empty, it means a normal instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - Instance ID, uniquely identifies a TDSQL instance.
- instance
Type Double - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- is
Audit DoubleSupported - Whether the instance supports auditing. 1-supported; 0-not supported.
- is
Encrypt DoubleSupported - Whether data encryption is supported. 1-supported; 0-not supported.
- is
Tmp Double - Whether it is a temporary instance, 0 means no, non-zero means yes.
- locker Double
- Asynchronous task process ID when the instance is in an asynchronous task.
- machine String
- Machine Model.
- paymode String
- Payment Mode.
- period
End StringTime - Instance expiration time, the format is 2006-01-02 15:04:05.
- pid Double
- Product Type ID.
- qps Double
- Maximum Qps value.
- region String
- The name of the region where the instance is located, such as ap-shanghai.
- status Double
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- status
Desc String - Description of the current running state of the instance.
- tdsql
Version String - TDSQL version information.
- uin String
- The account to which the instance belongs.
- update
Time String - The last update time of the instance in the format of 2006-01-02 15:04:05.
- vipv6 String
- Intranet IPv6.
- vport Double
- Intranet port.
- wan
Domain String - The domain name accessed from the external network, which can be resolved by the public network.
- wan
Port Double - Internet port.
- wan
Port DoubleIpv6 - Internet IPv6 port.
- wan
Status Double - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- wan
Status DoubleIpv6 - Internet IPv6 status.
- wan
Vip String - Extranet IP address, accessible from the public network.
- wan
Vipv6 String - Internet IPv6.
- app
Id number - ID of the application to which the instance belongs.
- cpu number
- Number of CPU cores of the instance.
- create
Time string - Instance creation time, the format is 2006-01-02 15:04:05.
- db
Engine string - Database Engine.
- dcn
Dst numberNum - Number of DCN disaster recovery instances.
- dcn
Flag number - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- dcn
Status number - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- excluster
Id string - Exclusive cluster ID, if it is empty, it means a normal instance.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - Instance ID, uniquely identifies a TDSQL instance.
- instance
Type number - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- is
Audit numberSupported - Whether the instance supports auditing. 1-supported; 0-not supported.
- is
Encrypt numberSupported - Whether data encryption is supported. 1-supported; 0-not supported.
- is
Tmp number - Whether it is a temporary instance, 0 means no, non-zero means yes.
- locker number
- Asynchronous task process ID when the instance is in an asynchronous task.
- machine string
- Machine Model.
- paymode string
- Payment Mode.
- period
End stringTime - Instance expiration time, the format is 2006-01-02 15:04:05.
- pid number
- Product Type ID.
- qps number
- Maximum Qps value.
- region string
- The name of the region where the instance is located, such as ap-shanghai.
- status number
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- status
Desc string - Description of the current running state of the instance.
- tdsql
Version string - TDSQL version information.
- uin string
- The account to which the instance belongs.
- update
Time string - The last update time of the instance in the format of 2006-01-02 15:04:05.
- vipv6 string
- Intranet IPv6.
- vport number
- Intranet port.
- wan
Domain string - The domain name accessed from the external network, which can be resolved by the public network.
- wan
Port number - Internet port.
- wan
Port numberIpv6 - Internet IPv6 port.
- wan
Status number - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- wan
Status numberIpv6 - Internet IPv6 status.
- wan
Vip string - Extranet IP address, accessible from the public network.
- wan
Vipv6 string - Internet IPv6.
- app_
id float - ID of the application to which the instance belongs.
- cpu float
- Number of CPU cores of the instance.
- create_
time str - Instance creation time, the format is 2006-01-02 15:04:05.
- db_
engine str - Database Engine.
- dcn_
dst_ floatnum - Number of DCN disaster recovery instances.
- dcn_
flag float - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- dcn_
status float - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- excluster_
id str - Exclusive cluster ID, if it is empty, it means a normal instance.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - Instance ID, uniquely identifies a TDSQL instance.
- instance_
type float - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- is_
audit_ floatsupported - Whether the instance supports auditing. 1-supported; 0-not supported.
- is_
encrypt_ floatsupported - Whether data encryption is supported. 1-supported; 0-not supported.
- is_
tmp float - Whether it is a temporary instance, 0 means no, non-zero means yes.
- locker float
- Asynchronous task process ID when the instance is in an asynchronous task.
- machine str
- Machine Model.
- paymode str
- Payment Mode.
- period_
end_ strtime - Instance expiration time, the format is 2006-01-02 15:04:05.
- pid float
- Product Type ID.
- qps float
- Maximum Qps value.
- region str
- The name of the region where the instance is located, such as ap-shanghai.
- status float
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- status_
desc str - Description of the current running state of the instance.
- tdsql_
version str - TDSQL version information.
- uin str
- The account to which the instance belongs.
- update_
time str - The last update time of the instance in the format of 2006-01-02 15:04:05.
- vipv6 str
- Intranet IPv6.
- vport float
- Intranet port.
- wan_
domain str - The domain name accessed from the external network, which can be resolved by the public network.
- wan_
port float - Internet port.
- wan_
port_ floatipv6 - Internet IPv6 port.
- wan_
status float - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- wan_
status_ floatipv6 - Internet IPv6 status.
- wan_
vip str - Extranet IP address, accessible from the public network.
- wan_
vipv6 str - Internet IPv6.
- app
Id Number - ID of the application to which the instance belongs.
- cpu Number
- Number of CPU cores of the instance.
- create
Time String - Instance creation time, the format is 2006-01-02 15:04:05.
- db
Engine String - Database Engine.
- dcn
Dst NumberNum - Number of DCN disaster recovery instances.
- dcn
Flag Number - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- dcn
Status Number - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- excluster
Id String - Exclusive cluster ID, if it is empty, it means a normal instance.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - Instance ID, uniquely identifies a TDSQL instance.
- instance
Type Number - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- is
Audit NumberSupported - Whether the instance supports auditing. 1-supported; 0-not supported.
- is
Encrypt NumberSupported - Whether data encryption is supported. 1-supported; 0-not supported.
- is
Tmp Number - Whether it is a temporary instance, 0 means no, non-zero means yes.
- locker Number
- Asynchronous task process ID when the instance is in an asynchronous task.
- machine String
- Machine Model.
- paymode String
- Payment Mode.
- period
End StringTime - Instance expiration time, the format is 2006-01-02 15:04:05.
- pid Number
- Product Type ID.
- qps Number
- Maximum Qps value.
- region String
- The name of the region where the instance is located, such as ap-shanghai.
- status Number
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- status
Desc String - Description of the current running state of the instance.
- tdsql
Version String - TDSQL version information.
- uin String
- The account to which the instance belongs.
- update
Time String - The last update time of the instance in the format of 2006-01-02 15:04:05.
- vipv6 String
- Intranet IPv6.
- vport Number
- Intranet port.
- wan
Domain String - The domain name accessed from the external network, which can be resolved by the public network.
- wan
Port Number - Internet port.
- wan
Port NumberIpv6 - Internet IPv6 port.
- wan
Status Number - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- wan
Status NumberIpv6 - Internet IPv6 status.
- wan
Vip String - Extranet IP address, accessible from the public network.
- wan
Vipv6 String - Internet IPv6.
Look up Existing MariadbInstance Resource
Get an existing MariadbInstance 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?: MariadbInstanceState, opts?: CustomResourceOptions): MariadbInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[float] = None,
auto_renew_flag: Optional[float] = None,
auto_voucher: Optional[bool] = None,
cpu: Optional[float] = None,
create_time: Optional[str] = None,
db_engine: Optional[str] = None,
db_version_id: Optional[str] = None,
dcn_dst_num: Optional[float] = None,
dcn_flag: Optional[float] = None,
dcn_instance_id: Optional[str] = None,
dcn_region: Optional[str] = None,
dcn_status: Optional[float] = None,
excluster_id: Optional[str] = None,
init_params: Optional[Sequence[MariadbInstanceInitParamArgs]] = None,
instance_id: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type: Optional[float] = None,
ipv6_flag: Optional[float] = None,
is_audit_supported: Optional[float] = None,
is_encrypt_supported: Optional[float] = None,
is_tmp: Optional[float] = None,
locker: Optional[float] = None,
machine: Optional[str] = None,
mariadb_instance_id: Optional[str] = None,
memory: Optional[float] = None,
node_count: Optional[float] = None,
paymode: Optional[str] = None,
period: Optional[float] = None,
period_end_time: Optional[str] = None,
pid: Optional[float] = None,
project_id: Optional[float] = None,
qps: Optional[float] = None,
region: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
status: Optional[float] = None,
status_desc: Optional[str] = None,
storage: Optional[float] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tdsql_version: Optional[str] = None,
uin: Optional[str] = None,
update_time: 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,
wan_domain: Optional[str] = None,
wan_port: Optional[float] = None,
wan_port_ipv6: Optional[float] = None,
wan_status: Optional[float] = None,
wan_status_ipv6: Optional[float] = None,
wan_vip: Optional[str] = None,
wan_vipv6: Optional[str] = None,
zones: Optional[Sequence[str]] = None) -> MariadbInstance
func GetMariadbInstance(ctx *Context, name string, id IDInput, state *MariadbInstanceState, opts ...ResourceOption) (*MariadbInstance, error)
public static MariadbInstance Get(string name, Input<string> id, MariadbInstanceState? state, CustomResourceOptions? opts = null)
public static MariadbInstance get(String name, Output<String> id, MariadbInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MariadbInstance 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.
- App
Id double - ID of the application to which the instance belongs.
- Auto
Renew doubleFlag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- Auto
Voucher bool - Whether to automatically use the voucher for payment, the default is not used.
- Cpu double
- Number of CPU cores of the instance.
- Create
Time string - Instance creation time, the format is 2006-01-02 15:04:05.
- Db
Engine string - Database Engine.
- Db
Version stringId - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- Dcn
Dst doubleNum - Number of DCN disaster recovery instances.
- Dcn
Flag double - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- Dcn
Instance stringId - DCN source instance ID.
- Dcn
Region string - DCN source region.
- Dcn
Status double - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- Excluster
Id string - Exclusive cluster ID, if it is empty, it means a normal instance.
- Init
Params List<MariadbInstance Init Param> - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- Instance
Id string - Instance ID, uniquely identifies a TDSQL instance.
- Instance
Name string - Instance name, you can set the name of the instance independently through this field.
- Instance
Type double - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- Ipv6Flag double
- Whether IPv6 is supported.
- Is
Audit doubleSupported - Whether the instance supports auditing. 1-supported; 0-not supported.
- Is
Encrypt doubleSupported - Whether data encryption is supported. 1-supported; 0-not supported.
- Is
Tmp double - Whether it is a temporary instance, 0 means no, non-zero means yes.
- Locker double
- Asynchronous task process ID when the instance is in an asynchronous task.
- Machine string
- Machine Model.
- Mariadb
Instance stringId - ID of the resource.
- Memory double
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- Node
Count double - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- Paymode string
- Payment Mode.
- Period double
- The duration of the purchase, unit: month.
- Period
End stringTime - Instance expiration time, the format is 2006-01-02 15:04:05.
- Pid double
- Product Type ID.
- 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.
- Qps double
- Maximum Qps value.
- Region string
- The name of the region where the instance is located, such as ap-shanghai.
- Security
Group List<string>Ids - Security group ID list.
- Status double
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- Status
Desc string - Description of the current running state of the instance.
- Storage double
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- Subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- Dictionary<string, string>
- tag list.
- Tdsql
Version string - TDSQL version information.
- Uin string
- The account to which the instance belongs.
- Update
Time string - The last update time of the instance in the format of 2006-01-02 15:04:05.
- Vip string
- Intranet IP address.
- Vipv6 string
- Intranet IPv6.
- Voucher
Ids List<string> - A list of voucher IDs. Currently, only one voucher can be specified.
- Vpc
Id string - Virtual private network ID, if not passed, it means that it is created as a basic network.
- Vport double
- Intranet port.
- Wan
Domain string - The domain name accessed from the external network, which can be resolved by the public network.
- Wan
Port double - Internet port.
- Wan
Port doubleIpv6 - Internet IPv6 port.
- Wan
Status double - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- Wan
Status doubleIpv6 - Internet IPv6 status.
- Wan
Vip string - Extranet IP address, accessible from the public network.
- Wan
Vipv6 string - Internet IPv6.
- Zones List<string>
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
- App
Id float64 - ID of the application to which the instance belongs.
- Auto
Renew float64Flag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- Auto
Voucher bool - Whether to automatically use the voucher for payment, the default is not used.
- Cpu float64
- Number of CPU cores of the instance.
- Create
Time string - Instance creation time, the format is 2006-01-02 15:04:05.
- Db
Engine string - Database Engine.
- Db
Version stringId - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- Dcn
Dst float64Num - Number of DCN disaster recovery instances.
- Dcn
Flag float64 - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- Dcn
Instance stringId - DCN source instance ID.
- Dcn
Region string - DCN source region.
- Dcn
Status float64 - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- Excluster
Id string - Exclusive cluster ID, if it is empty, it means a normal instance.
- Init
Params []MariadbInstance Init Param Args - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- Instance
Id string - Instance ID, uniquely identifies a TDSQL instance.
- Instance
Name string - Instance name, you can set the name of the instance independently through this field.
- Instance
Type float64 - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- Ipv6Flag float64
- Whether IPv6 is supported.
- Is
Audit float64Supported - Whether the instance supports auditing. 1-supported; 0-not supported.
- Is
Encrypt float64Supported - Whether data encryption is supported. 1-supported; 0-not supported.
- Is
Tmp float64 - Whether it is a temporary instance, 0 means no, non-zero means yes.
- Locker float64
- Asynchronous task process ID when the instance is in an asynchronous task.
- Machine string
- Machine Model.
- Mariadb
Instance stringId - ID of the resource.
- Memory float64
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- Node
Count float64 - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- Paymode string
- Payment Mode.
- Period float64
- The duration of the purchase, unit: month.
- Period
End stringTime - Instance expiration time, the format is 2006-01-02 15:04:05.
- Pid float64
- Product Type ID.
- 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.
- Qps float64
- Maximum Qps value.
- Region string
- The name of the region where the instance is located, such as ap-shanghai.
- Security
Group []stringIds - Security group ID list.
- Status float64
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- Status
Desc string - Description of the current running state of the instance.
- Storage float64
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- Subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- map[string]string
- tag list.
- Tdsql
Version string - TDSQL version information.
- Uin string
- The account to which the instance belongs.
- Update
Time string - The last update time of the instance in the format of 2006-01-02 15:04:05.
- Vip string
- Intranet IP address.
- Vipv6 string
- Intranet IPv6.
- Voucher
Ids []string - A list of voucher IDs. Currently, only one voucher can be specified.
- Vpc
Id string - Virtual private network ID, if not passed, it means that it is created as a basic network.
- Vport float64
- Intranet port.
- Wan
Domain string - The domain name accessed from the external network, which can be resolved by the public network.
- Wan
Port float64 - Internet port.
- Wan
Port float64Ipv6 - Internet IPv6 port.
- Wan
Status float64 - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- Wan
Status float64Ipv6 - Internet IPv6 status.
- Wan
Vip string - Extranet IP address, accessible from the public network.
- Wan
Vipv6 string - Internet IPv6.
- Zones []string
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
- app
Id Double - ID of the application to which the instance belongs.
- auto
Renew DoubleFlag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- auto
Voucher Boolean - Whether to automatically use the voucher for payment, the default is not used.
- cpu Double
- Number of CPU cores of the instance.
- create
Time String - Instance creation time, the format is 2006-01-02 15:04:05.
- db
Engine String - Database Engine.
- db
Version StringId - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- dcn
Dst DoubleNum - Number of DCN disaster recovery instances.
- dcn
Flag Double - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- dcn
Instance StringId - DCN source instance ID.
- dcn
Region String - DCN source region.
- dcn
Status Double - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- excluster
Id String - Exclusive cluster ID, if it is empty, it means a normal instance.
- init
Params List<MariadbInstance Init Param> - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- instance
Id String - Instance ID, uniquely identifies a TDSQL instance.
- instance
Name String - Instance name, you can set the name of the instance independently through this field.
- instance
Type Double - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- ipv6Flag Double
- Whether IPv6 is supported.
- is
Audit DoubleSupported - Whether the instance supports auditing. 1-supported; 0-not supported.
- is
Encrypt DoubleSupported - Whether data encryption is supported. 1-supported; 0-not supported.
- is
Tmp Double - Whether it is a temporary instance, 0 means no, non-zero means yes.
- locker Double
- Asynchronous task process ID when the instance is in an asynchronous task.
- machine String
- Machine Model.
- mariadb
Instance StringId - ID of the resource.
- memory Double
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- node
Count Double - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- paymode String
- Payment Mode.
- period Double
- The duration of the purchase, unit: month.
- period
End StringTime - Instance expiration time, the format is 2006-01-02 15:04:05.
- pid Double
- Product Type ID.
- 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.
- qps Double
- Maximum Qps value.
- region String
- The name of the region where the instance is located, such as ap-shanghai.
- security
Group List<String>Ids - Security group ID list.
- status Double
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- status
Desc String - Description of the current running state of the instance.
- storage Double
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- subnet
Id String - Virtual private network subnet ID, required when VpcId is not empty.
- Map<String,String>
- tag list.
- tdsql
Version String - TDSQL version information.
- uin String
- The account to which the instance belongs.
- update
Time String - The last update time of the instance in the format of 2006-01-02 15:04:05.
- vip String
- Intranet IP address.
- vipv6 String
- Intranet IPv6.
- voucher
Ids List<String> - A list of voucher IDs. Currently, only one voucher can be specified.
- vpc
Id String - Virtual private network ID, if not passed, it means that it is created as a basic network.
- vport Double
- Intranet port.
- wan
Domain String - The domain name accessed from the external network, which can be resolved by the public network.
- wan
Port Double - Internet port.
- wan
Port DoubleIpv6 - Internet IPv6 port.
- wan
Status Double - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- wan
Status DoubleIpv6 - Internet IPv6 status.
- wan
Vip String - Extranet IP address, accessible from the public network.
- wan
Vipv6 String - Internet IPv6.
- zones List<String>
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
- app
Id number - ID of the application to which the instance belongs.
- auto
Renew numberFlag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- auto
Voucher boolean - Whether to automatically use the voucher for payment, the default is not used.
- cpu number
- Number of CPU cores of the instance.
- create
Time string - Instance creation time, the format is 2006-01-02 15:04:05.
- db
Engine string - Database Engine.
- db
Version stringId - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- dcn
Dst numberNum - Number of DCN disaster recovery instances.
- dcn
Flag number - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- dcn
Instance stringId - DCN source instance ID.
- dcn
Region string - DCN source region.
- dcn
Status number - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- excluster
Id string - Exclusive cluster ID, if it is empty, it means a normal instance.
- init
Params MariadbInstance Init Param[] - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- instance
Id string - Instance ID, uniquely identifies a TDSQL instance.
- instance
Name string - Instance name, you can set the name of the instance independently through this field.
- instance
Type number - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- ipv6Flag number
- Whether IPv6 is supported.
- is
Audit numberSupported - Whether the instance supports auditing. 1-supported; 0-not supported.
- is
Encrypt numberSupported - Whether data encryption is supported. 1-supported; 0-not supported.
- is
Tmp number - Whether it is a temporary instance, 0 means no, non-zero means yes.
- locker number
- Asynchronous task process ID when the instance is in an asynchronous task.
- machine string
- Machine Model.
- mariadb
Instance stringId - ID of the resource.
- memory number
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- node
Count number - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- paymode string
- Payment Mode.
- period number
- The duration of the purchase, unit: month.
- period
End stringTime - Instance expiration time, the format is 2006-01-02 15:04:05.
- pid number
- Product Type ID.
- 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.
- qps number
- Maximum Qps value.
- region string
- The name of the region where the instance is located, such as ap-shanghai.
- security
Group string[]Ids - Security group ID list.
- status number
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- status
Desc string - Description of the current running state of the instance.
- storage number
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- subnet
Id string - Virtual private network subnet ID, required when VpcId is not empty.
- {[key: string]: string}
- tag list.
- tdsql
Version string - TDSQL version information.
- uin string
- The account to which the instance belongs.
- update
Time string - The last update time of the instance in the format of 2006-01-02 15:04:05.
- vip string
- Intranet IP address.
- vipv6 string
- Intranet IPv6.
- voucher
Ids string[] - A list of voucher IDs. Currently, only one voucher can be specified.
- vpc
Id string - Virtual private network ID, if not passed, it means that it is created as a basic network.
- vport number
- Intranet port.
- wan
Domain string - The domain name accessed from the external network, which can be resolved by the public network.
- wan
Port number - Internet port.
- wan
Port numberIpv6 - Internet IPv6 port.
- wan
Status number - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- wan
Status numberIpv6 - Internet IPv6 status.
- wan
Vip string - Extranet IP address, accessible from the public network.
- wan
Vipv6 string - Internet IPv6.
- zones string[]
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
- app_
id float - ID of the application to which the instance belongs.
- auto_
renew_ floatflag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- auto_
voucher bool - Whether to automatically use the voucher for payment, the default is not used.
- cpu float
- Number of CPU cores of the instance.
- create_
time str - Instance creation time, the format is 2006-01-02 15:04:05.
- db_
engine str - Database Engine.
- db_
version_ strid - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- dcn_
dst_ floatnum - Number of DCN disaster recovery instances.
- dcn_
flag float - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- dcn_
instance_ strid - DCN source instance ID.
- dcn_
region str - DCN source region.
- dcn_
status float - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- excluster_
id str - Exclusive cluster ID, if it is empty, it means a normal instance.
- init_
params Sequence[MariadbInstance Init Param Args] - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- instance_
id str - Instance ID, uniquely identifies a TDSQL instance.
- instance_
name str - Instance name, you can set the name of the instance independently through this field.
- instance_
type float - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- ipv6_
flag float - Whether IPv6 is supported.
- is_
audit_ floatsupported - Whether the instance supports auditing. 1-supported; 0-not supported.
- is_
encrypt_ floatsupported - Whether data encryption is supported. 1-supported; 0-not supported.
- is_
tmp float - Whether it is a temporary instance, 0 means no, non-zero means yes.
- locker float
- Asynchronous task process ID when the instance is in an asynchronous task.
- machine str
- Machine Model.
- mariadb_
instance_ strid - ID of the resource.
- memory float
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- node_
count float - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- paymode str
- Payment Mode.
- period float
- The duration of the purchase, unit: month.
- period_
end_ strtime - Instance expiration time, the format is 2006-01-02 15:04:05.
- pid float
- Product Type ID.
- 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.
- qps float
- Maximum Qps value.
- region str
- The name of the region where the instance is located, such as ap-shanghai.
- security_
group_ Sequence[str]ids - Security group ID list.
- status float
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- status_
desc str - Description of the current running state of the instance.
- storage float
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- subnet_
id str - Virtual private network subnet ID, required when VpcId is not empty.
- Mapping[str, str]
- tag list.
- tdsql_
version str - TDSQL version information.
- uin str
- The account to which the instance belongs.
- update_
time str - The last update time of the instance in the format of 2006-01-02 15:04:05.
- vip str
- Intranet IP address.
- vipv6 str
- Intranet IPv6.
- voucher_
ids Sequence[str] - A list of voucher IDs. Currently, only one voucher can be specified.
- vpc_
id str - Virtual private network ID, if not passed, it means that it is created as a basic network.
- vport float
- Intranet port.
- wan_
domain str - The domain name accessed from the external network, which can be resolved by the public network.
- wan_
port float - Internet port.
- wan_
port_ floatipv6 - Internet IPv6 port.
- wan_
status float - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- wan_
status_ floatipv6 - Internet IPv6 status.
- wan_
vip str - Extranet IP address, accessible from the public network.
- wan_
vipv6 str - Internet IPv6.
- zones Sequence[str]
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
- app
Id Number - ID of the application to which the instance belongs.
- auto
Renew NumberFlag - Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
- auto
Voucher Boolean - Whether to automatically use the voucher for payment, the default is not used.
- cpu Number
- Number of CPU cores of the instance.
- create
Time String - Instance creation time, the format is 2006-01-02 15:04:05.
- db
Engine String - Database Engine.
- db
Version StringId - Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
- dcn
Dst NumberNum - Number of DCN disaster recovery instances.
- dcn
Flag Number - DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
- dcn
Instance StringId - DCN source instance ID.
- dcn
Region String - DCN source region.
- dcn
Status Number - DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
- excluster
Id String - Exclusive cluster ID, if it is empty, it means a normal instance.
- init
Params List<Property Map> - Parameter list. The optional values of this interface are: character_set_server (character set, required) enum: utf8,latin1,gbk,utf8mb4,gb18030, lower_case_table_names (table name case sensitive, required, 0 - sensitive; 1 - insensitive), innodb_page_size (innodb data page, Default 16K), sync_mode (sync mode: 0 - asynchronous; 1 - strong synchronous; 2 - strong synchronous can degenerate. The default is strong synchronous can degenerate).
- instance
Id String - Instance ID, uniquely identifies a TDSQL instance.
- instance
Name String - Instance name, you can set the name of the instance independently through this field.
- instance
Type Number - 1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
- ipv6Flag Number
- Whether IPv6 is supported.
- is
Audit NumberSupported - Whether the instance supports auditing. 1-supported; 0-not supported.
- is
Encrypt NumberSupported - Whether data encryption is supported. 1-supported; 0-not supported.
- is
Tmp Number - Whether it is a temporary instance, 0 means no, non-zero means yes.
- locker Number
- Asynchronous task process ID when the instance is in an asynchronous task.
- machine String
- Machine Model.
- mariadb
Instance StringId - ID of the resource.
- memory Number
- Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
- node
Count Number - Number of nodes, 2 is one master and one slave, 3 is one master and two slaves.
- paymode String
- Payment Mode.
- period Number
- The duration of the purchase, unit: month.
- period
End StringTime - Instance expiration time, the format is 2006-01-02 15:04:05.
- pid Number
- Product Type ID.
- 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.
- qps Number
- Maximum Qps value.
- region String
- The name of the region where the instance is located, such as ap-shanghai.
- security
Group List<String>Ids - Security group ID list.
- status Number
- Instance status: 0 creating, 1 process processing, 2 running, 3 instance not initialized, -1 instance isolated, 4 instance initializing, 5 instance deleting, 6 instance restarting, 7 data migration.
- status
Desc String - Description of the current running state of the instance.
- storage Number
- Storage size, unit: GB. You can query instance specifications through DescribeDBInstanceSpecs to obtain the lower and upper limits of disk specifications corresponding to different memory sizes.
- subnet
Id String - Virtual private network subnet ID, required when VpcId is not empty.
- Map<String>
- tag list.
- tdsql
Version String - TDSQL version information.
- uin String
- The account to which the instance belongs.
- update
Time String - The last update time of the instance in the format of 2006-01-02 15:04:05.
- vip String
- Intranet IP address.
- vipv6 String
- Intranet IPv6.
- voucher
Ids List<String> - A list of voucher IDs. Currently, only one voucher can be specified.
- vpc
Id String - Virtual private network ID, if not passed, it means that it is created as a basic network.
- vport Number
- Intranet port.
- wan
Domain String - The domain name accessed from the external network, which can be resolved by the public network.
- wan
Port Number - Internet port.
- wan
Port NumberIpv6 - Internet IPv6 port.
- wan
Status Number - External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
- wan
Status NumberIpv6 - Internet IPv6 status.
- wan
Vip String - Extranet IP address, accessible from the public network.
- wan
Vipv6 String - Internet IPv6.
- zones List<String>
- Instance node availability zone distribution, up to two availability zones can be filled. When the shard specification is one master and two slaves, two of the nodes are in the first availability zone.
Supporting Types
MariadbInstanceInitParam, MariadbInstanceInitParamArgs
Import
mariadb tencentcloud_mariadb_instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/mariadbInstance:MariadbInstance instance tdsql-4pzs5b67
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.