You can call the DescribeParameterTemplates operation to query the valid values and default values of parameters for an instance.

Before you call this operation, make sure that the instance runs one of the following database engines:

  • MySQL 5.5, MySQL 5.6, MySQL 5.7, or MySQL 8.0
  • SQL Server 2008 R2
  • PostgreSQL 10, PostgreSQL 11, PostgreSQL 12, PostgreSQL 13, PostgreSQL 14, or PostgreSQL 15
  • MariaDB 10.3

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesDescribeParameterTemplates

The operation that you want to perform. Set the value to DescribeParameterTemplates.

ClientTokenStringNoETnLKlblzczshOTUbOCz****

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that the generated token is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.

EngineStringYesmysql

The database engine of the instance. Valid values:

  • mysql: MySQL
  • mssql: SQL Server
  • PostgreSQL: PostgreSQL
  • MariaDB: MariaDB
EngineVersionStringYes8.0

The database engine version of the instance.

  • Valid values when you set the Engine parameter to mysql: 5.5, 5.6, 5.7, and 8.0.
  • Valid values when you set the Engine parameter to mssql: 2008r2.
  • Valid values when you set the Engine parameter to PostgreSQL: 10.0, 11.0, 12.0, 13.0, 14.0, and 15.0.
  • Valid values when you set the Engine parameter to MariaDB: 10.3.
CategoryStringNoBasic

The RDS edition of the instance. Valid values:

  • Basic: RDS Basic Edition
  • HighAvailability: RDS High-availability Edition
  • Finance: RDS Enterprise Edition
RegionIdStringNocn-hangzhou

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

DBInstanceIdStringYesrm-bp1imnm****

The ID of the instance.

Response parameters

ParameterTypeExampleDescription
RequestIdString0F9B7410-EC73-510C-B385-8339455C12C6

The ID of the request.

EngineStringmysql

The database engine of the instance.

ParameterCountString2

The number of parameters.

EngineVersionString8.0

The database engine version of the instance.

ParametersArray of TemplateRecord

An array that consists of details about the parameters.

TemplateRecord
CheckingCodeString[0-1024]

The valid values of the parameter.

ParameterNameStringloose_multi_blocks_ddl_count

The name of the parameter.

ParameterValueString0

The default value of the parameter.

ForceModifyStringtrue

Indicates whether the parameter can be reconfigured. Valid values:

  • true: The parameter can be reconfigured.
  • false: The parameter cannot be reconfigured.
ForceRestartStringfalse

Indicates whether you must restart the instance for the modifications to take effect. Valid values:

  • true: You must restart the instance for the modifications to take effect.
  • false: You do not need to restart the instance for the modifications to take effect.
ParameterDescriptionStringPage numbers of multi blocks reading once in some ddl query.

The description of the parameter.

Examples

Sample requests

http(s)://rds.aliyuncs.com/?Action=DescribeParameterTemplates
&ClientToken=ETnLKlblzczshOTUbOCz****
&Engine=mysql
&EngineVersion=8.0
&Category=Basic
&RegionId=cn-hangzhou
&DBInstanceId=rm-bp1imnm****
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeParameterTemplatesResponse>
    <ParameterCount>2</ParameterCount>
    <EngineVersion>8.0</EngineVersion>
    <Parameters>
        <TemplateRecord>
            <ForceModify>true</ForceModify>
            <CheckingCode>[OFF|ON]</CheckingCode>
            <ParameterValue>OFF</ParameterValue>
            <ForceRestart>false</ForceRestart>
            <ParameterName>loose_recycle_scheduler</ParameterName>
            <ParameterDescription>Switch of purge thread.</ParameterDescription>
        </TemplateRecord>
        <TemplateRecord>
            <ForceModify>true</ForceModify>
            <CheckingCode>[0-1024]</CheckingCode>
            <ParameterValue>0</ParameterValue>
            <ForceRestart>false</ForceRestart>
            <ParameterName>loose_multi_blocks_ddl_count</ParameterName>
            <ParameterDescription>Page numbers of multi blocks reading once in some ddl query.</ParameterDescription>
        </TemplateRecord>
    </Parameters>
    <RequestId>0F9B7410-EC73-510C-B385-8339455C12C6</RequestId>
    <Engine>mysql</Engine>
</DescribeParameterTemplatesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "ParameterCount" : 2,
  "EngineVersion" : "8.0",
  "Parameters" : {
    "TemplateRecord" : [ {
      "ForceModify" : "true",
      "CheckingCode" : "[OFF|ON]",
      "ParameterValue" : "OFF",
      "ForceRestart" : "false",
      "ParameterName" : "loose_recycle_scheduler",
      "ParameterDescription" : "Switch of purge thread."
    }, {
      "ForceModify" : "true",
      "CheckingCode" : "[0-1024]",
      "ParameterValue" : "0",
      "ForceRestart" : "false",
      "ParameterName" : "loose_multi_blocks_ddl_count",
      "ParameterDescription" : "Page numbers of multi blocks reading once in some ddl query."
    } ]
  },
  "RequestId" : "0F9B7410-EC73-510C-B385-8339455C12C6",
  "Engine" : "mysql"
}

Error codes

HTTP status codeError codeError messageDescription
400Invalid.ParamGroupDBCategoryInvalid parameter group categoryThe error message returned because the categories of parameter groups are invalid.

For a list of error codes, see Service error codes.