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

tencentcloud.getMysqlZoneConfig

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 dictionary

    The 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.
    ResultOutputFile string
    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.
    ResultOutputFile string
    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.
    resultOutputFile String
    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.
    resultOutputFile string
    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_file str
    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.
    resultOutputFile String
    Used to store results.

    getMysqlZoneConfig Result

    The following output properties are available:

    Id string
    Lists List<GetMysqlZoneConfigList>
    A list of zone config. Each element contains the following attributes:
    Region string
    ResultOutputFile string
    Id string
    Lists []GetMysqlZoneConfigList
    A list of zone config. Each element contains the following attributes:
    Region string
    ResultOutputFile string
    id String
    lists List<GetMysqlZoneConfigList>
    A list of zone config. Each element contains the following attributes:
    region String
    resultOutputFile String
    id string
    lists GetMysqlZoneConfigList[]
    A list of zone config. Each element contains the following attributes:
    region string
    resultOutputFile string
    id str
    lists Sequence[GetMysqlZoneConfigList]
    A list of zone config. Each element contains the following attributes:
    region str
    result_output_file str
    id String
    lists List<Property Map>
    A list of zone config. Each element contains the following attributes:
    region String
    resultOutputFile String

    Supporting Types

    GetMysqlZoneConfigList

    DisasterRecoveryZones List<string>
    Information about available zones of recovery.
    EngineVersions List<string>
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7.
    FirstSlaveZones List<string>
    Zone information about first slave instance.
    HourInstanceSaleMaxNum double
    IsDefault double
    Indicates whether the current DC is the default DC for the region. Possible returned values: 0 - no; 1 - yes.
    IsSupportDisasterRecovery double
    Indicates whether recovery is supported: 0 - No; 1 - Yes.
    IsSupportVpc double
    Indicates whether VPC is supported: 0 - No; 1 - Yes.
    Name string
    The name of available zone which is equal to a specific datacenter.
    PayTypes List<double>
    RemoteRoZones List<string>
    Zone information about remote ro instance.
    SecondSlaveZones List<string>
    Zone information about second slave instance.
    Sells List<GetMysqlZoneConfigListSell>
    A list of supported instance types for sell:
    SlaveDeployModes List<double>
    Availability zone deployment method. Available values: 0 - Single availability zone; 1 - Multiple availability zones.
    SupportSlaveSyncModes List<double>
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.
    DisasterRecoveryZones []string
    Information about available zones of recovery.
    EngineVersions []string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7.
    FirstSlaveZones []string
    Zone information about first slave instance.
    HourInstanceSaleMaxNum float64
    IsDefault float64
    Indicates whether the current DC is the default DC for the region. Possible returned values: 0 - no; 1 - yes.
    IsSupportDisasterRecovery float64
    Indicates whether recovery is supported: 0 - No; 1 - Yes.
    IsSupportVpc float64
    Indicates whether VPC is supported: 0 - No; 1 - Yes.
    Name string
    The name of available zone which is equal to a specific datacenter.
    PayTypes []float64
    RemoteRoZones []string
    Zone information about remote ro instance.
    SecondSlaveZones []string
    Zone information about second slave instance.
    Sells []GetMysqlZoneConfigListSell
    A list of supported instance types for sell:
    SlaveDeployModes []float64
    Availability zone deployment method. Available values: 0 - Single availability zone; 1 - Multiple availability zones.
    SupportSlaveSyncModes []float64
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.
    disasterRecoveryZones List<String>
    Information about available zones of recovery.
    engineVersions List<String>
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7.
    firstSlaveZones List<String>
    Zone information about first slave instance.
    hourInstanceSaleMaxNum Double
    isDefault Double
    Indicates whether the current DC is the default DC for the region. Possible returned values: 0 - no; 1 - yes.
    isSupportDisasterRecovery Double
    Indicates whether recovery is supported: 0 - No; 1 - Yes.
    isSupportVpc Double
    Indicates whether VPC is supported: 0 - No; 1 - Yes.
    name String
    The name of available zone which is equal to a specific datacenter.
    payTypes List<Double>
    remoteRoZones List<String>
    Zone information about remote ro instance.
    secondSlaveZones List<String>
    Zone information about second slave instance.
    sells List<GetMysqlZoneConfigListSell>
    A list of supported instance types for sell:
    slaveDeployModes List<Double>
    Availability zone deployment method. Available values: 0 - Single availability zone; 1 - Multiple availability zones.
    supportSlaveSyncModes List<Double>
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.
    disasterRecoveryZones string[]
    Information about available zones of recovery.
    engineVersions string[]
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7.
    firstSlaveZones string[]
    Zone information about first slave instance.
    hourInstanceSaleMaxNum number
    isDefault number
    Indicates whether the current DC is the default DC for the region. Possible returned values: 0 - no; 1 - yes.
    isSupportDisasterRecovery number
    Indicates whether recovery is supported: 0 - No; 1 - Yes.
    isSupportVpc number
    Indicates whether VPC is supported: 0 - No; 1 - Yes.
    name string
    The name of available zone which is equal to a specific datacenter.
    payTypes number[]
    remoteRoZones string[]
    Zone information about remote ro instance.
    secondSlaveZones string[]
    Zone information about second slave instance.
    sells GetMysqlZoneConfigListSell[]
    A list of supported instance types for sell:
    slaveDeployModes number[]
    Availability zone deployment method. Available values: 0 - Single availability zone; 1 - Multiple availability zones.
    supportSlaveSyncModes number[]
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.
    disaster_recovery_zones Sequence[str]
    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_zones Sequence[str]
    Zone information about first slave instance.
    hour_instance_sale_max_num float
    is_default float
    Indicates whether the current DC is the default DC for the region. Possible returned values: 0 - no; 1 - yes.
    is_support_disaster_recovery float
    Indicates whether recovery is supported: 0 - No; 1 - Yes.
    is_support_vpc float
    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_zones Sequence[str]
    Zone information about remote ro instance.
    second_slave_zones Sequence[str]
    Zone information about second slave instance.
    sells Sequence[GetMysqlZoneConfigListSell]
    A list of supported instance types for sell:
    slave_deploy_modes Sequence[float]
    Availability zone deployment method. Available values: 0 - Single availability zone; 1 - Multiple availability zones.
    support_slave_sync_modes Sequence[float]
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.
    disasterRecoveryZones List<String>
    Information about available zones of recovery.
    engineVersions List<String>
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7.
    firstSlaveZones List<String>
    Zone information about first slave instance.
    hourInstanceSaleMaxNum Number
    isDefault Number
    Indicates whether the current DC is the default DC for the region. Possible returned values: 0 - no; 1 - yes.
    isSupportDisasterRecovery Number
    Indicates whether recovery is supported: 0 - No; 1 - Yes.
    isSupportVpc Number
    Indicates whether VPC is supported: 0 - No; 1 - Yes.
    name String
    The name of available zone which is equal to a specific datacenter.
    payTypes List<Number>
    remoteRoZones List<String>
    Zone information about remote ro instance.
    secondSlaveZones List<String>
    Zone information about second slave instance.
    sells List<Property Map>
    A list of supported instance types for sell:
    slaveDeployModes List<Number>
    Availability zone deployment method. Available values: 0 - Single availability zone; 1 - Multiple availability zones.
    supportSlaveSyncModes List<Number>
    Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.

    GetMysqlZoneConfigListSell

    CdbType 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.
    MaxVolumeSize double
    Maximum disk size (in GB).
    MemSize double
    Memory size (in MB).
    MinVolumeSize double
    Minimum disk size (in GB).
    Qps double
    Queries per second.
    VolumeStep double
    Disk increment (in GB).
    CdbType 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.
    MaxVolumeSize float64
    Maximum disk size (in GB).
    MemSize float64
    Memory size (in MB).
    MinVolumeSize float64
    Minimum disk size (in GB).
    Qps float64
    Queries per second.
    VolumeStep float64
    Disk increment (in GB).
    cdbType 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.
    maxVolumeSize Double
    Maximum disk size (in GB).
    memSize Double
    Memory size (in MB).
    minVolumeSize Double
    Minimum disk size (in GB).
    qps Double
    Queries per second.
    volumeStep Double
    Disk increment (in GB).
    cdbType 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.
    maxVolumeSize number
    Maximum disk size (in GB).
    memSize number
    Memory size (in MB).
    minVolumeSize number
    Minimum disk size (in GB).
    qps number
    Queries per second.
    volumeStep 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_size float
    Maximum disk size (in GB).
    mem_size float
    Memory size (in MB).
    min_volume_size float
    Minimum disk size (in GB).
    qps float
    Queries per second.
    volume_step float
    Disk increment (in GB).
    cdbType 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.
    maxVolumeSize Number
    Maximum disk size (in GB).
    memSize Number
    Memory size (in MB).
    minVolumeSize Number
    Minimum disk size (in GB).
    qps Number
    Queries per second.
    volumeStep Number
    Disk increment (in GB).

    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