tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getMysqlZoneConfig
Start a Neo task
Explain and create a tencentcloud.getMysqlZoneConfig resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query the available database specifications for different regions. And a maximum of 20 requests can be initiated per second for this query.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mysql = tencentcloud.getMysqlZoneConfig({
region: "ap-guangzhou",
resultOutputFile: "mytestpath",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
mysql = tencentcloud.get_mysql_zone_config(region="ap-guangzhou",
result_output_file="mytestpath")
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.GetMysqlZoneConfig(ctx, &tencentcloud.GetMysqlZoneConfigArgs{
Region: pulumi.StringRef("ap-guangzhou"),
ResultOutputFile: pulumi.StringRef("mytestpath"),
}, 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.GetMysqlZoneConfig.Invoke(new()
{
Region = "ap-guangzhou",
ResultOutputFile = "mytestpath",
});
});
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.GetMysqlZoneConfigArgs;
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.getMysqlZoneConfig(GetMysqlZoneConfigArgs.builder()
.region("ap-guangzhou")
.resultOutputFile("mytestpath")
.build());
}
}
variables:
mysql:
fn::invoke:
function: tencentcloud:getMysqlZoneConfig
arguments:
region: ap-guangzhou
resultOutputFile: mytestpath
Using getMysqlZoneConfig
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 getMysqlZoneConfig(args: GetMysqlZoneConfigArgs, opts?: InvokeOptions): Promise<GetMysqlZoneConfigResult>
function getMysqlZoneConfigOutput(args: GetMysqlZoneConfigOutputArgs, opts?: InvokeOptions): Output<GetMysqlZoneConfigResult>def get_mysql_zone_config(id: Optional[str] = None,
region: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMysqlZoneConfigResult
def get_mysql_zone_config_output(id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMysqlZoneConfigResult]func GetMysqlZoneConfig(ctx *Context, args *GetMysqlZoneConfigArgs, opts ...InvokeOption) (*GetMysqlZoneConfigResult, error)
func GetMysqlZoneConfigOutput(ctx *Context, args *GetMysqlZoneConfigOutputArgs, opts ...InvokeOption) GetMysqlZoneConfigResultOutput> Note: This function is named GetMysqlZoneConfig in the Go SDK.
public static class GetMysqlZoneConfig
{
public static Task<GetMysqlZoneConfigResult> InvokeAsync(GetMysqlZoneConfigArgs args, InvokeOptions? opts = null)
public static Output<GetMysqlZoneConfigResult> Invoke(GetMysqlZoneConfigInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMysqlZoneConfigResult> getMysqlZoneConfig(GetMysqlZoneConfigArgs args, InvokeOptions options)
public static Output<GetMysqlZoneConfigResult> getMysqlZoneConfig(GetMysqlZoneConfigArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMysqlZoneConfig:getMysqlZoneConfig
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Region string
- Region parameter, which is used to identify the region to which the data you want to work with belongs.
- Result
Output stringFile - Used to store results.
- Id string
- Region string
- Region parameter, which is used to identify the region to which the data you want to work with belongs.
- Result
Output stringFile - Used to store results.
- id String
- region String
- Region parameter, which is used to identify the region to which the data you want to work with belongs.
- result
Output StringFile - Used to store results.
- id string
- region string
- Region parameter, which is used to identify the region to which the data you want to work with belongs.
- result
Output stringFile - Used to store results.
- id str
- region str
- Region parameter, which is used to identify the region to which the data you want to work with belongs.
- result_
output_ strfile - Used to store results.
- id String
- region String
- Region parameter, which is used to identify the region to which the data you want to work with belongs.
- result
Output StringFile - Used to store results.
getMysqlZoneConfig Result
The following output properties are available:
- Id string
- Lists
List<Get
Mysql Zone Config List> - A list of zone config. Each element contains the following attributes:
- Region string
- Result
Output stringFile
- Id string
- Lists
[]Get
Mysql Zone Config List - A list of zone config. Each element contains the following attributes:
- Region string
- Result
Output stringFile
- id String
- lists
List<Get
Mysql Zone Config List> - A list of zone config. Each element contains the following attributes:
- region String
- result
Output StringFile
- id string
- lists
Get
Mysql Zone Config List[] - A list of zone config. Each element contains the following attributes:
- region string
- result
Output stringFile
- id str
- lists
Sequence[Get
Mysql Zone Config List] - A list of zone config. Each element contains the following attributes:
- region str
- result_
output_ strfile
- id String
- lists List<Property Map>
- A list of zone config. Each element contains the following attributes:
- region String
- result
Output StringFile
Supporting Types
GetMysqlZoneConfigList
- Disaster
Recovery List<string>Zones - Information about available zones of recovery.
- Engine
Versions List<string> - The version number of the database engine to use. Supported versions include
5.5/5.6/5.7. - First
Slave List<string>Zones - Zone information about first slave instance.
- Hour
Instance doubleSale Max Num - Is
Default double - Indicates whether the current DC is the default DC for the region. Possible returned values:
0- no;1- yes. - Is
Support doubleDisaster Recovery - Indicates whether recovery is supported:
0- No;1- Yes. - Is
Support doubleVpc - Indicates whether VPC is supported:
0- No;1- Yes. - Name string
- The name of available zone which is equal to a specific datacenter.
- Pay
Types List<double> - Remote
Ro List<string>Zones - Zone information about remote ro instance.
- Second
Slave List<string>Zones - Zone information about second slave instance.
- Sells
List<Get
Mysql Zone Config List Sell> - A list of supported instance types for sell:
- Slave
Deploy List<double>Modes - Availability zone deployment method. Available values:
0- Single availability zone;1- Multiple availability zones. - Support
Slave List<double>Sync Modes - Data replication mode.
0- Async replication;1- Semisync replication;2- Strongsync replication.
- Disaster
Recovery []stringZones - Information about available zones of recovery.
- Engine
Versions []string - The version number of the database engine to use. Supported versions include
5.5/5.6/5.7. - First
Slave []stringZones - Zone information about first slave instance.
- Hour
Instance float64Sale Max Num - Is
Default float64 - Indicates whether the current DC is the default DC for the region. Possible returned values:
0- no;1- yes. - Is
Support float64Disaster Recovery - Indicates whether recovery is supported:
0- No;1- Yes. - Is
Support float64Vpc - Indicates whether VPC is supported:
0- No;1- Yes. - Name string
- The name of available zone which is equal to a specific datacenter.
- Pay
Types []float64 - Remote
Ro []stringZones - Zone information about remote ro instance.
- Second
Slave []stringZones - Zone information about second slave instance.
- Sells
[]Get
Mysql Zone Config List Sell - A list of supported instance types for sell:
- Slave
Deploy []float64Modes - Availability zone deployment method. Available values:
0- Single availability zone;1- Multiple availability zones. - Support
Slave []float64Sync Modes - Data replication mode.
0- Async replication;1- Semisync replication;2- Strongsync replication.
- disaster
Recovery List<String>Zones - Information about available zones of recovery.
- engine
Versions List<String> - The version number of the database engine to use. Supported versions include
5.5/5.6/5.7. - first
Slave List<String>Zones - Zone information about first slave instance.
- hour
Instance DoubleSale Max Num - is
Default Double - Indicates whether the current DC is the default DC for the region. Possible returned values:
0- no;1- yes. - is
Support DoubleDisaster Recovery - Indicates whether recovery is supported:
0- No;1- Yes. - is
Support DoubleVpc - Indicates whether VPC is supported:
0- No;1- Yes. - name String
- The name of available zone which is equal to a specific datacenter.
- pay
Types List<Double> - remote
Ro List<String>Zones - Zone information about remote ro instance.
- second
Slave List<String>Zones - Zone information about second slave instance.
- sells
List<Get
Mysql Zone Config List Sell> - A list of supported instance types for sell:
- slave
Deploy List<Double>Modes - Availability zone deployment method. Available values:
0- Single availability zone;1- Multiple availability zones. - support
Slave List<Double>Sync Modes - Data replication mode.
0- Async replication;1- Semisync replication;2- Strongsync replication.
- disaster
Recovery string[]Zones - Information about available zones of recovery.
- engine
Versions string[] - The version number of the database engine to use. Supported versions include
5.5/5.6/5.7. - first
Slave string[]Zones - Zone information about first slave instance.
- hour
Instance numberSale Max Num - is
Default number - Indicates whether the current DC is the default DC for the region. Possible returned values:
0- no;1- yes. - is
Support numberDisaster Recovery - Indicates whether recovery is supported:
0- No;1- Yes. - is
Support numberVpc - Indicates whether VPC is supported:
0- No;1- Yes. - name string
- The name of available zone which is equal to a specific datacenter.
- pay
Types number[] - remote
Ro string[]Zones - Zone information about remote ro instance.
- second
Slave string[]Zones - Zone information about second slave instance.
- sells
Get
Mysql Zone Config List Sell[] - A list of supported instance types for sell:
- slave
Deploy number[]Modes - Availability zone deployment method. Available values:
0- Single availability zone;1- Multiple availability zones. - support
Slave number[]Sync Modes - Data replication mode.
0- Async replication;1- Semisync replication;2- Strongsync replication.
- disaster_
recovery_ Sequence[str]zones - Information about available zones of recovery.
- engine_
versions Sequence[str] - The version number of the database engine to use. Supported versions include
5.5/5.6/5.7. - first_
slave_ Sequence[str]zones - Zone information about first slave instance.
- hour_
instance_ floatsale_ max_ num - is_
default float - Indicates whether the current DC is the default DC for the region. Possible returned values:
0- no;1- yes. - is_
support_ floatdisaster_ recovery - Indicates whether recovery is supported:
0- No;1- Yes. - is_
support_ floatvpc - Indicates whether VPC is supported:
0- No;1- Yes. - name str
- The name of available zone which is equal to a specific datacenter.
- pay_
types Sequence[float] - remote_
ro_ Sequence[str]zones - Zone information about remote ro instance.
- second_
slave_ Sequence[str]zones - Zone information about second slave instance.
- sells
Sequence[Get
Mysql Zone Config List Sell] - A list of supported instance types for sell:
- slave_
deploy_ Sequence[float]modes - Availability zone deployment method. Available values:
0- Single availability zone;1- Multiple availability zones. - support_
slave_ Sequence[float]sync_ modes - Data replication mode.
0- Async replication;1- Semisync replication;2- Strongsync replication.
- disaster
Recovery List<String>Zones - Information about available zones of recovery.
- engine
Versions List<String> - The version number of the database engine to use. Supported versions include
5.5/5.6/5.7. - first
Slave List<String>Zones - Zone information about first slave instance.
- hour
Instance NumberSale Max Num - is
Default Number - Indicates whether the current DC is the default DC for the region. Possible returned values:
0- no;1- yes. - is
Support NumberDisaster Recovery - Indicates whether recovery is supported:
0- No;1- Yes. - is
Support NumberVpc - Indicates whether VPC is supported:
0- No;1- Yes. - name String
- The name of available zone which is equal to a specific datacenter.
- pay
Types List<Number> - remote
Ro List<String>Zones - Zone information about remote ro instance.
- second
Slave List<String>Zones - Zone information about second slave instance.
- sells List<Property Map>
- A list of supported instance types for sell:
- slave
Deploy List<Number>Modes - Availability zone deployment method. Available values:
0- Single availability zone;1- Multiple availability zones. - support
Slave List<Number>Sync Modes - Data replication mode.
0- Async replication;1- Semisync replication;2- Strongsync replication.
GetMysqlZoneConfigListSell
- Cdb
Type string - Instance type, the possible value ranges are:
UNIVERSAL(universal type),EXCLUSIVE(exclusive type),BASIC(basic type),BASIC_V2(basic type v2). - Cpu double
- Number of CPU cores.
- Info string
- Application Scenario Description.
- Max
Volume doubleSize - Maximum disk size (in GB).
- Mem
Size double - Memory size (in MB).
- Min
Volume doubleSize - Minimum disk size (in GB).
- Qps double
- Queries per second.
- Volume
Step double - Disk increment (in GB).
- Cdb
Type string - Instance type, the possible value ranges are:
UNIVERSAL(universal type),EXCLUSIVE(exclusive type),BASIC(basic type),BASIC_V2(basic type v2). - Cpu float64
- Number of CPU cores.
- Info string
- Application Scenario Description.
- Max
Volume float64Size - Maximum disk size (in GB).
- Mem
Size float64 - Memory size (in MB).
- Min
Volume float64Size - Minimum disk size (in GB).
- Qps float64
- Queries per second.
- Volume
Step float64 - Disk increment (in GB).
- cdb
Type String - Instance type, the possible value ranges are:
UNIVERSAL(universal type),EXCLUSIVE(exclusive type),BASIC(basic type),BASIC_V2(basic type v2). - cpu Double
- Number of CPU cores.
- info String
- Application Scenario Description.
- max
Volume DoubleSize - Maximum disk size (in GB).
- mem
Size Double - Memory size (in MB).
- min
Volume DoubleSize - Minimum disk size (in GB).
- qps Double
- Queries per second.
- volume
Step Double - Disk increment (in GB).
- cdb
Type string - Instance type, the possible value ranges are:
UNIVERSAL(universal type),EXCLUSIVE(exclusive type),BASIC(basic type),BASIC_V2(basic type v2). - cpu number
- Number of CPU cores.
- info string
- Application Scenario Description.
- max
Volume numberSize - Maximum disk size (in GB).
- mem
Size number - Memory size (in MB).
- min
Volume numberSize - Minimum disk size (in GB).
- qps number
- Queries per second.
- volume
Step number - Disk increment (in GB).
- cdb_
type str - Instance type, the possible value ranges are:
UNIVERSAL(universal type),EXCLUSIVE(exclusive type),BASIC(basic type),BASIC_V2(basic type v2). - cpu float
- Number of CPU cores.
- info str
- Application Scenario Description.
- max_
volume_ floatsize - Maximum disk size (in GB).
- mem_
size float - Memory size (in MB).
- min_
volume_ floatsize - Minimum disk size (in GB).
- qps float
- Queries per second.
- volume_
step float - Disk increment (in GB).
- cdb
Type String - Instance type, the possible value ranges are:
UNIVERSAL(universal type),EXCLUSIVE(exclusive type),BASIC(basic type),BASIC_V2(basic type v2). - cpu Number
- Number of CPU cores.
- info String
- Application Scenario Description.
- max
Volume NumberSize - Maximum disk size (in GB).
- mem
Size Number - Memory size (in MB).
- min
Volume NumberSize - Minimum disk size (in GB).
- qps Number
- Queries per second.
- volume
Step Number - Disk increment (in GB).
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
