ucloud 1.39.1 published on Monday, Apr 14, 2025 by ucloud
ucloud.getDbParameterGroups
Explore with Pulumi AI
This data source provides a list of parameter group resources according to their name and availability zone.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ucloud from "@pulumi/ucloud";
const example = ucloud.getDbParameterGroups({});
export const first = example.then(example => example.parameterGroups?.[0]?.id);
import pulumi
import pulumi_ucloud as ucloud
example = ucloud.get_db_parameter_groups()
pulumi.export("first", example.parameter_groups[0].id)
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 {
		example, err := ucloud.GetDbParameterGroups(ctx, &ucloud.GetDbParameterGroupsArgs{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("first", example.ParameterGroups[0].Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ucloud = Pulumi.Ucloud;
return await Deployment.RunAsync(() => 
{
    var example = Ucloud.GetDbParameterGroups.Invoke();
    return new Dictionary<string, object?>
    {
        ["first"] = example.Apply(getDbParameterGroupsResult => getDbParameterGroupsResult.ParameterGroups[0]?.Id),
    };
});
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.GetDbParameterGroupsArgs;
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.getDbParameterGroups();
        ctx.export("first", example.applyValue(getDbParameterGroupsResult -> getDbParameterGroupsResult.parameterGroups()[0].id()));
    }
}
variables:
  example:
    fn::invoke:
      function: ucloud:getDbParameterGroups
      arguments: {}
outputs:
  first: ${example.parameterGroups[0].id}
Using getDbParameterGroups
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 getDbParameterGroups(args: GetDbParameterGroupsArgs, opts?: InvokeOptions): Promise<GetDbParameterGroupsResult>
function getDbParameterGroupsOutput(args: GetDbParameterGroupsOutputArgs, opts?: InvokeOptions): Output<GetDbParameterGroupsResult>def get_db_parameter_groups(availability_zone: Optional[str] = None,
                            class_type: Optional[str] = None,
                            id: Optional[str] = None,
                            multi_az: Optional[bool] = None,
                            name_regex: Optional[str] = None,
                            output_file: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetDbParameterGroupsResult
def get_db_parameter_groups_output(availability_zone: Optional[pulumi.Input[str]] = None,
                            class_type: Optional[pulumi.Input[str]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            multi_az: Optional[pulumi.Input[bool]] = None,
                            name_regex: Optional[pulumi.Input[str]] = None,
                            output_file: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetDbParameterGroupsResult]func GetDbParameterGroups(ctx *Context, args *GetDbParameterGroupsArgs, opts ...InvokeOption) (*GetDbParameterGroupsResult, error)
func GetDbParameterGroupsOutput(ctx *Context, args *GetDbParameterGroupsOutputArgs, opts ...InvokeOption) GetDbParameterGroupsResultOutput> Note: This function is named GetDbParameterGroups in the Go SDK.
public static class GetDbParameterGroups 
{
    public static Task<GetDbParameterGroupsResult> InvokeAsync(GetDbParameterGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetDbParameterGroupsResult> Invoke(GetDbParameterGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbParameterGroupsResult> getDbParameterGroups(GetDbParameterGroupsArgs args, InvokeOptions options)
public static Output<GetDbParameterGroupsResult> getDbParameterGroups(GetDbParameterGroupsArgs args, InvokeOptions options)
fn::invoke:
  function: ucloud:index/getDbParameterGroups:getDbParameterGroups
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Availability
Zone string - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - Class
Type string - The type of the DB instance, Possible values are: 
sqlfor mysql or percona,postgresqlfor postgresql. - Id string
 - The ID of parameter group.
 - Multi
Az bool - Specifies if the replication instance is a multi-az deployment. You cannot set the 
availability_zoneparameter if themulti_azparameter is set totrue. - Name
Regex string - A regex string to filter resulting parameter groups by name.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). 
- Availability
Zone string - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - Class
Type string - The type of the DB instance, Possible values are: 
sqlfor mysql or percona,postgresqlfor postgresql. - Id string
 - The ID of parameter group.
 - Multi
Az bool - Specifies if the replication instance is a multi-az deployment. You cannot set the 
availability_zoneparameter if themulti_azparameter is set totrue. - Name
Regex string - A regex string to filter resulting parameter groups by name.
 - Output
File string - File name where to save data source results (after running 
pulumi preview). 
- availability
Zone String - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - class
Type String - The type of the DB instance, Possible values are: 
sqlfor mysql or percona,postgresqlfor postgresql. - id String
 - The ID of parameter group.
 - multi
Az Boolean - Specifies if the replication instance is a multi-az deployment. You cannot set the 
availability_zoneparameter if themulti_azparameter is set totrue. - name
Regex String - A regex string to filter resulting parameter groups by name.
 - output
File String - File name where to save data source results (after running 
pulumi preview). 
- availability
Zone string - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - class
Type string - The type of the DB instance, Possible values are: 
sqlfor mysql or percona,postgresqlfor postgresql. - id string
 - The ID of parameter group.
 - multi
Az boolean - Specifies if the replication instance is a multi-az deployment. You cannot set the 
availability_zoneparameter if themulti_azparameter is set totrue. - name
Regex string - A regex string to filter resulting parameter groups by name.
 - output
File string - File name where to save data source results (after running 
pulumi preview). 
- availability_
zone str - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - class_
type str - The type of the DB instance, Possible values are: 
sqlfor mysql or percona,postgresqlfor postgresql. - id str
 - The ID of parameter group.
 - multi_
az bool - Specifies if the replication instance is a multi-az deployment. You cannot set the 
availability_zoneparameter if themulti_azparameter is set totrue. - name_
regex str - A regex string to filter resulting parameter groups by name.
 - output_
file str - File name where to save data source results (after running 
pulumi preview). 
- availability
Zone String - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - class
Type String - The type of the DB instance, Possible values are: 
sqlfor mysql or percona,postgresqlfor postgresql. - id String
 - The ID of parameter group.
 - multi
Az Boolean - Specifies if the replication instance is a multi-az deployment. You cannot set the 
availability_zoneparameter if themulti_azparameter is set totrue. - name
Regex String - A regex string to filter resulting parameter groups by name.
 - output
File String - File name where to save data source results (after running 
pulumi preview). 
getDbParameterGroups Result
The following output properties are available:
- Id string
 - The ID of parameter group.
 - Parameter
Groups List<GetDb Parameter Groups Parameter Group>  - It is a nested type which documented below.
 - Total
Count double - Total number of parameter groups that satisfy the condition.
 - Availability
Zone string - Availability zone where parameter group is located.
 - Class
Type string - Multi
Az bool - Name
Regex string - Output
File string 
- Id string
 - The ID of parameter group.
 - Parameter
Groups []GetDb Parameter Groups Parameter Group  - It is a nested type which documented below.
 - Total
Count float64 - Total number of parameter groups that satisfy the condition.
 - Availability
Zone string - Availability zone where parameter group is located.
 - Class
Type string - Multi
Az bool - Name
Regex string - Output
File string 
- id String
 - The ID of parameter group.
 - parameter
Groups List<GetDb Parameter Groups Parameter Group>  - It is a nested type which documented below.
 - total
Count Double - Total number of parameter groups that satisfy the condition.
 - availability
Zone String - Availability zone where parameter group is located.
 - class
Type String - multi
Az Boolean - name
Regex String - output
File String 
- id string
 - The ID of parameter group.
 - parameter
Groups GetDb Parameter Groups Parameter Group[]  - It is a nested type which documented below.
 - total
Count number - Total number of parameter groups that satisfy the condition.
 - availability
Zone string - Availability zone where parameter group is located.
 - class
Type string - multi
Az boolean - name
Regex string - output
File string 
- id str
 - The ID of parameter group.
 - parameter_
groups Sequence[GetDb Parameter Groups Parameter Group]  - It is a nested type which documented below.
 - total_
count float - Total number of parameter groups that satisfy the condition.
 - availability_
zone str - Availability zone where parameter group is located.
 - class_
type str - multi_
az bool - name_
regex str - output_
file str 
- id String
 - The ID of parameter group.
 - parameter
Groups List<Property Map> - It is a nested type which documented below.
 - total
Count Number - Total number of parameter groups that satisfy the condition.
 - availability
Zone String - Availability zone where parameter group is located.
 - class
Type String - multi
Az Boolean - name
Regex String - output
File String 
Supporting Types
GetDbParameterGroupsParameterGroup     
- Availability
Zone string - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - Engine string
 - The type of database instance engine used by the parameter group.
 - Engine
Version string - The database instance engine version used by the parameter group.
 - Id string
 - The ID of parameter group.
 - Is
Default bool - Name string
 - The name of parameter group.
 
- Availability
Zone string - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - Engine string
 - The type of database instance engine used by the parameter group.
 - Engine
Version string - The database instance engine version used by the parameter group.
 - Id string
 - The ID of parameter group.
 - Is
Default bool - Name string
 - The name of parameter group.
 
- availability
Zone String - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - engine String
 - The type of database instance engine used by the parameter group.
 - engine
Version String - The database instance engine version used by the parameter group.
 - id String
 - The ID of parameter group.
 - is
Default Boolean - name String
 - The name of parameter group.
 
- availability
Zone string - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - engine string
 - The type of database instance engine used by the parameter group.
 - engine
Version string - The database instance engine version used by the parameter group.
 - id string
 - The ID of parameter group.
 - is
Default boolean - name string
 - The name of parameter group.
 
- availability_
zone str - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - engine str
 - The type of database instance engine used by the parameter group.
 - engine_
version str - The database instance engine version used by the parameter group.
 - id str
 - The ID of parameter group.
 - is_
default bool - name str
 - The name of parameter group.
 
- availability
Zone String - Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
 - engine String
 - The type of database instance engine used by the parameter group.
 - engine
Version String - The database instance engine version used by the parameter group.
 - id String
 - The ID of parameter group.
 - is
Default Boolean - name String
 - The name of parameter group.
 
Package Details
- Repository
 - ucloud ucloud/terraform-provider-ucloud
 - License
 - Notes
 - This Pulumi package is based on the 
ucloudTerraform Provider.