1. Registry
  2. Packages
  3. Ucloud Provider
  4. API Docs
  5. getUdbMysqlParameterTemplates
Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud
ucloud
Viewing docs for ucloud 1.49.0
published on Tuesday, Oct 27, 2026 by ucloud

    This data source provides a list of MySQL parameter templates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ucloud from "@pulumi/ucloud";
    
    const example = ucloud.getUdbMysqlParameterTemplates({
        dbVersion: "mysql-8.0",
    });
    
    import pulumi
    import pulumi_ucloud as ucloud
    
    example = ucloud.get_udb_mysql_parameter_templates(db_version="mysql-8.0")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ucloud/ucloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ucloud.GetUdbMysqlParameterTemplates(ctx, &ucloud.GetUdbMysqlParameterTemplatesArgs{
    			DbVersion: pulumi.StringRef("mysql-8.0"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ucloud = Pulumi.Ucloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ucloud.GetUdbMysqlParameterTemplates.Invoke(new()
        {
            DbVersion = "mysql-8.0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ucloud.UcloudFunctions;
    import com.pulumi.ucloud.inputs.GetUdbMysqlParameterTemplatesArgs;
    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 example = UcloudFunctions.getUdbMysqlParameterTemplates(GetUdbMysqlParameterTemplatesArgs.builder()
                .dbVersion("mysql-8.0")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ucloud:getUdbMysqlParameterTemplates
          arguments:
            dbVersion: mysql-8.0
    
    Example coming soon!
    

    Using getUdbMysqlParameterTemplates

    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 getUdbMysqlParameterTemplates(args: GetUdbMysqlParameterTemplatesArgs, opts?: InvokeOptions): Promise<GetUdbMysqlParameterTemplatesResult>
    function getUdbMysqlParameterTemplatesOutput(args: GetUdbMysqlParameterTemplatesOutputArgs, opts?: InvokeOutputOptions): Output<GetUdbMysqlParameterTemplatesResult>
    def get_udb_mysql_parameter_templates(availability_zone: Optional[str] = None,
                                          db_version: Optional[str] = None,
                                          id: Optional[str] = None,
                                          name_regex: Optional[str] = None,
                                          output_file: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetUdbMysqlParameterTemplatesResult
    def get_udb_mysql_parameter_templates_output(availability_zone: pulumi.Input[Optional[str]] = None,
                                          db_version: pulumi.Input[Optional[str]] = None,
                                          id: pulumi.Input[Optional[str]] = None,
                                          name_regex: pulumi.Input[Optional[str]] = None,
                                          output_file: pulumi.Input[Optional[str]] = None,
                                          opts: Optional[InvokeOutputOptions] = None) -> Output[GetUdbMysqlParameterTemplatesResult]
    func GetUdbMysqlParameterTemplates(ctx *Context, args *GetUdbMysqlParameterTemplatesArgs, opts ...InvokeOption) (*GetUdbMysqlParameterTemplatesResult, error)
    func GetUdbMysqlParameterTemplatesOutput(ctx *Context, args *GetUdbMysqlParameterTemplatesOutputArgs, opts ...InvokeOption) GetUdbMysqlParameterTemplatesResultOutput

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

    public static class GetUdbMysqlParameterTemplates 
    {
        public static Task<GetUdbMysqlParameterTemplatesResult> InvokeAsync(GetUdbMysqlParameterTemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetUdbMysqlParameterTemplatesResult> Invoke(GetUdbMysqlParameterTemplatesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetUdbMysqlParameterTemplatesResult> Invoke(GetUdbMysqlParameterTemplatesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetUdbMysqlParameterTemplatesResult> getUdbMysqlParameterTemplates(GetUdbMysqlParameterTemplatesArgs args, InvokeOptions options)
    public static Output<GetUdbMysqlParameterTemplatesResult> getUdbMysqlParameterTemplates(GetUdbMysqlParameterTemplatesArgs args, InvokeOptions options)
    public static Output<GetUdbMysqlParameterTemplatesResult> getUdbMysqlParameterTemplates(GetUdbMysqlParameterTemplatesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: ucloud:index/getUdbMysqlParameterTemplates:getUdbMysqlParameterTemplates
      arguments:
        # arguments dictionary
    data "ucloud_get_udb_mysql_parameter_templates" "name" {
        # arguments
    }

    The following arguments are supported:

    AvailabilityZone string
    Availability zone where the parameter templates are located.
    DbVersion string
    The database version to filter, e.g. mysql-8.0.
    Id string
    The ID of the parameter template.
    NameRegex string
    A regex string to filter resulting templates by name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    AvailabilityZone string
    Availability zone where the parameter templates are located.
    DbVersion string
    The database version to filter, e.g. mysql-8.0.
    Id string
    The ID of the parameter template.
    NameRegex string
    A regex string to filter resulting templates by name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    availability_zone string
    Availability zone where the parameter templates are located.
    db_version string
    The database version to filter, e.g. mysql-8.0.
    id string
    The ID of the parameter template.
    name_regex string
    A regex string to filter resulting templates by name.
    output_file string
    File name where to save data source results (after running pulumi preview).
    availabilityZone String
    Availability zone where the parameter templates are located.
    dbVersion String
    The database version to filter, e.g. mysql-8.0.
    id String
    The ID of the parameter template.
    nameRegex String
    A regex string to filter resulting templates by name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    availabilityZone string
    Availability zone where the parameter templates are located.
    dbVersion string
    The database version to filter, e.g. mysql-8.0.
    id string
    The ID of the parameter template.
    nameRegex string
    A regex string to filter resulting templates by name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    availability_zone str
    Availability zone where the parameter templates are located.
    db_version str
    The database version to filter, e.g. mysql-8.0.
    id str
    The ID of the parameter template.
    name_regex str
    A regex string to filter resulting templates by name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    availabilityZone String
    Availability zone where the parameter templates are located.
    dbVersion String
    The database version to filter, e.g. mysql-8.0.
    id String
    The ID of the parameter template.
    nameRegex String
    A regex string to filter resulting templates by name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getUdbMysqlParameterTemplates Result

    The following output properties are available:

    Id string
    The ID of the parameter template.
    TotalCount double
    Total number of templates that satisfy the condition.
    UdbMysqlParameterTemplates List<GetUdbMysqlParameterTemplatesUdbMysqlParameterTemplate>
    It is a nested type which documented below.
    AvailabilityZone string
    DbVersion string
    NameRegex string
    OutputFile string
    Id string
    The ID of the parameter template.
    TotalCount float64
    Total number of templates that satisfy the condition.
    UdbMysqlParameterTemplates []GetUdbMysqlParameterTemplatesUdbMysqlParameterTemplate
    It is a nested type which documented below.
    AvailabilityZone string
    DbVersion string
    NameRegex string
    OutputFile string
    id string
    The ID of the parameter template.
    total_count number
    Total number of templates that satisfy the condition.
    udb_mysql_parameter_templates list(object)
    It is a nested type which documented below.
    availability_zone string
    db_version string
    name_regex string
    output_file string
    id String
    The ID of the parameter template.
    totalCount Double
    Total number of templates that satisfy the condition.
    udbMysqlParameterTemplates List<GetUdbMysqlParameterTemplatesUdbMysqlParameterTemplate>
    It is a nested type which documented below.
    availabilityZone String
    dbVersion String
    nameRegex String
    outputFile String
    id string
    The ID of the parameter template.
    totalCount number
    Total number of templates that satisfy the condition.
    udbMysqlParameterTemplates GetUdbMysqlParameterTemplatesUdbMysqlParameterTemplate[]
    It is a nested type which documented below.
    availabilityZone string
    dbVersion string
    nameRegex string
    outputFile string
    id str
    The ID of the parameter template.
    total_count float
    Total number of templates that satisfy the condition.
    udb_mysql_parameter_templates Sequence[GetUdbMysqlParameterTemplatesUdbMysqlParameterTemplate]
    It is a nested type which documented below.
    availability_zone str
    db_version str
    name_regex str
    output_file str
    id String
    The ID of the parameter template.
    totalCount Number
    Total number of templates that satisfy the condition.
    udbMysqlParameterTemplates List<Property Map>
    It is a nested type which documented below.
    availabilityZone String
    dbVersion String
    nameRegex String
    outputFile String

    Supporting Types

    GetUdbMysqlParameterTemplatesUdbMysqlParameterTemplate

    Id string
    The ID of the parameter template.
    Name string
    The name of the parameter template.
    Id string
    The ID of the parameter template.
    Name string
    The name of the parameter template.
    id string
    The ID of the parameter template.
    name string
    The name of the parameter template.
    id String
    The ID of the parameter template.
    name String
    The name of the parameter template.
    id string
    The ID of the parameter template.
    name string
    The name of the parameter template.
    id str
    The ID of the parameter template.
    name str
    The name of the parameter template.
    id String
    The ID of the parameter template.
    name String
    The name of the parameter template.

    Package Details

    Repository
    ucloud ucloud/terraform-provider-ucloud
    License
    Notes
    This Pulumi package is based on the ucloud Terraform Provider.
    ucloud
    Viewing docs for ucloud 1.49.0
    published on Tuesday, Oct 27, 2026 by ucloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial