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

tencentcloud.getMysqlParameterList

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to get information about a parameter group of a database instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const mysql = tencentcloud.getMysqlParameterList({
        engineVersion: "5.5",
        mysqlId: "terraform-test-local-database",
        resultOutputFile: "mytestpath",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    mysql = tencentcloud.get_mysql_parameter_list(engine_version="5.5",
        mysql_id="terraform-test-local-database",
        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.GetMysqlParameterList(ctx, &tencentcloud.GetMysqlParameterListArgs{
    			EngineVersion:    pulumi.StringRef("5.5"),
    			MysqlId:          pulumi.StringRef("terraform-test-local-database"),
    			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.GetMysqlParameterList.Invoke(new()
        {
            EngineVersion = "5.5",
            MysqlId = "terraform-test-local-database",
            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.GetMysqlParameterListArgs;
    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.getMysqlParameterList(GetMysqlParameterListArgs.builder()
                .engineVersion("5.5")
                .mysqlId("terraform-test-local-database")
                .resultOutputFile("mytestpath")
                .build());
    
        }
    }
    
    variables:
      mysql:
        fn::invoke:
          function: tencentcloud:getMysqlParameterList
          arguments:
            engineVersion: '5.5'
            mysqlId: terraform-test-local-database
            resultOutputFile: mytestpath
    

    Using getMysqlParameterList

    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 getMysqlParameterList(args: GetMysqlParameterListArgs, opts?: InvokeOptions): Promise<GetMysqlParameterListResult>
    function getMysqlParameterListOutput(args: GetMysqlParameterListOutputArgs, opts?: InvokeOptions): Output<GetMysqlParameterListResult>
    def get_mysql_parameter_list(engine_version: Optional[str] = None,
                                 id: Optional[str] = None,
                                 mysql_id: Optional[str] = None,
                                 result_output_file: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetMysqlParameterListResult
    def get_mysql_parameter_list_output(engine_version: Optional[pulumi.Input[str]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 mysql_id: Optional[pulumi.Input[str]] = None,
                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetMysqlParameterListResult]
    func GetMysqlParameterList(ctx *Context, args *GetMysqlParameterListArgs, opts ...InvokeOption) (*GetMysqlParameterListResult, error)
    func GetMysqlParameterListOutput(ctx *Context, args *GetMysqlParameterListOutputArgs, opts ...InvokeOption) GetMysqlParameterListResultOutput

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

    public static class GetMysqlParameterList 
    {
        public static Task<GetMysqlParameterListResult> InvokeAsync(GetMysqlParameterListArgs args, InvokeOptions? opts = null)
        public static Output<GetMysqlParameterListResult> Invoke(GetMysqlParameterListInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMysqlParameterListResult> getMysqlParameterList(GetMysqlParameterListArgs args, InvokeOptions options)
    public static Output<GetMysqlParameterListResult> getMysqlParameterList(GetMysqlParameterListArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getMysqlParameterList:getMysqlParameterList
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EngineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    Id string
    MysqlId string
    Instance ID.
    ResultOutputFile string
    Used to store results.
    EngineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    Id string
    MysqlId string
    Instance ID.
    ResultOutputFile string
    Used to store results.
    engineVersion String
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    id String
    mysqlId String
    Instance ID.
    resultOutputFile String
    Used to store results.
    engineVersion string
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    id string
    mysqlId string
    Instance ID.
    resultOutputFile string
    Used to store results.
    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
    mysql_id str
    Instance ID.
    result_output_file str
    Used to store results.
    engineVersion String
    The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0.
    id String
    mysqlId String
    Instance ID.
    resultOutputFile String
    Used to store results.

    getMysqlParameterList Result

    The following output properties are available:

    Id string
    ParameterLists List<GetMysqlParameterListParameterList>
    A list of parameters. Each element contains the following attributes:
    EngineVersion string
    MysqlId string
    ResultOutputFile string
    Id string
    ParameterLists []GetMysqlParameterListParameterList
    A list of parameters. Each element contains the following attributes:
    EngineVersion string
    MysqlId string
    ResultOutputFile string
    id String
    parameterLists List<GetMysqlParameterListParameterList>
    A list of parameters. Each element contains the following attributes:
    engineVersion String
    mysqlId String
    resultOutputFile String
    id string
    parameterLists GetMysqlParameterListParameterList[]
    A list of parameters. Each element contains the following attributes:
    engineVersion string
    mysqlId string
    resultOutputFile string
    id str
    parameter_lists Sequence[GetMysqlParameterListParameterList]
    A list of parameters. Each element contains the following attributes:
    engine_version str
    mysql_id str
    result_output_file str
    id String
    parameterLists List<Property Map>
    A list of parameters. Each element contains the following attributes:
    engineVersion String
    mysqlId String
    resultOutputFile String

    Supporting Types

    GetMysqlParameterListParameterList

    CurrentValue string
    Current value.
    DefaultValue string
    Default value.
    Description string
    Parameter specification description.
    EnumValues List<string>
    Enumerated value.
    Max double
    Maximum value for the parameter.
    Min double
    Minimum value for the parameter.
    NeedReboot double
    Indicates whether reboot is needed to enable the new parameters.
    ParameterName string
    Parameter name.
    ParameterType string
    Parameter type.
    CurrentValue string
    Current value.
    DefaultValue string
    Default value.
    Description string
    Parameter specification description.
    EnumValues []string
    Enumerated value.
    Max float64
    Maximum value for the parameter.
    Min float64
    Minimum value for the parameter.
    NeedReboot float64
    Indicates whether reboot is needed to enable the new parameters.
    ParameterName string
    Parameter name.
    ParameterType string
    Parameter type.
    currentValue String
    Current value.
    defaultValue String
    Default value.
    description String
    Parameter specification description.
    enumValues List<String>
    Enumerated value.
    max Double
    Maximum value for the parameter.
    min Double
    Minimum value for the parameter.
    needReboot Double
    Indicates whether reboot is needed to enable the new parameters.
    parameterName String
    Parameter name.
    parameterType String
    Parameter type.
    currentValue string
    Current value.
    defaultValue string
    Default value.
    description string
    Parameter specification description.
    enumValues string[]
    Enumerated value.
    max number
    Maximum value for the parameter.
    min number
    Minimum value for the parameter.
    needReboot number
    Indicates whether reboot is needed to enable the new parameters.
    parameterName string
    Parameter name.
    parameterType string
    Parameter type.
    current_value str
    Current value.
    default_value str
    Default value.
    description str
    Parameter specification description.
    enum_values Sequence[str]
    Enumerated value.
    max float
    Maximum value for the parameter.
    min float
    Minimum value for the parameter.
    need_reboot float
    Indicates whether reboot is needed to enable the new parameters.
    parameter_name str
    Parameter name.
    parameter_type str
    Parameter type.
    currentValue String
    Current value.
    defaultValue String
    Default value.
    description String
    Parameter specification description.
    enumValues List<String>
    Enumerated value.
    max Number
    Maximum value for the parameter.
    min Number
    Minimum value for the parameter.
    needReboot Number
    Indicates whether reboot is needed to enable the new parameters.
    parameterName String
    Parameter name.
    parameterType String
    Parameter type.

    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