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:
- AvailabilityZone string
- Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
- ClassType string
- The type of the DB instance, Possible values are: sqlfor mysql or percona,postgresqlfor postgresql.
- Id string
- The ID of parameter group.
- MultiAz bool
- Specifies if the replication instance is a multi-az deployment. You cannot set the availability_zoneparameter if themulti_azparameter is set totrue.
- NameRegex string
- A regex string to filter resulting parameter groups by name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- AvailabilityZone string
- Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
- ClassType string
- The type of the DB instance, Possible values are: sqlfor mysql or percona,postgresqlfor postgresql.
- Id string
- The ID of parameter group.
- MultiAz bool
- Specifies if the replication instance is a multi-az deployment. You cannot set the availability_zoneparameter if themulti_azparameter is set totrue.
- NameRegex string
- A regex string to filter resulting parameter groups by name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- availabilityZone String
- Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
- classType String
- The type of the DB instance, Possible values are: sqlfor mysql or percona,postgresqlfor postgresql.
- id String
- The ID of parameter group.
- multiAz Boolean
- Specifies if the replication instance is a multi-az deployment. You cannot set the availability_zoneparameter if themulti_azparameter is set totrue.
- nameRegex String
- A regex string to filter resulting parameter groups by name.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- availabilityZone string
- Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
- classType string
- The type of the DB instance, Possible values are: sqlfor mysql or percona,postgresqlfor postgresql.
- id string
- The ID of parameter group.
- multiAz boolean
- Specifies if the replication instance is a multi-az deployment. You cannot set the availability_zoneparameter if themulti_azparameter is set totrue.
- nameRegex string
- A regex string to filter resulting parameter groups by name.
- outputFile 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).
- availabilityZone String
- Availability zone where parameter groups are located. Such as: "cn-bj2-02". You may refer to list of availability zone
- classType String
- The type of the DB instance, Possible values are: sqlfor mysql or percona,postgresqlfor postgresql.
- id String
- The ID of parameter group.
- multiAz Boolean
- Specifies if the replication instance is a multi-az deployment. You cannot set the availability_zoneparameter if themulti_azparameter is set totrue.
- nameRegex String
- A regex string to filter resulting parameter groups by name.
- outputFile 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.
- ParameterGroups List<GetDb Parameter Groups Parameter Group> 
- It is a nested type which documented below.
- TotalCount double
- Total number of parameter groups that satisfy the condition.
- AvailabilityZone string
- Availability zone where parameter group is located.
- ClassType string
- MultiAz bool
- NameRegex string
- OutputFile string
- Id string
- The ID of parameter group.
- ParameterGroups []GetDb Parameter Groups Parameter Group 
- It is a nested type which documented below.
- TotalCount float64
- Total number of parameter groups that satisfy the condition.
- AvailabilityZone string
- Availability zone where parameter group is located.
- ClassType string
- MultiAz bool
- NameRegex string
- OutputFile string
- id String
- The ID of parameter group.
- parameterGroups List<GetDb Parameter Groups Parameter Group> 
- It is a nested type which documented below.
- totalCount Double
- Total number of parameter groups that satisfy the condition.
- availabilityZone String
- Availability zone where parameter group is located.
- classType String
- multiAz Boolean
- nameRegex String
- outputFile String
- id string
- The ID of parameter group.
- parameterGroups GetDb Parameter Groups Parameter Group[] 
- It is a nested type which documented below.
- totalCount number
- Total number of parameter groups that satisfy the condition.
- availabilityZone string
- Availability zone where parameter group is located.
- classType string
- multiAz boolean
- nameRegex string
- outputFile 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.
- parameterGroups List<Property Map>
- It is a nested type which documented below.
- totalCount Number
- Total number of parameter groups that satisfy the condition.
- availabilityZone String
- Availability zone where parameter group is located.
- classType String
- multiAz Boolean
- nameRegex String
- outputFile String
Supporting Types
GetDbParameterGroupsParameterGroup     
- AvailabilityZone 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.
- EngineVersion string
- The database instance engine version used by the parameter group.
- Id string
- The ID of parameter group.
- IsDefault bool
- Name string
- The name of parameter group.
- AvailabilityZone 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.
- EngineVersion string
- The database instance engine version used by the parameter group.
- Id string
- The ID of parameter group.
- IsDefault bool
- Name string
- The name of parameter group.
- availabilityZone 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.
- engineVersion String
- The database instance engine version used by the parameter group.
- id String
- The ID of parameter group.
- isDefault Boolean
- name String
- The name of parameter group.
- availabilityZone 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.
- engineVersion string
- The database instance engine version used by the parameter group.
- id string
- The ID of parameter group.
- isDefault 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.
- availabilityZone 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.
- engineVersion String
- The database instance engine version used by the parameter group.
- id String
- The ID of parameter group.
- isDefault 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.