tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getMysqlZoneConfig
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 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.
- 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 Zones This property is required. List<string> - Information about available zones of recovery.
- Engine
Versions This property is required. List<string> - The version number of the database engine to use. Supported versions include
5.5
/5.6
/5.7
. - First
Slave Zones This property is required. List<string> - Zone information about first slave instance.
- Hour
Instance Sale Max Num This property is required. double - Is
Default This property is required. double - Indicates whether the current DC is the default DC for the region. Possible returned values:
0
- no;1
- yes. - Is
Support Disaster Recovery This property is required. double - Indicates whether recovery is supported:
0
- No;1
- Yes. - Is
Support Vpc This property is required. double - Indicates whether VPC is supported:
0
- No;1
- Yes. - Name
This property is required. string - The name of available zone which is equal to a specific datacenter.
- Pay
Types This property is required. List<double> - Remote
Ro Zones This property is required. List<string> - Zone information about remote ro instance.
- Second
Slave Zones This property is required. List<string> - Zone information about second slave instance.
- Sells
This property is required. List<GetMysql Zone Config List Sell> - A list of supported instance types for sell:
- Slave
Deploy Modes This property is required. List<double> - Availability zone deployment method. Available values:
0
- Single availability zone;1
- Multiple availability zones. - Support
Slave Sync Modes This property is required. List<double> - Data replication mode.
0
- Async replication;1
- Semisync replication;2
- Strongsync replication.
- Disaster
Recovery Zones This property is required. []string - Information about available zones of recovery.
- Engine
Versions This property is required. []string - The version number of the database engine to use. Supported versions include
5.5
/5.6
/5.7
. - First
Slave Zones This property is required. []string - Zone information about first slave instance.
- Hour
Instance Sale Max Num This property is required. float64 - Is
Default This property is required. float64 - Indicates whether the current DC is the default DC for the region. Possible returned values:
0
- no;1
- yes. - Is
Support Disaster Recovery This property is required. float64 - Indicates whether recovery is supported:
0
- No;1
- Yes. - Is
Support Vpc This property is required. float64 - Indicates whether VPC is supported:
0
- No;1
- Yes. - Name
This property is required. string - The name of available zone which is equal to a specific datacenter.
- Pay
Types This property is required. []float64 - Remote
Ro Zones This property is required. []string - Zone information about remote ro instance.
- Second
Slave Zones This property is required. []string - Zone information about second slave instance.
- Sells
This property is required. []GetMysql Zone Config List Sell - A list of supported instance types for sell:
- Slave
Deploy Modes This property is required. []float64 - Availability zone deployment method. Available values:
0
- Single availability zone;1
- Multiple availability zones. - Support
Slave Sync Modes This property is required. []float64 - Data replication mode.
0
- Async replication;1
- Semisync replication;2
- Strongsync replication.
- disaster
Recovery Zones This property is required. List<String> - Information about available zones of recovery.
- engine
Versions This property is required. List<String> - The version number of the database engine to use. Supported versions include
5.5
/5.6
/5.7
. - first
Slave Zones This property is required. List<String> - Zone information about first slave instance.
- hour
Instance Sale Max Num This property is required. Double - is
Default This property is required. Double - Indicates whether the current DC is the default DC for the region. Possible returned values:
0
- no;1
- yes. - is
Support Disaster Recovery This property is required. Double - Indicates whether recovery is supported:
0
- No;1
- Yes. - is
Support Vpc This property is required. Double - Indicates whether VPC is supported:
0
- No;1
- Yes. - name
This property is required. String - The name of available zone which is equal to a specific datacenter.
- pay
Types This property is required. List<Double> - remote
Ro Zones This property is required. List<String> - Zone information about remote ro instance.
- second
Slave Zones This property is required. List<String> - Zone information about second slave instance.
- sells
This property is required. List<GetMysql Zone Config List Sell> - A list of supported instance types for sell:
- slave
Deploy Modes This property is required. List<Double> - Availability zone deployment method. Available values:
0
- Single availability zone;1
- Multiple availability zones. - support
Slave Sync Modes This property is required. List<Double> - Data replication mode.
0
- Async replication;1
- Semisync replication;2
- Strongsync replication.
- disaster
Recovery Zones This property is required. string[] - Information about available zones of recovery.
- engine
Versions This property is required. string[] - The version number of the database engine to use. Supported versions include
5.5
/5.6
/5.7
. - first
Slave Zones This property is required. string[] - Zone information about first slave instance.
- hour
Instance Sale Max Num This property is required. number - is
Default This property is required. number - Indicates whether the current DC is the default DC for the region. Possible returned values:
0
- no;1
- yes. - is
Support Disaster Recovery This property is required. number - Indicates whether recovery is supported:
0
- No;1
- Yes. - is
Support Vpc This property is required. number - Indicates whether VPC is supported:
0
- No;1
- Yes. - name
This property is required. string - The name of available zone which is equal to a specific datacenter.
- pay
Types This property is required. number[] - remote
Ro Zones This property is required. string[] - Zone information about remote ro instance.
- second
Slave Zones This property is required. string[] - Zone information about second slave instance.
- sells
This property is required. GetMysql Zone Config List Sell[] - A list of supported instance types for sell:
- slave
Deploy Modes This property is required. number[] - Availability zone deployment method. Available values:
0
- Single availability zone;1
- Multiple availability zones. - support
Slave Sync Modes This property is required. number[] - Data replication mode.
0
- Async replication;1
- Semisync replication;2
- Strongsync replication.
- disaster_
recovery_ zones This property is required. Sequence[str] - Information about available zones of recovery.
- engine_
versions This property is required. Sequence[str] - The version number of the database engine to use. Supported versions include
5.5
/5.6
/5.7
. - first_
slave_ zones This property is required. Sequence[str] - Zone information about first slave instance.
- hour_
instance_ sale_ max_ num This property is required. float - is_
default This property is required. float - Indicates whether the current DC is the default DC for the region. Possible returned values:
0
- no;1
- yes. - is_
support_ disaster_ recovery This property is required. float - Indicates whether recovery is supported:
0
- No;1
- Yes. - is_
support_ vpc This property is required. float - Indicates whether VPC is supported:
0
- No;1
- Yes. - name
This property is required. str - The name of available zone which is equal to a specific datacenter.
- pay_
types This property is required. Sequence[float] - remote_
ro_ zones This property is required. Sequence[str] - Zone information about remote ro instance.
- second_
slave_ zones This property is required. Sequence[str] - Zone information about second slave instance.
- sells
This property is required. Sequence[GetMysql Zone Config List Sell] - A list of supported instance types for sell:
- slave_
deploy_ modes This property is required. Sequence[float] - Availability zone deployment method. Available values:
0
- Single availability zone;1
- Multiple availability zones. - support_
slave_ sync_ modes This property is required. Sequence[float] - Data replication mode.
0
- Async replication;1
- Semisync replication;2
- Strongsync replication.
- disaster
Recovery Zones This property is required. List<String> - Information about available zones of recovery.
- engine
Versions This property is required. List<String> - The version number of the database engine to use. Supported versions include
5.5
/5.6
/5.7
. - first
Slave Zones This property is required. List<String> - Zone information about first slave instance.
- hour
Instance Sale Max Num This property is required. Number - is
Default This property is required. Number - Indicates whether the current DC is the default DC for the region. Possible returned values:
0
- no;1
- yes. - is
Support Disaster Recovery This property is required. Number - Indicates whether recovery is supported:
0
- No;1
- Yes. - is
Support Vpc This property is required. Number - Indicates whether VPC is supported:
0
- No;1
- Yes. - name
This property is required. String - The name of available zone which is equal to a specific datacenter.
- pay
Types This property is required. List<Number> - remote
Ro Zones This property is required. List<String> - Zone information about remote ro instance.
- second
Slave Zones This property is required. List<String> - Zone information about second slave instance.
- sells
This property is required. List<Property Map> - A list of supported instance types for sell:
- slave
Deploy Modes This property is required. List<Number> - Availability zone deployment method. Available values:
0
- Single availability zone;1
- Multiple availability zones. - support
Slave Sync Modes This property is required. List<Number> - Data replication mode.
0
- Async replication;1
- Semisync replication;2
- Strongsync replication.
GetMysqlZoneConfigListSell
- Cdb
Type This property is required. string - Instance type, the possible value ranges are:
UNIVERSAL
(universal type),EXCLUSIVE
(exclusive type),BASIC
(basic type),BASIC_V2
(basic type v2). - Cpu
This property is required. double - Number of CPU cores.
- Info
This property is required. string - Application Scenario Description.
- Max
Volume Size This property is required. double - Maximum disk size (in GB).
- Mem
Size This property is required. double - Memory size (in MB).
- Min
Volume Size This property is required. double - Minimum disk size (in GB).
- Qps
This property is required. double - Queries per second.
- Volume
Step This property is required. double - Disk increment (in GB).
- Cdb
Type This property is required. string - Instance type, the possible value ranges are:
UNIVERSAL
(universal type),EXCLUSIVE
(exclusive type),BASIC
(basic type),BASIC_V2
(basic type v2). - Cpu
This property is required. float64 - Number of CPU cores.
- Info
This property is required. string - Application Scenario Description.
- Max
Volume Size This property is required. float64 - Maximum disk size (in GB).
- Mem
Size This property is required. float64 - Memory size (in MB).
- Min
Volume Size This property is required. float64 - Minimum disk size (in GB).
- Qps
This property is required. float64 - Queries per second.
- Volume
Step This property is required. float64 - Disk increment (in GB).
- cdb
Type This property is required. String - Instance type, the possible value ranges are:
UNIVERSAL
(universal type),EXCLUSIVE
(exclusive type),BASIC
(basic type),BASIC_V2
(basic type v2). - cpu
This property is required. Double - Number of CPU cores.
- info
This property is required. String - Application Scenario Description.
- max
Volume Size This property is required. Double - Maximum disk size (in GB).
- mem
Size This property is required. Double - Memory size (in MB).
- min
Volume Size This property is required. Double - Minimum disk size (in GB).
- qps
This property is required. Double - Queries per second.
- volume
Step This property is required. Double - Disk increment (in GB).
- cdb
Type This property is required. string - Instance type, the possible value ranges are:
UNIVERSAL
(universal type),EXCLUSIVE
(exclusive type),BASIC
(basic type),BASIC_V2
(basic type v2). - cpu
This property is required. number - Number of CPU cores.
- info
This property is required. string - Application Scenario Description.
- max
Volume Size This property is required. number - Maximum disk size (in GB).
- mem
Size This property is required. number - Memory size (in MB).
- min
Volume Size This property is required. number - Minimum disk size (in GB).
- qps
This property is required. number - Queries per second.
- volume
Step This property is required. number - Disk increment (in GB).
- cdb_
type This property is required. str - Instance type, the possible value ranges are:
UNIVERSAL
(universal type),EXCLUSIVE
(exclusive type),BASIC
(basic type),BASIC_V2
(basic type v2). - cpu
This property is required. float - Number of CPU cores.
- info
This property is required. str - Application Scenario Description.
- max_
volume_ size This property is required. float - Maximum disk size (in GB).
- mem_
size This property is required. float - Memory size (in MB).
- min_
volume_ size This property is required. float - Minimum disk size (in GB).
- qps
This property is required. float - Queries per second.
- volume_
step This property is required. float - Disk increment (in GB).
- cdb
Type This property is required. String - Instance type, the possible value ranges are:
UNIVERSAL
(universal type),EXCLUSIVE
(exclusive type),BASIC
(basic type),BASIC_V2
(basic type v2). - cpu
This property is required. Number - Number of CPU cores.
- info
This property is required. String - Application Scenario Description.
- max
Volume Size This property is required. Number - Maximum disk size (in GB).
- mem
Size This property is required. Number - Memory size (in MB).
- min
Volume Size This property is required. Number - Minimum disk size (in GB).
- qps
This property is required. Number - Queries per second.
- volume
Step This property is required. 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 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack