1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MariadbInstance
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.MariadbInstance

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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.
    NodeCount 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.
    AutoRenewFlag double
    Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
    AutoVoucher bool
    Whether to automatically use the voucher for payment, the default is not used.
    DbVersionId string
    Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
    DcnInstanceId string
    DCN source instance ID.
    DcnRegion string
    DCN source region.
    InitParams List<MariadbInstanceInitParam>
    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).
    InstanceName string
    Instance name, you can set the name of the instance independently through this field.
    Ipv6Flag double
    Whether IPv6 is supported.
    MariadbInstanceId string
    ID of the resource.
    Period double
    The duration of the purchase, unit: month.
    ProjectId double
    Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
    SecurityGroupIds List<string>
    Security group ID list.
    SubnetId string
    Virtual private network subnet ID, required when VpcId is not empty.
    Tags Dictionary<string, string>
    tag list.
    Vip string
    Intranet IP address.
    VoucherIds List<string>
    A list of voucher IDs. Currently, only one voucher can be specified.
    VpcId 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.
    NodeCount 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.
    AutoRenewFlag float64
    Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
    AutoVoucher bool
    Whether to automatically use the voucher for payment, the default is not used.
    DbVersionId string
    Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
    DcnInstanceId string
    DCN source instance ID.
    DcnRegion string
    DCN source region.
    InitParams []MariadbInstanceInitParamArgs
    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).
    InstanceName string
    Instance name, you can set the name of the instance independently through this field.
    Ipv6Flag float64
    Whether IPv6 is supported.
    MariadbInstanceId string
    ID of the resource.
    Period float64
    The duration of the purchase, unit: month.
    ProjectId float64
    Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
    SecurityGroupIds []string
    Security group ID list.
    SubnetId string
    Virtual private network subnet ID, required when VpcId is not empty.
    Tags map[string]string
    tag list.
    Vip string
    Intranet IP address.
    VoucherIds []string
    A list of voucher IDs. Currently, only one voucher can be specified.
    VpcId 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.
    nodeCount 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.
    autoRenewFlag Double
    Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
    autoVoucher Boolean
    Whether to automatically use the voucher for payment, the default is not used.
    dbVersionId String
    Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
    dcnInstanceId String
    DCN source instance ID.
    dcnRegion String
    DCN source region.
    initParams List<MariadbInstanceInitParam>
    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).
    instanceName String
    Instance name, you can set the name of the instance independently through this field.
    ipv6Flag Double
    Whether IPv6 is supported.
    mariadbInstanceId String
    ID of the resource.
    period Double
    The duration of the purchase, unit: month.
    projectId Double
    Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
    securityGroupIds List<String>
    Security group ID list.
    subnetId String
    Virtual private network subnet ID, required when VpcId is not empty.
    tags Map<String,String>
    tag list.
    vip String
    Intranet IP address.
    voucherIds List<String>
    A list of voucher IDs. Currently, only one voucher can be specified.
    vpcId 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.
    nodeCount 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.
    autoRenewFlag number
    Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
    autoVoucher boolean
    Whether to automatically use the voucher for payment, the default is not used.
    dbVersionId string
    Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
    dcnInstanceId string
    DCN source instance ID.
    dcnRegion string
    DCN source region.
    initParams MariadbInstanceInitParam[]
    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).
    instanceName string
    Instance name, you can set the name of the instance independently through this field.
    ipv6Flag number
    Whether IPv6 is supported.
    mariadbInstanceId string
    ID of the resource.
    period number
    The duration of the purchase, unit: month.
    projectId number
    Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
    securityGroupIds string[]
    Security group ID list.
    subnetId string
    Virtual private network subnet ID, required when VpcId is not empty.
    tags {[key: string]: string}
    tag list.
    vip string
    Intranet IP address.
    voucherIds string[]
    A list of voucher IDs. Currently, only one voucher can be specified.
    vpcId 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_flag float
    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_id str
    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_id str
    DCN source instance ID.
    dcn_region str
    DCN source region.
    init_params Sequence[MariadbInstanceInitParamArgs]
    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_id str
    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_ids Sequence[str]
    Security group ID list.
    subnet_id str
    Virtual private network subnet ID, required when VpcId is not empty.
    tags 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.
    nodeCount 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.
    autoRenewFlag Number
    Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
    autoVoucher Boolean
    Whether to automatically use the voucher for payment, the default is not used.
    dbVersionId String
    Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
    dcnInstanceId String
    DCN source instance ID.
    dcnRegion String
    DCN source region.
    initParams 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).
    instanceName String
    Instance name, you can set the name of the instance independently through this field.
    ipv6Flag Number
    Whether IPv6 is supported.
    mariadbInstanceId String
    ID of the resource.
    period Number
    The duration of the purchase, unit: month.
    projectId Number
    Project ID, which can be obtained by viewing the project list, if not passed, it will be associated with the default project.
    securityGroupIds List<String>
    Security group ID list.
    subnetId String
    Virtual private network subnet ID, required when VpcId is not empty.
    tags Map<String>
    tag list.
    vip String
    Intranet IP address.
    voucherIds List<String>
    A list of voucher IDs. Currently, only one voucher can be specified.
    vpcId 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:

    AppId double
    ID of the application to which the instance belongs.
    Cpu double
    Number of CPU cores of the instance.
    CreateTime string
    Instance creation time, the format is 2006-01-02 15:04:05.
    DbEngine string
    Database Engine.
    DcnDstNum double
    Number of DCN disaster recovery instances.
    DcnFlag double
    DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
    DcnStatus double
    DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
    ExclusterId string
    Exclusive cluster ID, if it is empty, it means a normal instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Instance ID, uniquely identifies a TDSQL instance.
    InstanceType double
    1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
    IsAuditSupported double
    Whether the instance supports auditing. 1-supported; 0-not supported.
    IsEncryptSupported double
    Whether data encryption is supported. 1-supported; 0-not supported.
    IsTmp 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.
    PeriodEndTime string
    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.
    StatusDesc string
    Description of the current running state of the instance.
    TdsqlVersion string
    TDSQL version information.
    Uin string
    The account to which the instance belongs.
    UpdateTime 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.
    WanDomain string
    The domain name accessed from the external network, which can be resolved by the public network.
    WanPort double
    Internet port.
    WanPortIpv6 double
    Internet IPv6 port.
    WanStatus double
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    WanStatusIpv6 double
    Internet IPv6 status.
    WanVip string
    Extranet IP address, accessible from the public network.
    WanVipv6 string
    Internet IPv6.
    AppId float64
    ID of the application to which the instance belongs.
    Cpu float64
    Number of CPU cores of the instance.
    CreateTime string
    Instance creation time, the format is 2006-01-02 15:04:05.
    DbEngine string
    Database Engine.
    DcnDstNum float64
    Number of DCN disaster recovery instances.
    DcnFlag float64
    DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
    DcnStatus float64
    DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
    ExclusterId string
    Exclusive cluster ID, if it is empty, it means a normal instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Instance ID, uniquely identifies a TDSQL instance.
    InstanceType float64
    1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
    IsAuditSupported float64
    Whether the instance supports auditing. 1-supported; 0-not supported.
    IsEncryptSupported float64
    Whether data encryption is supported. 1-supported; 0-not supported.
    IsTmp 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.
    PeriodEndTime string
    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.
    StatusDesc string
    Description of the current running state of the instance.
    TdsqlVersion string
    TDSQL version information.
    Uin string
    The account to which the instance belongs.
    UpdateTime 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.
    WanDomain string
    The domain name accessed from the external network, which can be resolved by the public network.
    WanPort float64
    Internet port.
    WanPortIpv6 float64
    Internet IPv6 port.
    WanStatus float64
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    WanStatusIpv6 float64
    Internet IPv6 status.
    WanVip string
    Extranet IP address, accessible from the public network.
    WanVipv6 string
    Internet IPv6.
    appId Double
    ID of the application to which the instance belongs.
    cpu Double
    Number of CPU cores of the instance.
    createTime String
    Instance creation time, the format is 2006-01-02 15:04:05.
    dbEngine String
    Database Engine.
    dcnDstNum Double
    Number of DCN disaster recovery instances.
    dcnFlag Double
    DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
    dcnStatus Double
    DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
    exclusterId String
    Exclusive cluster ID, if it is empty, it means a normal instance.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    Instance ID, uniquely identifies a TDSQL instance.
    instanceType Double
    1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
    isAuditSupported Double
    Whether the instance supports auditing. 1-supported; 0-not supported.
    isEncryptSupported Double
    Whether data encryption is supported. 1-supported; 0-not supported.
    isTmp 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.
    periodEndTime String
    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.
    statusDesc String
    Description of the current running state of the instance.
    tdsqlVersion String
    TDSQL version information.
    uin String
    The account to which the instance belongs.
    updateTime 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.
    wanDomain String
    The domain name accessed from the external network, which can be resolved by the public network.
    wanPort Double
    Internet port.
    wanPortIpv6 Double
    Internet IPv6 port.
    wanStatus Double
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    wanStatusIpv6 Double
    Internet IPv6 status.
    wanVip String
    Extranet IP address, accessible from the public network.
    wanVipv6 String
    Internet IPv6.
    appId number
    ID of the application to which the instance belongs.
    cpu number
    Number of CPU cores of the instance.
    createTime string
    Instance creation time, the format is 2006-01-02 15:04:05.
    dbEngine string
    Database Engine.
    dcnDstNum number
    Number of DCN disaster recovery instances.
    dcnFlag number
    DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
    dcnStatus number
    DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
    exclusterId string
    Exclusive cluster ID, if it is empty, it means a normal instance.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    Instance ID, uniquely identifies a TDSQL instance.
    instanceType number
    1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
    isAuditSupported number
    Whether the instance supports auditing. 1-supported; 0-not supported.
    isEncryptSupported number
    Whether data encryption is supported. 1-supported; 0-not supported.
    isTmp 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.
    periodEndTime string
    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.
    statusDesc string
    Description of the current running state of the instance.
    tdsqlVersion string
    TDSQL version information.
    uin string
    The account to which the instance belongs.
    updateTime 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.
    wanDomain string
    The domain name accessed from the external network, which can be resolved by the public network.
    wanPort number
    Internet port.
    wanPortIpv6 number
    Internet IPv6 port.
    wanStatus number
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    wanStatusIpv6 number
    Internet IPv6 status.
    wanVip string
    Extranet IP address, accessible from the public network.
    wanVipv6 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_num float
    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_supported float
    Whether the instance supports auditing. 1-supported; 0-not supported.
    is_encrypt_supported float
    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_time str
    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_ipv6 float
    Internet IPv6 port.
    wan_status float
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    wan_status_ipv6 float
    Internet IPv6 status.
    wan_vip str
    Extranet IP address, accessible from the public network.
    wan_vipv6 str
    Internet IPv6.
    appId Number
    ID of the application to which the instance belongs.
    cpu Number
    Number of CPU cores of the instance.
    createTime String
    Instance creation time, the format is 2006-01-02 15:04:05.
    dbEngine String
    Database Engine.
    dcnDstNum Number
    Number of DCN disaster recovery instances.
    dcnFlag Number
    DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
    dcnStatus Number
    DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
    exclusterId String
    Exclusive cluster ID, if it is empty, it means a normal instance.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    Instance ID, uniquely identifies a TDSQL instance.
    instanceType Number
    1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
    isAuditSupported Number
    Whether the instance supports auditing. 1-supported; 0-not supported.
    isEncryptSupported Number
    Whether data encryption is supported. 1-supported; 0-not supported.
    isTmp 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.
    periodEndTime String
    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.
    statusDesc String
    Description of the current running state of the instance.
    tdsqlVersion String
    TDSQL version information.
    uin String
    The account to which the instance belongs.
    updateTime 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.
    wanDomain String
    The domain name accessed from the external network, which can be resolved by the public network.
    wanPort Number
    Internet port.
    wanPortIpv6 Number
    Internet IPv6 port.
    wanStatus Number
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    wanStatusIpv6 Number
    Internet IPv6 status.
    wanVip String
    Extranet IP address, accessible from the public network.
    wanVipv6 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.
    The following state arguments are supported:
    AppId double
    ID of the application to which the instance belongs.
    AutoRenewFlag double
    Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
    AutoVoucher bool
    Whether to automatically use the voucher for payment, the default is not used.
    Cpu double
    Number of CPU cores of the instance.
    CreateTime string
    Instance creation time, the format is 2006-01-02 15:04:05.
    DbEngine string
    Database Engine.
    DbVersionId string
    Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
    DcnDstNum double
    Number of DCN disaster recovery instances.
    DcnFlag double
    DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
    DcnInstanceId string
    DCN source instance ID.
    DcnRegion string
    DCN source region.
    DcnStatus double
    DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
    ExclusterId string
    Exclusive cluster ID, if it is empty, it means a normal instance.
    InitParams List<MariadbInstanceInitParam>
    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).
    InstanceId string
    Instance ID, uniquely identifies a TDSQL instance.
    InstanceName string
    Instance name, you can set the name of the instance independently through this field.
    InstanceType double
    1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
    Ipv6Flag double
    Whether IPv6 is supported.
    IsAuditSupported double
    Whether the instance supports auditing. 1-supported; 0-not supported.
    IsEncryptSupported double
    Whether data encryption is supported. 1-supported; 0-not supported.
    IsTmp 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.
    MariadbInstanceId string
    ID of the resource.
    Memory double
    Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
    NodeCount 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.
    PeriodEndTime string
    Instance expiration time, the format is 2006-01-02 15:04:05.
    Pid double
    Product Type ID.
    ProjectId 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.
    SecurityGroupIds List<string>
    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.
    StatusDesc 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.
    SubnetId string
    Virtual private network subnet ID, required when VpcId is not empty.
    Tags Dictionary<string, string>
    tag list.
    TdsqlVersion string
    TDSQL version information.
    Uin string
    The account to which the instance belongs.
    UpdateTime 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.
    VoucherIds List<string>
    A list of voucher IDs. Currently, only one voucher can be specified.
    VpcId string
    Virtual private network ID, if not passed, it means that it is created as a basic network.
    Vport double
    Intranet port.
    WanDomain string
    The domain name accessed from the external network, which can be resolved by the public network.
    WanPort double
    Internet port.
    WanPortIpv6 double
    Internet IPv6 port.
    WanStatus double
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    WanStatusIpv6 double
    Internet IPv6 status.
    WanVip string
    Extranet IP address, accessible from the public network.
    WanVipv6 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.
    AppId float64
    ID of the application to which the instance belongs.
    AutoRenewFlag float64
    Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
    AutoVoucher bool
    Whether to automatically use the voucher for payment, the default is not used.
    Cpu float64
    Number of CPU cores of the instance.
    CreateTime string
    Instance creation time, the format is 2006-01-02 15:04:05.
    DbEngine string
    Database Engine.
    DbVersionId string
    Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
    DcnDstNum float64
    Number of DCN disaster recovery instances.
    DcnFlag float64
    DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
    DcnInstanceId string
    DCN source instance ID.
    DcnRegion string
    DCN source region.
    DcnStatus float64
    DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
    ExclusterId string
    Exclusive cluster ID, if it is empty, it means a normal instance.
    InitParams []MariadbInstanceInitParamArgs
    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).
    InstanceId string
    Instance ID, uniquely identifies a TDSQL instance.
    InstanceName string
    Instance name, you can set the name of the instance independently through this field.
    InstanceType float64
    1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
    Ipv6Flag float64
    Whether IPv6 is supported.
    IsAuditSupported float64
    Whether the instance supports auditing. 1-supported; 0-not supported.
    IsEncryptSupported float64
    Whether data encryption is supported. 1-supported; 0-not supported.
    IsTmp 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.
    MariadbInstanceId string
    ID of the resource.
    Memory float64
    Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
    NodeCount 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.
    PeriodEndTime string
    Instance expiration time, the format is 2006-01-02 15:04:05.
    Pid float64
    Product Type ID.
    ProjectId 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.
    SecurityGroupIds []string
    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.
    StatusDesc 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.
    SubnetId string
    Virtual private network subnet ID, required when VpcId is not empty.
    Tags map[string]string
    tag list.
    TdsqlVersion string
    TDSQL version information.
    Uin string
    The account to which the instance belongs.
    UpdateTime 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.
    VoucherIds []string
    A list of voucher IDs. Currently, only one voucher can be specified.
    VpcId string
    Virtual private network ID, if not passed, it means that it is created as a basic network.
    Vport float64
    Intranet port.
    WanDomain string
    The domain name accessed from the external network, which can be resolved by the public network.
    WanPort float64
    Internet port.
    WanPortIpv6 float64
    Internet IPv6 port.
    WanStatus float64
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    WanStatusIpv6 float64
    Internet IPv6 status.
    WanVip string
    Extranet IP address, accessible from the public network.
    WanVipv6 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.
    appId Double
    ID of the application to which the instance belongs.
    autoRenewFlag Double
    Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
    autoVoucher Boolean
    Whether to automatically use the voucher for payment, the default is not used.
    cpu Double
    Number of CPU cores of the instance.
    createTime String
    Instance creation time, the format is 2006-01-02 15:04:05.
    dbEngine String
    Database Engine.
    dbVersionId String
    Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
    dcnDstNum Double
    Number of DCN disaster recovery instances.
    dcnFlag Double
    DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
    dcnInstanceId String
    DCN source instance ID.
    dcnRegion String
    DCN source region.
    dcnStatus Double
    DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
    exclusterId String
    Exclusive cluster ID, if it is empty, it means a normal instance.
    initParams List<MariadbInstanceInitParam>
    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).
    instanceId String
    Instance ID, uniquely identifies a TDSQL instance.
    instanceName String
    Instance name, you can set the name of the instance independently through this field.
    instanceType Double
    1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
    ipv6Flag Double
    Whether IPv6 is supported.
    isAuditSupported Double
    Whether the instance supports auditing. 1-supported; 0-not supported.
    isEncryptSupported Double
    Whether data encryption is supported. 1-supported; 0-not supported.
    isTmp 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.
    mariadbInstanceId String
    ID of the resource.
    memory Double
    Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
    nodeCount 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.
    periodEndTime String
    Instance expiration time, the format is 2006-01-02 15:04:05.
    pid Double
    Product Type ID.
    projectId 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.
    securityGroupIds List<String>
    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.
    statusDesc 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.
    subnetId String
    Virtual private network subnet ID, required when VpcId is not empty.
    tags Map<String,String>
    tag list.
    tdsqlVersion String
    TDSQL version information.
    uin String
    The account to which the instance belongs.
    updateTime 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.
    voucherIds List<String>
    A list of voucher IDs. Currently, only one voucher can be specified.
    vpcId String
    Virtual private network ID, if not passed, it means that it is created as a basic network.
    vport Double
    Intranet port.
    wanDomain String
    The domain name accessed from the external network, which can be resolved by the public network.
    wanPort Double
    Internet port.
    wanPortIpv6 Double
    Internet IPv6 port.
    wanStatus Double
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    wanStatusIpv6 Double
    Internet IPv6 status.
    wanVip String
    Extranet IP address, accessible from the public network.
    wanVipv6 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.
    appId number
    ID of the application to which the instance belongs.
    autoRenewFlag number
    Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
    autoVoucher boolean
    Whether to automatically use the voucher for payment, the default is not used.
    cpu number
    Number of CPU cores of the instance.
    createTime string
    Instance creation time, the format is 2006-01-02 15:04:05.
    dbEngine string
    Database Engine.
    dbVersionId string
    Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
    dcnDstNum number
    Number of DCN disaster recovery instances.
    dcnFlag number
    DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
    dcnInstanceId string
    DCN source instance ID.
    dcnRegion string
    DCN source region.
    dcnStatus number
    DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
    exclusterId string
    Exclusive cluster ID, if it is empty, it means a normal instance.
    initParams MariadbInstanceInitParam[]
    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).
    instanceId string
    Instance ID, uniquely identifies a TDSQL instance.
    instanceName string
    Instance name, you can set the name of the instance independently through this field.
    instanceType number
    1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
    ipv6Flag number
    Whether IPv6 is supported.
    isAuditSupported number
    Whether the instance supports auditing. 1-supported; 0-not supported.
    isEncryptSupported number
    Whether data encryption is supported. 1-supported; 0-not supported.
    isTmp 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.
    mariadbInstanceId string
    ID of the resource.
    memory number
    Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
    nodeCount 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.
    periodEndTime string
    Instance expiration time, the format is 2006-01-02 15:04:05.
    pid number
    Product Type ID.
    projectId 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.
    securityGroupIds string[]
    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.
    statusDesc 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.
    subnetId string
    Virtual private network subnet ID, required when VpcId is not empty.
    tags {[key: string]: string}
    tag list.
    tdsqlVersion string
    TDSQL version information.
    uin string
    The account to which the instance belongs.
    updateTime 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.
    voucherIds string[]
    A list of voucher IDs. Currently, only one voucher can be specified.
    vpcId string
    Virtual private network ID, if not passed, it means that it is created as a basic network.
    vport number
    Intranet port.
    wanDomain string
    The domain name accessed from the external network, which can be resolved by the public network.
    wanPort number
    Internet port.
    wanPortIpv6 number
    Internet IPv6 port.
    wanStatus number
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    wanStatusIpv6 number
    Internet IPv6 status.
    wanVip string
    Extranet IP address, accessible from the public network.
    wanVipv6 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_flag float
    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_id str
    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_num float
    Number of DCN disaster recovery instances.
    dcn_flag float
    DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
    dcn_instance_id str
    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[MariadbInstanceInitParamArgs]
    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_supported float
    Whether the instance supports auditing. 1-supported; 0-not supported.
    is_encrypt_supported float
    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_id str
    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_time str
    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_ids Sequence[str]
    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.
    tags 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_ipv6 float
    Internet IPv6 port.
    wan_status float
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    wan_status_ipv6 float
    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.
    appId Number
    ID of the application to which the instance belongs.
    autoRenewFlag Number
    Automatic renewal flag, 1: automatic renewal, 2: no automatic renewal.
    autoVoucher Boolean
    Whether to automatically use the voucher for payment, the default is not used.
    cpu Number
    Number of CPU cores of the instance.
    createTime String
    Instance creation time, the format is 2006-01-02 15:04:05.
    dbEngine String
    Database Engine.
    dbVersionId String
    Database engine version, currently available: 8.0.18, 10.1.9, 5.7.17. If not passed, the default is Percona 5.7.17.
    dcnDstNum Number
    Number of DCN disaster recovery instances.
    dcnFlag Number
    DCN flag, 0-none, 1-primary instance, 2-disaster backup instance.
    dcnInstanceId String
    DCN source instance ID.
    dcnRegion String
    DCN source region.
    dcnStatus Number
    DCN status, 0-none, 1-creating, 2-synchronizing, 3-disconnected.
    exclusterId String
    Exclusive cluster ID, if it is empty, it means a normal instance.
    initParams 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).
    instanceId String
    Instance ID, uniquely identifies a TDSQL instance.
    instanceName String
    Instance name, you can set the name of the instance independently through this field.
    instanceType Number
    1: primary instance (exclusive), 2: primary instance, 3: disaster recovery instance, 4: disaster recovery instance (exclusive type).
    ipv6Flag Number
    Whether IPv6 is supported.
    isAuditSupported Number
    Whether the instance supports auditing. 1-supported; 0-not supported.
    isEncryptSupported Number
    Whether data encryption is supported. 1-supported; 0-not supported.
    isTmp 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.
    mariadbInstanceId String
    ID of the resource.
    memory Number
    Memory size, unit: GB, can be obtained by querying instance specifications through DescribeDBInstanceSpecs.
    nodeCount 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.
    periodEndTime String
    Instance expiration time, the format is 2006-01-02 15:04:05.
    pid Number
    Product Type ID.
    projectId 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.
    securityGroupIds List<String>
    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.
    statusDesc 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.
    subnetId String
    Virtual private network subnet ID, required when VpcId is not empty.
    tags Map<String>
    tag list.
    tdsqlVersion String
    TDSQL version information.
    uin String
    The account to which the instance belongs.
    updateTime 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.
    voucherIds List<String>
    A list of voucher IDs. Currently, only one voucher can be specified.
    vpcId String
    Virtual private network ID, if not passed, it means that it is created as a basic network.
    vport Number
    Intranet port.
    wanDomain String
    The domain name accessed from the external network, which can be resolved by the public network.
    wanPort Number
    Internet port.
    wanPortIpv6 Number
    Internet IPv6 port.
    wanStatus Number
    External network status, 0-unopened; 1-opened; 2-closed; 3-opening.
    wanStatusIpv6 Number
    Internet IPv6 status.
    wanVip String
    Extranet IP address, accessible from the public network.
    wanVipv6 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

    Param string
    parameter name.
    Value string
    parameter value.
    Param string
    parameter name.
    Value string
    parameter value.
    param String
    parameter name.
    value String
    parameter value.
    param string
    parameter name.
    value string
    parameter value.
    param str
    parameter name.
    value str
    parameter value.
    param String
    parameter name.
    value String
    parameter value.

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack