1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMysqlDefaultParams
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

tencentcloud.getMysqlDefaultParams

Start a Neo task
Explain and create a tencentcloud.getMysqlDefaultParams resource
tencentcloud logo
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

    Provide a datasource to query default mysql parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const mysql57 = new tencentcloud.index.MysqlDefaultParams("mysql_57", {dbVersion: "5.7"});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    mysql57 = tencentcloud.index.MysqlDefaultParams("mysql_57", db_version=5.7)
    
    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.NewMysqlDefaultParams(ctx, "mysql_57", &tencentcloud.MysqlDefaultParamsArgs{
    			DbVersion: "5.7",
    		})
    		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 mysql57 = new Tencentcloud.Index.MysqlDefaultParams("mysql_57", new()
        {
            DbVersion = "5.7",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.MysqlDefaultParams;
    import com.pulumi.tencentcloud.MysqlDefaultParamsArgs;
    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) {
            var mysql57 = new MysqlDefaultParams("mysql57", MysqlDefaultParamsArgs.builder()
                .dbVersion("5.7")
                .build());
    
        }
    }
    
    resources:
      mysql57:
        type: tencentcloud:MysqlDefaultParams
        name: mysql_57
        properties:
          dbVersion: '5.7'
    

    Using getMysqlDefaultParams

    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 getMysqlDefaultParams(args: GetMysqlDefaultParamsArgs, opts?: InvokeOptions): Promise<GetMysqlDefaultParamsResult>
    function getMysqlDefaultParamsOutput(args: GetMysqlDefaultParamsOutputArgs, opts?: InvokeOptions): Output<GetMysqlDefaultParamsResult>
    def get_mysql_default_params(db_version: Optional[str] = None,
                                 id: Optional[str] = None,
                                 result_output_file: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetMysqlDefaultParamsResult
    def get_mysql_default_params_output(db_version: Optional[pulumi.Input[str]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetMysqlDefaultParamsResult]
    func GetMysqlDefaultParams(ctx *Context, args *GetMysqlDefaultParamsArgs, opts ...InvokeOption) (*GetMysqlDefaultParamsResult, error)
    func GetMysqlDefaultParamsOutput(ctx *Context, args *GetMysqlDefaultParamsOutputArgs, opts ...InvokeOption) GetMysqlDefaultParamsResultOutput

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

    public static class GetMysqlDefaultParams 
    {
        public static Task<GetMysqlDefaultParamsResult> InvokeAsync(GetMysqlDefaultParamsArgs args, InvokeOptions? opts = null)
        public static Output<GetMysqlDefaultParamsResult> Invoke(GetMysqlDefaultParamsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMysqlDefaultParamsResult> getMysqlDefaultParams(GetMysqlDefaultParamsArgs args, InvokeOptions options)
    public static Output<GetMysqlDefaultParamsResult> getMysqlDefaultParams(GetMysqlDefaultParamsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMysqlDefaultParams:getMysqlDefaultParams
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DbVersion string
    MySQL database version.
    Id string
    ResultOutputFile string
    Used for save results.
    DbVersion string
    MySQL database version.
    Id string
    ResultOutputFile string
    Used for save results.
    dbVersion String
    MySQL database version.
    id String
    resultOutputFile String
    Used for save results.
    dbVersion string
    MySQL database version.
    id string
    resultOutputFile string
    Used for save results.
    db_version str
    MySQL database version.
    id str
    result_output_file str
    Used for save results.
    dbVersion String
    MySQL database version.
    id String
    resultOutputFile String
    Used for save results.

    getMysqlDefaultParams Result

    The following output properties are available:

    id String
    paramLists List<Property Map>
    List of param detail.
    dbVersion String
    resultOutputFile String

    Supporting Types

    GetMysqlDefaultParamsParamList

    CurrentValue string
    Param current value.
    Default string
    Param default value.
    Description string
    Param description.
    EnumValues List<string>
    Params available values if type of param is enum.
    Max double
    Param maximum value if type of param is integer.
    Min double
    Param minimum value if type of param is integer.
    Name string
    Param key name.
    NeedReboot double
    Indicates weather the database instance reboot if param modified.
    ParamType string
    Type of param.
    CurrentValue string
    Param current value.
    Default string
    Param default value.
    Description string
    Param description.
    EnumValues []string
    Params available values if type of param is enum.
    Max float64
    Param maximum value if type of param is integer.
    Min float64
    Param minimum value if type of param is integer.
    Name string
    Param key name.
    NeedReboot float64
    Indicates weather the database instance reboot if param modified.
    ParamType string
    Type of param.
    currentValue String
    Param current value.
    default_ String
    Param default value.
    description String
    Param description.
    enumValues List<String>
    Params available values if type of param is enum.
    max Double
    Param maximum value if type of param is integer.
    min Double
    Param minimum value if type of param is integer.
    name String
    Param key name.
    needReboot Double
    Indicates weather the database instance reboot if param modified.
    paramType String
    Type of param.
    currentValue string
    Param current value.
    default string
    Param default value.
    description string
    Param description.
    enumValues string[]
    Params available values if type of param is enum.
    max number
    Param maximum value if type of param is integer.
    min number
    Param minimum value if type of param is integer.
    name string
    Param key name.
    needReboot number
    Indicates weather the database instance reboot if param modified.
    paramType string
    Type of param.
    current_value str
    Param current value.
    default str
    Param default value.
    description str
    Param description.
    enum_values Sequence[str]
    Params available values if type of param is enum.
    max float
    Param maximum value if type of param is integer.
    min float
    Param minimum value if type of param is integer.
    name str
    Param key name.
    need_reboot float
    Indicates weather the database instance reboot if param modified.
    param_type str
    Type of param.
    currentValue String
    Param current value.
    default String
    Param default value.
    description String
    Param description.
    enumValues List<String>
    Params available values if type of param is enum.
    max Number
    Param maximum value if type of param is integer.
    min Number
    Param minimum value if type of param is integer.
    name String
    Param key name.
    needReboot Number
    Indicates weather the database instance reboot if param modified.
    paramType String
    Type of param.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate