Domain name for API request: postgres.tencentcloudapi.com.
This API is used to modify the configurations, such as parameter template name and description. It can also be used to manage the parameter list in the parameter template.
A maximum of 100 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: ModifyParameterTemplate. |
Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
Region | No | String | Common Params. This parameter is not required for this API. |
TemplateId | Yes | String | Parameter template ID, which uniquely identifies a parameter template and cannot be modified. |
TemplateName | No | String | Parameter template name, which can contain 1-60 letters, digits, and symbols (-_./()+=:@). If this field is empty, the original parameter template name will be used. |
TemplateDescription | No | String | Parameter template description, which can contain 1-60 letters, digits, and symbols (-_./()+=:@). If this parameter is not passed in, the original parameter template description will be used. |
ModifyParamEntrySet.N | No | Array of ParamEntry | The set of parameters to be modified or added. A parameter cannot be put to ModifyParamEntrySet and DeleteParamSet at the same time, that is, it cannot be modified/added and deleted at the same time. |
DeleteParamSet.N | No | Array of String | The set of parameters to be deleted in the template. A parameter cannot be put to ModifyParamEntrySet and DeleteParamSet at the same time, that is, it cannot be modified/added and deleted at the same time. |
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
None
POST / HTTP/1.1
Host: postgres.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyParameterTemplate
<Common request parameters>
{
"TemplateId": "497857b4-4676-5583-8359-b697fe5968d9",
"TemplateName": "test_template",
"TemplateDescription": "test",
"ModifyParamEntrySet": [
{
"Name": "max_wal_senders",
"ExpectedValue": "360"
},
{
"Name": "max_logical_replication_workers",
"ExpectedValue": "360"
}
],
"DeleteParamSet": [
"wal_level"
]
}
{
"Response": {
"RequestId": "6ace8140-6b9e-4e81-a8ad-ef3f92b2aa90"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation.FailedOperationError | Operation failed. Please try again later. |
InvalidParameterValue.InvalidParameterValueError | Incorrect parameter value |
OperationDenied.CamDeniedError | This operation cannot be performed. |
本页内容是否解决了您的问题?