Domain name for API request: cdb.tencentcloudapi.com.
This API (CreateParamTemplate) is used to create a 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 parameter. The value used for this API: CreateParamTemplate. |
Version | Yes | String | Common parameter. The value used for this API: 2017-03-20. |
Region | No | String | Common parameter. This parameter is not required for this API. |
Name | Yes | String | Parameter template name. |
Description | No | String | Parameter template description. |
EngineVersion | No | String | MySQL version number. |
TemplateId | No | Integer | Source parameter template ID. |
ParamList.N | No | Array of Parameter | List of parameters. |
Parameter Name | Type | Description |
---|---|---|
TemplateId | Integer | Parameter template ID. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://cdb.tencentcloudapi.com/?Action=CreateParamTemplate
&EngineVersion=5.7
&Name=test
&ParamList.0.Name=auto_increment_increment
&ParamList.0.Value=1
&ParamList.1.Name=binlog_format
&ParamList.2.Value=MIXED
&<Common request parameters>
{
"Response": {
"RequestId": "756bb037-a44a-4b4f-abe0-6efd34a6c792",
"TemplateId": 2333
}
}
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 |
---|---|
CdbError | Backend or process error. |
CdbError.DatabaseError | Backend database error. |
InternalError.DatabaseAccessError | Internal database error. |
InvalidParameter | Parameter error. |
InvalidParameter.InvalidName | Invalid name. |
Was this page helpful?