You need to enable JavaScript to run this app.
文档中心
云数据库 PostgreSQL 版

云数据库 PostgreSQL 版

复制全文
下载 pdf
参数管理
DescribeParameterTemplate
复制全文
下载 pdf
DescribeParameterTemplate
调用 DescribeParameterTemplate 接口查询参数模板详情。​
请求类型​
同步请求。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
​
参数​
类型​
是否必选​
示例值​
描述​
TemplateId​
String​
是​
postgresql-4ad4ac5f712f****​
参数模板的 ID。​
​
返回参数​
​
参数​
类型​
示例值​
描述​
TemplateInfo​
请参见返回示例。​
参数模板的详细信息。​
​
ParameterTemplateInfoObject​
​
参数​
类型​
示例值​
描述​
AccountId​
String​
210006****​
账户 ID。​
CreateTime​
String​
2025-05-07T07:44:14.000Z​
参数模板的创建时间。格式为 yyyy-MM-ddTHH:mm:ss.sssZ(UTC 时间)。​
NeedRestart​
Boolean​
false​
应用该参数模板是否需要重启实例(即该参数模板是否包含了需要重启实例才能生效的参数)。取值:​
  • true:不需要。​
  • false:需要。​
ParameterNum​
Integer​
1​
该参数模板包含的参数个数。​
TemplateCategory​
String​
DBEngine​
参数模板的分类。当前取值仅能为 DBEngine。​
TemplateDesc​
String​
这是一段参数模板的描述信息。​
参数模板的描述信息。​
TemplateId​
String​
postgresql-4ad4ac5f712f****​
参数模板的 ID。​
TemplateName​
String​
参数模板_测试​
参数模板的名称。​
TemplateParams​
Array of ParameterObject​
请参见返回示例。​
参数模板的参数配置。​
TemplateSource​
String​
User​
参数模板的来源。当前取值仅能为 User。​
TemplateType​
String​
PostgreSQL​
参数模板的类型。当前取值仅能为 PostgreSQL。​
TemplateTypeVersion​
String​
PostgreSQL_12​
兼容版本。取值:​
  • PostgreSQL_11:PostgreSQL 11。​
  • PostgreSQL_12:PostgreSQL 12。​
  • PostgreSQL_13:PostgreSQL 13。​
  • PostgreSQL_14:PostgreSQL 14。​
  • PostgreSQL_15:PostgreSQL 15。​
  • PostgreSQL_16:PostgreSQL 16。​
  • PostgreSQL_17:PostgreSQL 17。​
  • PostgreSQL_18:PostgreSQL 18。​
UpdateTime​
String​
2025-05-07T08:15:02.000Z​
最近一次修改参数模板的时间。格式为 yyyy-MM-ddTHH:mm:ss.sssZ(UTC 时间)。​
说明​
如参数模板自创建后未被更新过,该字段则与 CreateTime 的值相同。​
​
ParameterObject​
​
参数​
类型​
示例值​
描述​
CheckingCode​
String​
[on|off]​
参数取值范围。​
DefaultValue​
String​
off​
参数默认值。指在该实例对应的默认模板中提供的默认值。​
Description​
String​
Use EXPLAIN ANALYZE for plan logging.​
参数的英文描述。​
DescriptionZH​
String​
启用 EXPLAIN ANALYZE 输出的采样。​
参数的中文描述。​
ForceRestart​
Boolean​
false​
是否重启才生效,取值:true 或 false。​
Name​
String​
auto_explain.log_analyze​
参数名。​
Type​
String​
bool​
参数值类型。取值:string、integer、real、bool、enum。​
Value​
String​
off​
参数值。特指当前实例运行值。​
​
示例​
请求示例​
​
POST /?Action=DescribeParameterTemplate&Version=2022-01-01 HTTP/1.1​
Content-Type: application/json​
Host: rds-postgresql.cn-beijing.volcengineapi.com​
X-Date: 20231002T101010Z​
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****​
{​
"TemplateId": "postgresql-4ad4ac5f712f****"​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20250507163039222DF7A7914CA7447807-837a1a",​
"Action": "DescribeParameterTemplate",​
"Version": "2022-01-01",​
"Service": "rds_postgresql",​
"Region": "cn-beijing"​
},​
"Result": {​
"TemplateInfo": {​
"AccountId": "2100069040",​
"CreateTime": "2025-05-07T07:44:14.000Z",​
"NeedRestart": false,​
"ParameterNum": 1,​
"TemplateCategory": "DBEngine",​
"TemplateDesc": "这是一段参数模板的描述信息。",​
"TemplateId": "postgresql-4ad4ac5f712f****",​
"TemplateName": "克隆参数模板_测试",​
"TemplateParams": [​
{​
"CheckingCode": "[on|off]",​
"DefaultValue": "off",​
"Description": "Use EXPLAIN ANALYZE for plan logging.",​
"DescriptionZH": "启用 EXPLAIN ANALYZE 输出的采样。",​
"ForceRestart": false,​
"Name": "auto_explain.log_analyze",​
"Type": "bool",​
"Value": "off"​
}​
],​
"TemplateSource": "User",​
"TemplateType": "PostgreSQL",​
"TemplateTypeVersion": "PostgreSQL_12",​
"UpdateTime": "2025-05-07T08:16:37.000Z"​
}​
}​
}​
​
最近更新时间:2026.10.16 14:22:32
这个页面对您有帮助吗?
有用
有用
无用
无用