published on Monday, Jun 1, 2026 by Volcengine
published on Monday, Jun 1, 2026 by Volcengine
Volcano Engine Cloud Database PostgreSQL parameter template, used for managing and batch applying PostgreSQL instance parameter configurations
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const rDSPostgreSQLParameterTemplatDdemo = new volcenginecc.rdspostgresql.ParameterTemplate("RDSPostgreSQLParameterTemplatDdemo", {
templateName: "全部测试参数模板",
templateType: "PostgreSQL",
templateTypeVersion: "PostgreSQL_13",
templateDesc: "全部测试参数模板,描述场景",
templateParams: [
{
name: "auto_explain.log_analyze",
value: "on",
},
{
name: "auto_explain.log_buffers",
value: "off",
},
],
});
import pulumi
import pulumi_volcenginecc as volcenginecc
r_ds_postgre_sql_parameter_templat_ddemo = volcenginecc.rdspostgresql.ParameterTemplate("RDSPostgreSQLParameterTemplatDdemo",
template_name="全部测试参数模板",
template_type="PostgreSQL",
template_type_version="PostgreSQL_13",
template_desc="全部测试参数模板,描述场景",
template_params=[
{
"name": "auto_explain.log_analyze",
"value": "on",
},
{
"name": "auto_explain.log_buffers",
"value": "off",
},
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/rdspostgresql"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rdspostgresql.NewParameterTemplate(ctx, "RDSPostgreSQLParameterTemplatDdemo", &rdspostgresql.ParameterTemplateArgs{
TemplateName: pulumi.String("全部测试参数模板"),
TemplateType: pulumi.String("PostgreSQL"),
TemplateTypeVersion: pulumi.String("PostgreSQL_13"),
TemplateDesc: pulumi.String("全部测试参数模板,描述场景"),
TemplateParams: rdspostgresql.ParameterTemplateTemplateParamArray{
&rdspostgresql.ParameterTemplateTemplateParamArgs{
Name: pulumi.String("auto_explain.log_analyze"),
Value: pulumi.String("on"),
},
&rdspostgresql.ParameterTemplateTemplateParamArgs{
Name: pulumi.String("auto_explain.log_buffers"),
Value: pulumi.String("off"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var rDSPostgreSQLParameterTemplatDdemo = new Volcenginecc.Rdspostgresql.ParameterTemplate("RDSPostgreSQLParameterTemplatDdemo", new()
{
TemplateName = "全部测试参数模板",
TemplateType = "PostgreSQL",
TemplateTypeVersion = "PostgreSQL_13",
TemplateDesc = "全部测试参数模板,描述场景",
TemplateParams = new[]
{
new Volcenginecc.Rdspostgresql.Inputs.ParameterTemplateTemplateParamArgs
{
Name = "auto_explain.log_analyze",
Value = "on",
},
new Volcenginecc.Rdspostgresql.Inputs.ParameterTemplateTemplateParamArgs
{
Name = "auto_explain.log_buffers",
Value = "off",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.rdspostgresql.ParameterTemplate;
import com.volcengine.volcenginecc.rdspostgresql.ParameterTemplateArgs;
import com.pulumi.volcenginecc.rdspostgresql.inputs.ParameterTemplateTemplateParamArgs;
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 rDSPostgreSQLParameterTemplatDdemo = new ParameterTemplate("rDSPostgreSQLParameterTemplatDdemo", ParameterTemplateArgs.builder()
.templateName("全部测试参数模板")
.templateType("PostgreSQL")
.templateTypeVersion("PostgreSQL_13")
.templateDesc("全部测试参数模板,描述场景")
.templateParams(
ParameterTemplateTemplateParamArgs.builder()
.name("auto_explain.log_analyze")
.value("on")
.build(),
ParameterTemplateTemplateParamArgs.builder()
.name("auto_explain.log_buffers")
.value("off")
.build())
.build());
}
}
resources:
rDSPostgreSQLParameterTemplatDdemo:
type: volcenginecc:rdspostgresql:ParameterTemplate
name: RDSPostgreSQLParameterTemplatDdemo
properties:
templateName: 全部测试参数模板
templateType: PostgreSQL
templateTypeVersion: PostgreSQL_13
templateDesc: 全部测试参数模板,描述场景
templateParams:
- name: auto_explain.log_analyze
value: on
- name: auto_explain.log_buffers
value: off
Example coming soon!
Create ParameterTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ParameterTemplate(name: string, args: ParameterTemplateArgs, opts?: CustomResourceOptions);@overload
def ParameterTemplate(resource_name: str,
args: ParameterTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ParameterTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
template_name: Optional[str] = None,
template_params: Optional[Sequence[ParameterTemplateTemplateParamArgs]] = None,
template_type: Optional[str] = None,
template_type_version: Optional[str] = None,
template_desc: Optional[str] = None)func NewParameterTemplate(ctx *Context, name string, args ParameterTemplateArgs, opts ...ResourceOption) (*ParameterTemplate, error)public ParameterTemplate(string name, ParameterTemplateArgs args, CustomResourceOptions? opts = null)
public ParameterTemplate(String name, ParameterTemplateArgs args)
public ParameterTemplate(String name, ParameterTemplateArgs args, CustomResourceOptions options)
type: volcenginecc:rdspostgresql:ParameterTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "volcenginecc_rdspostgresql_parametertemplate" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ParameterTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ParameterTemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ParameterTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ParameterTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ParameterTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var volcengineccParameterTemplateResource = new Volcenginecc.Rdspostgresql.ParameterTemplate("volcengineccParameterTemplateResource", new()
{
TemplateName = "string",
TemplateParams = new[]
{
new Volcenginecc.Rdspostgresql.Inputs.ParameterTemplateTemplateParamArgs
{
Name = "string",
Value = "string",
},
},
TemplateType = "string",
TemplateTypeVersion = "string",
TemplateDesc = "string",
});
example, err := rdspostgresql.NewParameterTemplate(ctx, "volcengineccParameterTemplateResource", &rdspostgresql.ParameterTemplateArgs{
TemplateName: pulumi.String("string"),
TemplateParams: rdspostgresql.ParameterTemplateTemplateParamArray{
&rdspostgresql.ParameterTemplateTemplateParamArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
TemplateType: pulumi.String("string"),
TemplateTypeVersion: pulumi.String("string"),
TemplateDesc: pulumi.String("string"),
})
resource "volcenginecc_rdspostgresql_parametertemplate" "volcengineccParameterTemplateResource" {
template_name = "string"
template_params {
name = "string"
value = "string"
}
template_type = "string"
template_type_version = "string"
template_desc = "string"
}
var volcengineccParameterTemplateResource = new com.volcengine.volcenginecc.rdspostgresql.ParameterTemplate("volcengineccParameterTemplateResource", com.volcengine.volcenginecc.rdspostgresql.ParameterTemplateArgs.builder()
.templateName("string")
.templateParams(ParameterTemplateTemplateParamArgs.builder()
.name("string")
.value("string")
.build())
.templateType("string")
.templateTypeVersion("string")
.templateDesc("string")
.build());
volcenginecc_parameter_template_resource = volcenginecc.rdspostgresql.ParameterTemplate("volcengineccParameterTemplateResource",
template_name="string",
template_params=[{
"name": "string",
"value": "string",
}],
template_type="string",
template_type_version="string",
template_desc="string")
const volcengineccParameterTemplateResource = new volcenginecc.rdspostgresql.ParameterTemplate("volcengineccParameterTemplateResource", {
templateName: "string",
templateParams: [{
name: "string",
value: "string",
}],
templateType: "string",
templateTypeVersion: "string",
templateDesc: "string",
});
type: volcenginecc:rdspostgresql:ParameterTemplate
properties:
templateDesc: string
templateName: string
templateParams:
- name: string
value: string
templateType: string
templateTypeVersion: string
ParameterTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ParameterTemplate resource accepts the following input properties:
- Template
Name string - Parameter template name
- Template
Params List<Volcengine.Parameter Template Template Param> - Template
Type string - Database type of the parameter template. Value: PostgreSQL
- Template
Type stringVersion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- Template
Desc string - Parameter template description information
- Template
Name string - Parameter template name
- Template
Params []ParameterTemplate Template Param Args - Template
Type string - Database type of the parameter template. Value: PostgreSQL
- Template
Type stringVersion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- Template
Desc string - Parameter template description information
- template_
name string - Parameter template name
- template_
params list(object) - template_
type string - Database type of the parameter template. Value: PostgreSQL
- template_
type_ stringversion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- template_
desc string - Parameter template description information
- template
Name String - Parameter template name
- template
Params List<ParameterTemplate Template Param> - template
Type String - Database type of the parameter template. Value: PostgreSQL
- template
Type StringVersion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- template
Desc String - Parameter template description information
- template
Name string - Parameter template name
- template
Params ParameterTemplate Template Param[] - template
Type string - Database type of the parameter template. Value: PostgreSQL
- template
Type stringVersion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- template
Desc string - Parameter template description information
- template_
name str - Parameter template name
- template_
params Sequence[ParameterTemplate Template Param Args] - template_
type str - Database type of the parameter template. Value: PostgreSQL
- template_
type_ strversion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- template_
desc str - Parameter template description information
- template
Name String - Parameter template name
- template
Params List<Property Map> - template
Type String - Database type of the parameter template. Value: PostgreSQL
- template
Type StringVersion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- template
Desc String - Parameter template description information
Outputs
All input properties are implicitly available as output properties. Additionally, the ParameterTemplate resource produces the following output properties:
- Account
Id string - Account ID
- Create
Time string - Parameter template creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Need
Restart bool - Whether the template contains parameters that require a restart to take effect
- Parameter
Num int - Number of parameters included in the template
- Template
Category string - Template category
- Template
Id string - Parameter template ID, automatically generated by the system
- Template
Source string - Parameter template source type. Options: System (system template), User (user template)
- Update
Time string - Last modified time of the parameter template
- Account
Id string - Account ID
- Create
Time string - Parameter template creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Need
Restart bool - Whether the template contains parameters that require a restart to take effect
- Parameter
Num int - Number of parameters included in the template
- Template
Category string - Template category
- Template
Id string - Parameter template ID, automatically generated by the system
- Template
Source string - Parameter template source type. Options: System (system template), User (user template)
- Update
Time string - Last modified time of the parameter template
- account_
id string - Account ID
- create_
time string - Parameter template creation time
- id string
- The provider-assigned unique ID for this managed resource.
- need_
restart bool - Whether the template contains parameters that require a restart to take effect
- parameter_
num number - Number of parameters included in the template
- template_
category string - Template category
- template_
id string - Parameter template ID, automatically generated by the system
- template_
source string - Parameter template source type. Options: System (system template), User (user template)
- update_
time string - Last modified time of the parameter template
- account
Id String - Account ID
- create
Time String - Parameter template creation time
- id String
- The provider-assigned unique ID for this managed resource.
- need
Restart Boolean - Whether the template contains parameters that require a restart to take effect
- parameter
Num Integer - Number of parameters included in the template
- template
Category String - Template category
- template
Id String - Parameter template ID, automatically generated by the system
- template
Source String - Parameter template source type. Options: System (system template), User (user template)
- update
Time String - Last modified time of the parameter template
- account
Id string - Account ID
- create
Time string - Parameter template creation time
- id string
- The provider-assigned unique ID for this managed resource.
- need
Restart boolean - Whether the template contains parameters that require a restart to take effect
- parameter
Num number - Number of parameters included in the template
- template
Category string - Template category
- template
Id string - Parameter template ID, automatically generated by the system
- template
Source string - Parameter template source type. Options: System (system template), User (user template)
- update
Time string - Last modified time of the parameter template
- account_
id str - Account ID
- create_
time str - Parameter template creation time
- id str
- The provider-assigned unique ID for this managed resource.
- need_
restart bool - Whether the template contains parameters that require a restart to take effect
- parameter_
num int - Number of parameters included in the template
- template_
category str - Template category
- template_
id str - Parameter template ID, automatically generated by the system
- template_
source str - Parameter template source type. Options: System (system template), User (user template)
- update_
time str - Last modified time of the parameter template
- account
Id String - Account ID
- create
Time String - Parameter template creation time
- id String
- The provider-assigned unique ID for this managed resource.
- need
Restart Boolean - Whether the template contains parameters that require a restart to take effect
- parameter
Num Number - Number of parameters included in the template
- template
Category String - Template category
- template
Id String - Parameter template ID, automatically generated by the system
- template
Source String - Parameter template source type. Options: System (system template), User (user template)
- update
Time String - Last modified time of the parameter template
Look up Existing ParameterTemplate Resource
Get an existing ParameterTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ParameterTemplateState, opts?: CustomResourceOptions): ParameterTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
create_time: Optional[str] = None,
need_restart: Optional[bool] = None,
parameter_num: Optional[int] = None,
template_category: Optional[str] = None,
template_desc: Optional[str] = None,
template_id: Optional[str] = None,
template_name: Optional[str] = None,
template_params: Optional[Sequence[ParameterTemplateTemplateParamArgs]] = None,
template_source: Optional[str] = None,
template_type: Optional[str] = None,
template_type_version: Optional[str] = None,
update_time: Optional[str] = None) -> ParameterTemplatefunc GetParameterTemplate(ctx *Context, name string, id IDInput, state *ParameterTemplateState, opts ...ResourceOption) (*ParameterTemplate, error)public static ParameterTemplate Get(string name, Input<string> id, ParameterTemplateState? state, CustomResourceOptions? opts = null)public static ParameterTemplate get(String name, Output<String> id, ParameterTemplateState state, CustomResourceOptions options)resources: _: type: volcenginecc:rdspostgresql:ParameterTemplate get: id: ${id}import {
to = volcenginecc_rdspostgresql_parametertemplate.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Account ID
- Create
Time string - Parameter template creation time
- Need
Restart bool - Whether the template contains parameters that require a restart to take effect
- Parameter
Num int - Number of parameters included in the template
- Template
Category string - Template category
- Template
Desc string - Parameter template description information
- Template
Id string - Parameter template ID, automatically generated by the system
- Template
Name string - Parameter template name
- Template
Params List<Volcengine.Parameter Template Template Param> - Template
Source string - Parameter template source type. Options: System (system template), User (user template)
- Template
Type string - Database type of the parameter template. Value: PostgreSQL
- Template
Type stringVersion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- Update
Time string - Last modified time of the parameter template
- Account
Id string - Account ID
- Create
Time string - Parameter template creation time
- Need
Restart bool - Whether the template contains parameters that require a restart to take effect
- Parameter
Num int - Number of parameters included in the template
- Template
Category string - Template category
- Template
Desc string - Parameter template description information
- Template
Id string - Parameter template ID, automatically generated by the system
- Template
Name string - Parameter template name
- Template
Params []ParameterTemplate Template Param Args - Template
Source string - Parameter template source type. Options: System (system template), User (user template)
- Template
Type string - Database type of the parameter template. Value: PostgreSQL
- Template
Type stringVersion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- Update
Time string - Last modified time of the parameter template
- account_
id string - Account ID
- create_
time string - Parameter template creation time
- need_
restart bool - Whether the template contains parameters that require a restart to take effect
- parameter_
num number - Number of parameters included in the template
- template_
category string - Template category
- template_
desc string - Parameter template description information
- template_
id string - Parameter template ID, automatically generated by the system
- template_
name string - Parameter template name
- template_
params list(object) - template_
source string - Parameter template source type. Options: System (system template), User (user template)
- template_
type string - Database type of the parameter template. Value: PostgreSQL
- template_
type_ stringversion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- update_
time string - Last modified time of the parameter template
- account
Id String - Account ID
- create
Time String - Parameter template creation time
- need
Restart Boolean - Whether the template contains parameters that require a restart to take effect
- parameter
Num Integer - Number of parameters included in the template
- template
Category String - Template category
- template
Desc String - Parameter template description information
- template
Id String - Parameter template ID, automatically generated by the system
- template
Name String - Parameter template name
- template
Params List<ParameterTemplate Template Param> - template
Source String - Parameter template source type. Options: System (system template), User (user template)
- template
Type String - Database type of the parameter template. Value: PostgreSQL
- template
Type StringVersion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- update
Time String - Last modified time of the parameter template
- account
Id string - Account ID
- create
Time string - Parameter template creation time
- need
Restart boolean - Whether the template contains parameters that require a restart to take effect
- parameter
Num number - Number of parameters included in the template
- template
Category string - Template category
- template
Desc string - Parameter template description information
- template
Id string - Parameter template ID, automatically generated by the system
- template
Name string - Parameter template name
- template
Params ParameterTemplate Template Param[] - template
Source string - Parameter template source type. Options: System (system template), User (user template)
- template
Type string - Database type of the parameter template. Value: PostgreSQL
- template
Type stringVersion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- update
Time string - Last modified time of the parameter template
- account_
id str - Account ID
- create_
time str - Parameter template creation time
- need_
restart bool - Whether the template contains parameters that require a restart to take effect
- parameter_
num int - Number of parameters included in the template
- template_
category str - Template category
- template_
desc str - Parameter template description information
- template_
id str - Parameter template ID, automatically generated by the system
- template_
name str - Parameter template name
- template_
params Sequence[ParameterTemplate Template Param Args] - template_
source str - Parameter template source type. Options: System (system template), User (user template)
- template_
type str - Database type of the parameter template. Value: PostgreSQL
- template_
type_ strversion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- update_
time str - Last modified time of the parameter template
- account
Id String - Account ID
- create
Time String - Parameter template creation time
- need
Restart Boolean - Whether the template contains parameters that require a restart to take effect
- parameter
Num Number - Number of parameters included in the template
- template
Category String - Template category
- template
Desc String - Parameter template description information
- template
Id String - Parameter template ID, automatically generated by the system
- template
Name String - Parameter template name
- template
Params List<Property Map> - template
Source String - Parameter template source type. Options: System (system template), User (user template)
- template
Type String - Database type of the parameter template. Value: PostgreSQL
- template
Type StringVersion - Database version of the parameter template, such as PostgreSQL13, PostgreSQL14, PostgreSQL_15, etc
- update
Time String - Last modified time of the parameter template
Supporting Types
ParameterTemplateTemplateParam, ParameterTemplateTemplateParamArgs
Import
$ pulumi import volcenginecc:rdspostgresql/parameterTemplate:ParameterTemplate example "template_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Monday, Jun 1, 2026 by Volcengine