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

tencentcloud.getMysqlInstance

Explore with Pulumi AI

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

    Use this data source to get information about a MySQL instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const mysql = tencentcloud.getMysqlInstance({
        mysqlId: "cdb-fitq5t9h",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    mysql = tencentcloud.get_mysql_instance(mysql_id="cdb-fitq5t9h")
    
    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.LookupMysqlInstance(ctx, &tencentcloud.LookupMysqlInstanceArgs{
    			MysqlId: pulumi.StringRef("cdb-fitq5t9h"),
    		}, nil)
    		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 mysql = Tencentcloud.GetMysqlInstance.Invoke(new()
        {
            MysqlId = "cdb-fitq5t9h",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetMysqlInstanceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var mysql = TencentcloudFunctions.getMysqlInstance(GetMysqlInstanceArgs.builder()
                .mysqlId("cdb-fitq5t9h")
                .build());
    
        }
    }
    
    variables:
      mysql:
        fn::invoke:
          function: tencentcloud:getMysqlInstance
          arguments:
            mysqlId: cdb-fitq5t9h
    

    Using getMysqlInstance

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getMysqlInstance(args: GetMysqlInstanceArgs, opts?: InvokeOptions): Promise<GetMysqlInstanceResult>
    function getMysqlInstanceOutput(args: GetMysqlInstanceOutputArgs, opts?: InvokeOptions): Output<GetMysqlInstanceResult>
    def get_mysql_instance(charge_type: Optional[str] = None,
                           engine_version: Optional[str] = None,
                           id: Optional[str] = None,
                           init_flag: Optional[float] = None,
                           instance_name: Optional[str] = None,
                           instance_role: Optional[str] = None,
                           limit: Optional[float] = None,
                           mysql_id: Optional[str] = None,
                           offset: Optional[float] = None,
                           pay_type: Optional[float] = None,
                           result_output_file: Optional[str] = None,
                           security_group_id: Optional[str] = None,
                           status: Optional[float] = None,
                           with_dr: Optional[float] = None,
                           with_master: Optional[float] = None,
                           with_ro: Optional[float] = None,
                           opts: Optional[InvokeOptions] = None) -> GetMysqlInstanceResult
    def get_mysql_instance_output(charge_type: Optional[pulumi.Input[str]] = None,
                           engine_version: Optional[pulumi.Input[str]] = None,
                           id: Optional[pulumi.Input[str]] = None,
                           init_flag: Optional[pulumi.Input[float]] = None,
                           instance_name: Optional[pulumi.Input[str]] = None,
                           instance_role: Optional[pulumi.Input[str]] = None,
                           limit: Optional[pulumi.Input[float]] = None,
                           mysql_id: Optional[pulumi.Input[str]] = None,
                           offset: Optional[pulumi.Input[float]] = None,
                           pay_type: Optional[pulumi.Input[float]] = None,
                           result_output_file: Optional[pulumi.Input[str]] = None,
                           security_group_id: Optional[pulumi.Input[str]] = None,
                           status: Optional[pulumi.Input[float]] = None,
                           with_dr: Optional[pulumi.Input[float]] = None,
                           with_master: Optional[pulumi.Input[float]] = None,
                           with_ro: Optional[pulumi.Input[float]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetMysqlInstanceResult]
    func LookupMysqlInstance(ctx *Context, args *LookupMysqlInstanceArgs, opts ...InvokeOption) (*LookupMysqlInstanceResult, error)
    func LookupMysqlInstanceOutput(ctx *Context, args *LookupMysqlInstanceOutputArgs, opts ...InvokeOption) LookupMysqlInstanceResultOutput

    > Note: This function is named LookupMysqlInstance in the Go SDK.

    public static class GetMysqlInstance 
    {
        public static Task<GetMysqlInstanceResult> InvokeAsync(GetMysqlInstanceArgs args, InvokeOptions? opts = null)
        public static Output<GetMysqlInstanceResult> Invoke(GetMysqlInstanceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMysqlInstanceResult> getMysqlInstance(GetMysqlInstanceArgs args, InvokeOptions options)
    public static Output<GetMysqlInstanceResult> getMysqlInstance(GetMysqlInstanceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMysqlInstance:getMysqlInstance
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ChargeType string
    Pay type of instance, valid values are PREPAID and POSTPAID.
    EngineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    Id string
    InitFlag double
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    InstanceName string
    Name of mysql instance.
    InstanceRole string
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    Limit double
    Number of results returned for a single request. Default is 20, and maximum is 2000.
    MysqlId string
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    Offset double
    Record offset. Default is 0.
    PayType double
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.

    Deprecated: Deprecated

    ResultOutputFile string
    Used to store results.
    SecurityGroupId string
    Security groups ID of instance.
    Status double
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    WithDr double
    Indicates whether to query disaster recovery instances.
    WithMaster double
    Indicates whether to query master instances.
    WithRo double
    Indicates whether to query read-only instances.
    ChargeType string
    Pay type of instance, valid values are PREPAID and POSTPAID.
    EngineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    Id string
    InitFlag float64
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    InstanceName string
    Name of mysql instance.
    InstanceRole string
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    Limit float64
    Number of results returned for a single request. Default is 20, and maximum is 2000.
    MysqlId string
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    Offset float64
    Record offset. Default is 0.
    PayType float64
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.

    Deprecated: Deprecated

    ResultOutputFile string
    Used to store results.
    SecurityGroupId string
    Security groups ID of instance.
    Status float64
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    WithDr float64
    Indicates whether to query disaster recovery instances.
    WithMaster float64
    Indicates whether to query master instances.
    WithRo float64
    Indicates whether to query read-only instances.
    chargeType String
    Pay type of instance, valid values are PREPAID and POSTPAID.
    engineVersion String
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    id String
    initFlag Double
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instanceName String
    Name of mysql instance.
    instanceRole String
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    limit Double
    Number of results returned for a single request. Default is 20, and maximum is 2000.
    mysqlId String
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    offset Double
    Record offset. Default is 0.
    payType Double
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.

    Deprecated: Deprecated

    resultOutputFile String
    Used to store results.
    securityGroupId String
    Security groups ID of instance.
    status Double
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    withDr Double
    Indicates whether to query disaster recovery instances.
    withMaster Double
    Indicates whether to query master instances.
    withRo Double
    Indicates whether to query read-only instances.
    chargeType string
    Pay type of instance, valid values are PREPAID and POSTPAID.
    engineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    id string
    initFlag number
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instanceName string
    Name of mysql instance.
    instanceRole string
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    limit number
    Number of results returned for a single request. Default is 20, and maximum is 2000.
    mysqlId string
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    offset number
    Record offset. Default is 0.
    payType number
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.

    Deprecated: Deprecated

    resultOutputFile string
    Used to store results.
    securityGroupId string
    Security groups ID of instance.
    status number
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    withDr number
    Indicates whether to query disaster recovery instances.
    withMaster number
    Indicates whether to query master instances.
    withRo number
    Indicates whether to query read-only instances.
    charge_type str
    Pay type of instance, valid values are PREPAID and POSTPAID.
    engine_version str
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    id str
    init_flag float
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instance_name str
    Name of mysql instance.
    instance_role str
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    limit float
    Number of results returned for a single request. Default is 20, and maximum is 2000.
    mysql_id str
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    offset float
    Record offset. Default is 0.
    pay_type float
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.

    Deprecated: Deprecated

    result_output_file str
    Used to store results.
    security_group_id str
    Security groups ID of instance.
    status float
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    with_dr float
    Indicates whether to query disaster recovery instances.
    with_master float
    Indicates whether to query master instances.
    with_ro float
    Indicates whether to query read-only instances.
    chargeType String
    Pay type of instance, valid values are PREPAID and POSTPAID.
    engineVersion String
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    id String
    initFlag Number
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instanceName String
    Name of mysql instance.
    instanceRole String
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    limit Number
    Number of results returned for a single request. Default is 20, and maximum is 2000.
    mysqlId String
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    offset Number
    Record offset. Default is 0.
    payType Number
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.

    Deprecated: Deprecated

    resultOutputFile String
    Used to store results.
    securityGroupId String
    Security groups ID of instance.
    status Number
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    withDr Number
    Indicates whether to query disaster recovery instances.
    withMaster Number
    Indicates whether to query master instances.
    withRo Number
    Indicates whether to query read-only instances.

    getMysqlInstance Result

    The following output properties are available:

    Id string
    InstanceLists List<GetMysqlInstanceInstanceList>
    A list of instances. Each element contains the following attributes:
    ChargeType string
    Pay type of instance.
    EngineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    InitFlag double
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    InstanceName string
    Name of mysql instance.
    InstanceRole string
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    Limit double
    MysqlId string
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    Offset double
    PayType double
    Pay type of instance, 0: prepaid, 1: postpaid.

    Deprecated: Deprecated

    ResultOutputFile string
    SecurityGroupId string
    Status double
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    WithDr double
    WithMaster double
    WithRo double
    Id string
    InstanceLists []GetMysqlInstanceInstanceList
    A list of instances. Each element contains the following attributes:
    ChargeType string
    Pay type of instance.
    EngineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    InitFlag float64
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    InstanceName string
    Name of mysql instance.
    InstanceRole string
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    Limit float64
    MysqlId string
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    Offset float64
    PayType float64
    Pay type of instance, 0: prepaid, 1: postpaid.

    Deprecated: Deprecated

    ResultOutputFile string
    SecurityGroupId string
    Status float64
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    WithDr float64
    WithMaster float64
    WithRo float64
    id String
    instanceLists List<GetMysqlInstanceInstanceList>
    A list of instances. Each element contains the following attributes:
    chargeType String
    Pay type of instance.
    engineVersion String
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    initFlag Double
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instanceName String
    Name of mysql instance.
    instanceRole String
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    limit Double
    mysqlId String
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    offset Double
    payType Double
    Pay type of instance, 0: prepaid, 1: postpaid.

    Deprecated: Deprecated

    resultOutputFile String
    securityGroupId String
    status Double
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    withDr Double
    withMaster Double
    withRo Double
    id string
    instanceLists GetMysqlInstanceInstanceList[]
    A list of instances. Each element contains the following attributes:
    chargeType string
    Pay type of instance.
    engineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    initFlag number
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instanceName string
    Name of mysql instance.
    instanceRole string
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    limit number
    mysqlId string
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    offset number
    payType number
    Pay type of instance, 0: prepaid, 1: postpaid.

    Deprecated: Deprecated

    resultOutputFile string
    securityGroupId string
    status number
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    withDr number
    withMaster number
    withRo number
    id str
    instance_lists Sequence[GetMysqlInstanceInstanceList]
    A list of instances. Each element contains the following attributes:
    charge_type str
    Pay type of instance.
    engine_version str
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    init_flag float
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instance_name str
    Name of mysql instance.
    instance_role str
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    limit float
    mysql_id str
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    offset float
    pay_type float
    Pay type of instance, 0: prepaid, 1: postpaid.

    Deprecated: Deprecated

    result_output_file str
    security_group_id str
    status float
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    with_dr float
    with_master float
    with_ro float
    id String
    instanceLists List<Property Map>
    A list of instances. Each element contains the following attributes:
    chargeType String
    Pay type of instance.
    engineVersion String
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    initFlag Number
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instanceName String
    Name of mysql instance.
    instanceRole String
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    limit Number
    mysqlId String
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    offset Number
    payType Number
    Pay type of instance, 0: prepaid, 1: postpaid.

    Deprecated: Deprecated

    resultOutputFile String
    securityGroupId String
    status Number
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    withDr Number
    withMaster Number
    withRo Number

    Supporting Types

    GetMysqlInstanceInstanceList

    AutoRenewFlag double
    Auto renew flag. NOTES: Only supported prepay instance.
    ChargeType string
    Pay type of instance, valid values are PREPAID and POSTPAID.
    CpuCoreCount double
    CPU count.
    CreateTime string
    The time at which a instance is created.
    DeadLineTime string
    Expire date of instance. NOTES: Only supported prepay instance.
    DeviceType string
    Supported instance model. HA - high available version; Basic - basic version.
    DrInstanceIds List<string>
    ID list of disaster-recovery type associated with the current instance.
    EngineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    InitFlag double
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    InstanceName string
    Name of mysql instance.
    InstanceRole string
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    InternetHost string
    Public network domain name.
    InternetPort double
    Public network port.
    InternetStatus double
    Status of public network.
    IntranetIp string
    Instance IP for internal access.
    IntranetPort double
    Transport layer port number for internal purpose.
    MasterInstanceId string
    Indicates the master instance ID of recovery instances.
    MemorySize double
    Memory size (in MB).
    MysqlId string
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    PayType double
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.
    ProjectId double
    Project ID to which the current instance belongs.
    RoGroups List<GetMysqlInstanceInstanceListRoGroup>
    read-only instance group.
    RoInstanceIds List<string>
    ID list of read-only type associated with the current instance.
    SlaveSyncMode double
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.
    Status double
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    SubnetId string
    ID of subnet to which the current instance belongs.
    VolumeSize double
    Disk capacity (in GB).
    VpcId string
    ID of Virtual Private Cloud.
    Zone string
    Information of available zone.
    AutoRenewFlag float64
    Auto renew flag. NOTES: Only supported prepay instance.
    ChargeType string
    Pay type of instance, valid values are PREPAID and POSTPAID.
    CpuCoreCount float64
    CPU count.
    CreateTime string
    The time at which a instance is created.
    DeadLineTime string
    Expire date of instance. NOTES: Only supported prepay instance.
    DeviceType string
    Supported instance model. HA - high available version; Basic - basic version.
    DrInstanceIds []string
    ID list of disaster-recovery type associated with the current instance.
    EngineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    InitFlag float64
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    InstanceName string
    Name of mysql instance.
    InstanceRole string
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    InternetHost string
    Public network domain name.
    InternetPort float64
    Public network port.
    InternetStatus float64
    Status of public network.
    IntranetIp string
    Instance IP for internal access.
    IntranetPort float64
    Transport layer port number for internal purpose.
    MasterInstanceId string
    Indicates the master instance ID of recovery instances.
    MemorySize float64
    Memory size (in MB).
    MysqlId string
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    PayType float64
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.
    ProjectId float64
    Project ID to which the current instance belongs.
    RoGroups []GetMysqlInstanceInstanceListRoGroup
    read-only instance group.
    RoInstanceIds []string
    ID list of read-only type associated with the current instance.
    SlaveSyncMode float64
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.
    Status float64
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    SubnetId string
    ID of subnet to which the current instance belongs.
    VolumeSize float64
    Disk capacity (in GB).
    VpcId string
    ID of Virtual Private Cloud.
    Zone string
    Information of available zone.
    autoRenewFlag Double
    Auto renew flag. NOTES: Only supported prepay instance.
    chargeType String
    Pay type of instance, valid values are PREPAID and POSTPAID.
    cpuCoreCount Double
    CPU count.
    createTime String
    The time at which a instance is created.
    deadLineTime String
    Expire date of instance. NOTES: Only supported prepay instance.
    deviceType String
    Supported instance model. HA - high available version; Basic - basic version.
    drInstanceIds List<String>
    ID list of disaster-recovery type associated with the current instance.
    engineVersion String
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    initFlag Double
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instanceName String
    Name of mysql instance.
    instanceRole String
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    internetHost String
    Public network domain name.
    internetPort Double
    Public network port.
    internetStatus Double
    Status of public network.
    intranetIp String
    Instance IP for internal access.
    intranetPort Double
    Transport layer port number for internal purpose.
    masterInstanceId String
    Indicates the master instance ID of recovery instances.
    memorySize Double
    Memory size (in MB).
    mysqlId String
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    payType Double
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.
    projectId Double
    Project ID to which the current instance belongs.
    roGroups List<GetMysqlInstanceInstanceListRoGroup>
    read-only instance group.
    roInstanceIds List<String>
    ID list of read-only type associated with the current instance.
    slaveSyncMode Double
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.
    status Double
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    subnetId String
    ID of subnet to which the current instance belongs.
    volumeSize Double
    Disk capacity (in GB).
    vpcId String
    ID of Virtual Private Cloud.
    zone String
    Information of available zone.
    autoRenewFlag number
    Auto renew flag. NOTES: Only supported prepay instance.
    chargeType string
    Pay type of instance, valid values are PREPAID and POSTPAID.
    cpuCoreCount number
    CPU count.
    createTime string
    The time at which a instance is created.
    deadLineTime string
    Expire date of instance. NOTES: Only supported prepay instance.
    deviceType string
    Supported instance model. HA - high available version; Basic - basic version.
    drInstanceIds string[]
    ID list of disaster-recovery type associated with the current instance.
    engineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    initFlag number
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instanceName string
    Name of mysql instance.
    instanceRole string
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    internetHost string
    Public network domain name.
    internetPort number
    Public network port.
    internetStatus number
    Status of public network.
    intranetIp string
    Instance IP for internal access.
    intranetPort number
    Transport layer port number for internal purpose.
    masterInstanceId string
    Indicates the master instance ID of recovery instances.
    memorySize number
    Memory size (in MB).
    mysqlId string
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    payType number
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.
    projectId number
    Project ID to which the current instance belongs.
    roGroups GetMysqlInstanceInstanceListRoGroup[]
    read-only instance group.
    roInstanceIds string[]
    ID list of read-only type associated with the current instance.
    slaveSyncMode number
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.
    status number
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    subnetId string
    ID of subnet to which the current instance belongs.
    volumeSize number
    Disk capacity (in GB).
    vpcId string
    ID of Virtual Private Cloud.
    zone string
    Information of available zone.
    auto_renew_flag float
    Auto renew flag. NOTES: Only supported prepay instance.
    charge_type str
    Pay type of instance, valid values are PREPAID and POSTPAID.
    cpu_core_count float
    CPU count.
    create_time str
    The time at which a instance is created.
    dead_line_time str
    Expire date of instance. NOTES: Only supported prepay instance.
    device_type str
    Supported instance model. HA - high available version; Basic - basic version.
    dr_instance_ids Sequence[str]
    ID list of disaster-recovery type associated with the current instance.
    engine_version str
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    init_flag float
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instance_name str
    Name of mysql instance.
    instance_role str
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    internet_host str
    Public network domain name.
    internet_port float
    Public network port.
    internet_status float
    Status of public network.
    intranet_ip str
    Instance IP for internal access.
    intranet_port float
    Transport layer port number for internal purpose.
    master_instance_id str
    Indicates the master instance ID of recovery instances.
    memory_size float
    Memory size (in MB).
    mysql_id str
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    pay_type float
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.
    project_id float
    Project ID to which the current instance belongs.
    ro_groups Sequence[GetMysqlInstanceInstanceListRoGroup]
    read-only instance group.
    ro_instance_ids Sequence[str]
    ID list of read-only type associated with the current instance.
    slave_sync_mode float
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.
    status float
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    subnet_id str
    ID of subnet to which the current instance belongs.
    volume_size float
    Disk capacity (in GB).
    vpc_id str
    ID of Virtual Private Cloud.
    zone str
    Information of available zone.
    autoRenewFlag Number
    Auto renew flag. NOTES: Only supported prepay instance.
    chargeType String
    Pay type of instance, valid values are PREPAID and POSTPAID.
    cpuCoreCount Number
    CPU count.
    createTime String
    The time at which a instance is created.
    deadLineTime String
    Expire date of instance. NOTES: Only supported prepay instance.
    deviceType String
    Supported instance model. HA - high available version; Basic - basic version.
    drInstanceIds List<String>
    ID list of disaster-recovery type associated with the current instance.
    engineVersion String
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    initFlag Number
    Initialization mark. Available values: 0 - Uninitialized; 1 - Initialized.
    instanceName String
    Name of mysql instance.
    instanceRole String
    Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.
    internetHost String
    Public network domain name.
    internetPort Number
    Public network port.
    internetStatus Number
    Status of public network.
    intranetIp String
    Instance IP for internal access.
    intranetPort Number
    Transport layer port number for internal purpose.
    masterInstanceId String
    Indicates the master instance ID of recovery instances.
    memorySize Number
    Memory size (in MB).
    mysqlId String
    Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
    payType Number
    It has been deprecated from version 1.36.0. Please use charge_type instead. Pay type of instance, 0: prepay, 1: postpaid.
    projectId Number
    Project ID to which the current instance belongs.
    roGroups List<Property Map>
    read-only instance group.
    roInstanceIds List<String>
    ID list of read-only type associated with the current instance.
    slaveSyncMode Number
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.
    status Number
    Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.
    subnetId String
    ID of subnet to which the current instance belongs.
    volumeSize Number
    Disk capacity (in GB).
    vpcId String
    ID of Virtual Private Cloud.
    zone String
    Information of available zone.

    GetMysqlInstanceInstanceListRoGroup

    GroupId string
    Group ID, such as cdbrg-pz7vg37p.
    InstanceIds List<string>
    ID list of read-only type associated with the current instance.
    GroupId string
    Group ID, such as cdbrg-pz7vg37p.
    InstanceIds []string
    ID list of read-only type associated with the current instance.
    groupId String
    Group ID, such as cdbrg-pz7vg37p.
    instanceIds List<String>
    ID list of read-only type associated with the current instance.
    groupId string
    Group ID, such as cdbrg-pz7vg37p.
    instanceIds string[]
    ID list of read-only type associated with the current instance.
    group_id str
    Group ID, such as cdbrg-pz7vg37p.
    instance_ids Sequence[str]
    ID list of read-only type associated with the current instance.
    groupId String
    Group ID, such as cdbrg-pz7vg37p.
    instanceIds List<String>
    ID list of read-only type associated with the current instance.

    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