tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getMysqlInstance
Explore with Pulumi AI
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:
- Charge
Type string - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - Engine
Version string - The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
- Id string
- Init
Flag double - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - Instance
Name string - Name of mysql instance.
- Instance
Role string - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - Limit double
- Number of results returned for a single request. Default is
20
, and maximum is 2000. - Mysql
Id 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.
- Pay
Type double - It has been deprecated from version 1.36.0. Please use
charge_type
instead. Pay type of instance,0
: prepay,1
: postpaid. - Result
Output stringFile - Used to store results.
- Security
Group stringId - Security groups ID of instance.
- Status double
- Instance status. Available values:
0
- Creating;1
- Running;4
- Isolating;5
- Isolated. - With
Dr double - Indicates whether to query disaster recovery instances.
- With
Master double - Indicates whether to query master instances.
- With
Ro double - Indicates whether to query read-only instances.
- Charge
Type string - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - Engine
Version string - The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
- Id string
- Init
Flag float64 - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - Instance
Name string - Name of mysql instance.
- Instance
Role string - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - Limit float64
- Number of results returned for a single request. Default is
20
, and maximum is 2000. - Mysql
Id 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.
- Pay
Type float64 - It has been deprecated from version 1.36.0. Please use
charge_type
instead. Pay type of instance,0
: prepay,1
: postpaid. - Result
Output stringFile - Used to store results.
- Security
Group stringId - Security groups ID of instance.
- Status float64
- Instance status. Available values:
0
- Creating;1
- Running;4
- Isolating;5
- Isolated. - With
Dr float64 - Indicates whether to query disaster recovery instances.
- With
Master float64 - Indicates whether to query master instances.
- With
Ro float64 - Indicates whether to query read-only instances.
- charge
Type String - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - engine
Version String - The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
- id String
- init
Flag Double - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - instance
Name String - Name of mysql instance.
- instance
Role String - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - limit Double
- Number of results returned for a single request. Default is
20
, and maximum is 2000. - mysql
Id 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.
- pay
Type Double - It has been deprecated from version 1.36.0. Please use
charge_type
instead. Pay type of instance,0
: prepay,1
: postpaid. - result
Output StringFile - Used to store results.
- security
Group StringId - Security groups ID of instance.
- status Double
- Instance status. Available values:
0
- Creating;1
- Running;4
- Isolating;5
- Isolated. - with
Dr Double - Indicates whether to query disaster recovery instances.
- with
Master Double - Indicates whether to query master instances.
- with
Ro Double - Indicates whether to query read-only instances.
- charge
Type string - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - engine
Version string - The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
- id string
- init
Flag number - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - instance
Name string - Name of mysql instance.
- instance
Role string - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - limit number
- Number of results returned for a single request. Default is
20
, and maximum is 2000. - mysql
Id 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.
- pay
Type number - It has been deprecated from version 1.36.0. Please use
charge_type
instead. Pay type of instance,0
: prepay,1
: postpaid. - result
Output stringFile - Used to store results.
- security
Group stringId - Security groups ID of instance.
- status number
- Instance status. Available values:
0
- Creating;1
- Running;4
- Isolating;5
- Isolated. - with
Dr number - Indicates whether to query disaster recovery instances.
- with
Master number - Indicates whether to query master instances.
- with
Ro number - Indicates whether to query read-only instances.
- charge_
type str - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - 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, andro
- 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. - result_
output_ strfile - Used to store results.
- security_
group_ strid - 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.
- charge
Type String - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - engine
Version String - The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
- id String
- init
Flag Number - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - instance
Name String - Name of mysql instance.
- instance
Role String - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - limit Number
- Number of results returned for a single request. Default is
20
, and maximum is 2000. - mysql
Id 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.
- pay
Type Number - It has been deprecated from version 1.36.0. Please use
charge_type
instead. Pay type of instance,0
: prepay,1
: postpaid. - result
Output StringFile - Used to store results.
- security
Group StringId - Security groups ID of instance.
- status Number
- Instance status. Available values:
0
- Creating;1
- Running;4
- Isolating;5
- Isolated. - with
Dr Number - Indicates whether to query disaster recovery instances.
- with
Master Number - Indicates whether to query master instances.
- with
Ro Number - Indicates whether to query read-only instances.
getMysqlInstance Result
The following output properties are available:
- Id string
- Instance
Lists List<GetMysql Instance Instance List> - A list of instances. Each element contains the following attributes:
- Charge
Type string - Pay type of instance.
- Engine
Version string - The version number of the database engine to use. Supported versions include
5.5
/5.6
/5.7
/8.0
. - Init
Flag double - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - Instance
Name string - Name of mysql instance.
- Instance
Role string - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - Limit double
- Mysql
Id string - Instance ID, such as
cdb-c1nl9rpv
. It is identical to the instance ID displayed in the database console page. - Offset double
- Pay
Type double - Pay type of instance,
0
: prepaid,1
: postpaid. - Result
Output stringFile - Security
Group stringId - Status double
- Instance status. Available values:
0
- Creating;1
- Running;4
- Isolating;5
- Isolated. - With
Dr double - With
Master double - With
Ro double
- Id string
- Instance
Lists []GetMysql Instance Instance List - A list of instances. Each element contains the following attributes:
- Charge
Type string - Pay type of instance.
- Engine
Version string - The version number of the database engine to use. Supported versions include
5.5
/5.6
/5.7
/8.0
. - Init
Flag float64 - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - Instance
Name string - Name of mysql instance.
- Instance
Role string - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - Limit float64
- Mysql
Id string - Instance ID, such as
cdb-c1nl9rpv
. It is identical to the instance ID displayed in the database console page. - Offset float64
- Pay
Type float64 - Pay type of instance,
0
: prepaid,1
: postpaid. - Result
Output stringFile - Security
Group stringId - Status float64
- Instance status. Available values:
0
- Creating;1
- Running;4
- Isolating;5
- Isolated. - With
Dr float64 - With
Master float64 - With
Ro float64
- id String
- instance
Lists List<GetMysql Instance Instance List> - A list of instances. Each element contains the following attributes:
- charge
Type String - Pay type of instance.
- engine
Version String - The version number of the database engine to use. Supported versions include
5.5
/5.6
/5.7
/8.0
. - init
Flag Double - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - instance
Name String - Name of mysql instance.
- instance
Role String - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - limit Double
- mysql
Id String - Instance ID, such as
cdb-c1nl9rpv
. It is identical to the instance ID displayed in the database console page. - offset Double
- pay
Type Double - Pay type of instance,
0
: prepaid,1
: postpaid. - result
Output StringFile - security
Group StringId - status Double
- Instance status. Available values:
0
- Creating;1
- Running;4
- Isolating;5
- Isolated. - with
Dr Double - with
Master Double - with
Ro Double
- id string
- instance
Lists GetMysql Instance Instance List[] - A list of instances. Each element contains the following attributes:
- charge
Type string - Pay type of instance.
- engine
Version string - The version number of the database engine to use. Supported versions include
5.5
/5.6
/5.7
/8.0
. - init
Flag number - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - instance
Name string - Name of mysql instance.
- instance
Role string - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - limit number
- mysql
Id string - Instance ID, such as
cdb-c1nl9rpv
. It is identical to the instance ID displayed in the database console page. - offset number
- pay
Type number - Pay type of instance,
0
: prepaid,1
: postpaid. - result
Output stringFile - security
Group stringId - status number
- Instance status. Available values:
0
- Creating;1
- Running;4
- Isolating;5
- Isolated. - with
Dr number - with
Master number - with
Ro number
- id str
- instance_
lists Sequence[GetMysql Instance Instance List] - 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, andro
- 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. - result_
output_ strfile - security_
group_ strid - 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
- instance
Lists List<Property Map> - A list of instances. Each element contains the following attributes:
- charge
Type String - Pay type of instance.
- engine
Version String - The version number of the database engine to use. Supported versions include
5.5
/5.6
/5.7
/8.0
. - init
Flag Number - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - instance
Name String - Name of mysql instance.
- instance
Role String - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - limit Number
- mysql
Id String - Instance ID, such as
cdb-c1nl9rpv
. It is identical to the instance ID displayed in the database console page. - offset Number
- pay
Type Number - Pay type of instance,
0
: prepaid,1
: postpaid. - result
Output StringFile - security
Group StringId - status Number
- Instance status. Available values:
0
- Creating;1
- Running;4
- Isolating;5
- Isolated. - with
Dr Number - with
Master Number - with
Ro Number
Supporting Types
GetMysqlInstanceInstanceList
- Auto
Renew doubleFlag - Auto renew flag. NOTES: Only supported prepay instance.
- Charge
Type string - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - Cpu
Core doubleCount - CPU count.
- Create
Time string - The time at which a instance is created.
- Dead
Line stringTime - Expire date of instance. NOTES: Only supported prepay instance.
- Device
Type string - Supported instance model.
HA
- high available version;Basic
- basic version. - Dr
Instance List<string>Ids - ID list of disaster-recovery type associated with the current instance.
- Engine
Version string - The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
- Init
Flag double - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - Instance
Name string - Name of mysql instance.
- Instance
Role string - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - Internet
Host string - Public network domain name.
- Internet
Port double - Public network port.
- Internet
Status double - Status of public network.
- Intranet
Ip string - Instance IP for internal access.
- Intranet
Port double - Transport layer port number for internal purpose.
- Master
Instance stringId - Indicates the master instance ID of recovery instances.
- Memory
Size double - Memory size (in MB).
- Mysql
Id string - Instance ID, such as
cdb-c1nl9rpv
. It is identical to the instance ID displayed in the database console page. - Pay
Type double - It has been deprecated from version 1.36.0. Please use
charge_type
instead. Pay type of instance,0
: prepay,1
: postpaid. - Project
Id double - Project ID to which the current instance belongs.
- Ro
Groups List<GetMysql Instance Instance List Ro Group> - read-only instance group.
- Ro
Instance List<string>Ids - ID list of read-only type associated with the current instance.
- Slave
Sync doubleMode - 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. - Subnet
Id string - ID of subnet to which the current instance belongs.
- Volume
Size double - Disk capacity (in GB).
- Vpc
Id string - ID of Virtual Private Cloud.
- Zone string
- Information of available zone.
- Auto
Renew float64Flag - Auto renew flag. NOTES: Only supported prepay instance.
- Charge
Type string - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - Cpu
Core float64Count - CPU count.
- Create
Time string - The time at which a instance is created.
- Dead
Line stringTime - Expire date of instance. NOTES: Only supported prepay instance.
- Device
Type string - Supported instance model.
HA
- high available version;Basic
- basic version. - Dr
Instance []stringIds - ID list of disaster-recovery type associated with the current instance.
- Engine
Version string - The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
- Init
Flag float64 - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - Instance
Name string - Name of mysql instance.
- Instance
Role string - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - Internet
Host string - Public network domain name.
- Internet
Port float64 - Public network port.
- Internet
Status float64 - Status of public network.
- Intranet
Ip string - Instance IP for internal access.
- Intranet
Port float64 - Transport layer port number for internal purpose.
- Master
Instance stringId - Indicates the master instance ID of recovery instances.
- Memory
Size float64 - Memory size (in MB).
- Mysql
Id string - Instance ID, such as
cdb-c1nl9rpv
. It is identical to the instance ID displayed in the database console page. - Pay
Type float64 - It has been deprecated from version 1.36.0. Please use
charge_type
instead. Pay type of instance,0
: prepay,1
: postpaid. - Project
Id float64 - Project ID to which the current instance belongs.
- Ro
Groups []GetMysql Instance Instance List Ro Group - read-only instance group.
- Ro
Instance []stringIds - ID list of read-only type associated with the current instance.
- Slave
Sync float64Mode - 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. - Subnet
Id string - ID of subnet to which the current instance belongs.
- Volume
Size float64 - Disk capacity (in GB).
- Vpc
Id string - ID of Virtual Private Cloud.
- Zone string
- Information of available zone.
- auto
Renew DoubleFlag - Auto renew flag. NOTES: Only supported prepay instance.
- charge
Type String - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - cpu
Core DoubleCount - CPU count.
- create
Time String - The time at which a instance is created.
- dead
Line StringTime - Expire date of instance. NOTES: Only supported prepay instance.
- device
Type String - Supported instance model.
HA
- high available version;Basic
- basic version. - dr
Instance List<String>Ids - ID list of disaster-recovery type associated with the current instance.
- engine
Version String - The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
- init
Flag Double - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - instance
Name String - Name of mysql instance.
- instance
Role String - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - internet
Host String - Public network domain name.
- internet
Port Double - Public network port.
- internet
Status Double - Status of public network.
- intranet
Ip String - Instance IP for internal access.
- intranet
Port Double - Transport layer port number for internal purpose.
- master
Instance StringId - Indicates the master instance ID of recovery instances.
- memory
Size Double - Memory size (in MB).
- mysql
Id String - Instance ID, such as
cdb-c1nl9rpv
. It is identical to the instance ID displayed in the database console page. - pay
Type Double - It has been deprecated from version 1.36.0. Please use
charge_type
instead. Pay type of instance,0
: prepay,1
: postpaid. - project
Id Double - Project ID to which the current instance belongs.
- ro
Groups List<GetMysql Instance Instance List Ro Group> - read-only instance group.
- ro
Instance List<String>Ids - ID list of read-only type associated with the current instance.
- slave
Sync DoubleMode - 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. - subnet
Id String - ID of subnet to which the current instance belongs.
- volume
Size Double - Disk capacity (in GB).
- vpc
Id String - ID of Virtual Private Cloud.
- zone String
- Information of available zone.
- auto
Renew numberFlag - Auto renew flag. NOTES: Only supported prepay instance.
- charge
Type string - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - cpu
Core numberCount - CPU count.
- create
Time string - The time at which a instance is created.
- dead
Line stringTime - Expire date of instance. NOTES: Only supported prepay instance.
- device
Type string - Supported instance model.
HA
- high available version;Basic
- basic version. - dr
Instance string[]Ids - ID list of disaster-recovery type associated with the current instance.
- engine
Version string - The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
- init
Flag number - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - instance
Name string - Name of mysql instance.
- instance
Role string - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - internet
Host string - Public network domain name.
- internet
Port number - Public network port.
- internet
Status number - Status of public network.
- intranet
Ip string - Instance IP for internal access.
- intranet
Port number - Transport layer port number for internal purpose.
- master
Instance stringId - Indicates the master instance ID of recovery instances.
- memory
Size number - Memory size (in MB).
- mysql
Id string - Instance ID, such as
cdb-c1nl9rpv
. It is identical to the instance ID displayed in the database console page. - pay
Type number - It has been deprecated from version 1.36.0. Please use
charge_type
instead. Pay type of instance,0
: prepay,1
: postpaid. - project
Id number - Project ID to which the current instance belongs.
- ro
Groups GetMysql Instance Instance List Ro Group[] - read-only instance group.
- ro
Instance string[]Ids - ID list of read-only type associated with the current instance.
- slave
Sync numberMode - 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. - subnet
Id string - ID of subnet to which the current instance belongs.
- volume
Size number - Disk capacity (in GB).
- vpc
Id string - ID of Virtual Private Cloud.
- zone string
- Information of available zone.
- auto_
renew_ floatflag - Auto renew flag. NOTES: Only supported prepay instance.
- charge_
type str - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - cpu_
core_ floatcount - CPU count.
- create_
time str - The time at which a instance is created.
- dead_
line_ strtime - Expire date of instance. NOTES: Only supported prepay instance.
- device_
type str - Supported instance model.
HA
- high available version;Basic
- basic version. - dr_
instance_ Sequence[str]ids - 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, andro
- 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_ strid - 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[GetMysql Instance Instance List Ro Group] - read-only instance group.
- ro_
instance_ Sequence[str]ids - ID list of read-only type associated with the current instance.
- slave_
sync_ floatmode - 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.
- auto
Renew NumberFlag - Auto renew flag. NOTES: Only supported prepay instance.
- charge
Type String - Pay type of instance, valid values are
PREPAID
andPOSTPAID
. - cpu
Core NumberCount - CPU count.
- create
Time String - The time at which a instance is created.
- dead
Line StringTime - Expire date of instance. NOTES: Only supported prepay instance.
- device
Type String - Supported instance model.
HA
- high available version;Basic
- basic version. - dr
Instance List<String>Ids - ID list of disaster-recovery type associated with the current instance.
- engine
Version String - The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
- init
Flag Number - Initialization mark. Available values:
0
- Uninitialized;1
- Initialized. - instance
Name String - Name of mysql instance.
- instance
Role String - Instance type. Supported values include:
master
- master instance,dr
- disaster recovery instance, andro
- read-only instance. - internet
Host String - Public network domain name.
- internet
Port Number - Public network port.
- internet
Status Number - Status of public network.
- intranet
Ip String - Instance IP for internal access.
- intranet
Port Number - Transport layer port number for internal purpose.
- master
Instance StringId - Indicates the master instance ID of recovery instances.
- memory
Size Number - Memory size (in MB).
- mysql
Id String - Instance ID, such as
cdb-c1nl9rpv
. It is identical to the instance ID displayed in the database console page. - pay
Type Number - It has been deprecated from version 1.36.0. Please use
charge_type
instead. Pay type of instance,0
: prepay,1
: postpaid. - project
Id Number - Project ID to which the current instance belongs.
- ro
Groups List<Property Map> - read-only instance group.
- ro
Instance List<String>Ids - ID list of read-only type associated with the current instance.
- slave
Sync NumberMode - 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. - subnet
Id String - ID of subnet to which the current instance belongs.
- volume
Size Number - Disk capacity (in GB).
- vpc
Id String - ID of Virtual Private Cloud.
- zone String
- Information of available zone.
GetMysqlInstanceInstanceListRoGroup
- Group
Id string - Group ID, such as
cdbrg-pz7vg37p
. - Instance
Ids List<string> - ID list of read-only type associated with the current instance.
- Group
Id string - Group ID, such as
cdbrg-pz7vg37p
. - Instance
Ids []string - ID list of read-only type associated with the current instance.
- group
Id String - Group ID, such as
cdbrg-pz7vg37p
. - instance
Ids List<String> - ID list of read-only type associated with the current instance.
- group
Id string - Group ID, such as
cdbrg-pz7vg37p
. - instance
Ids 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.
- group
Id String - Group ID, such as
cdbrg-pz7vg37p
. - instance
Ids 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack