CreateParamTemplate

Last updated: 2020-03-23 14:59:11

    1. API Description

    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.

    2. Input Parameters

    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.

    3. Output 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.

    4. Example

    Example1 Creating a Parameter Template

    Input Example

    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>

    Output Example

    {
      "Response": {
        "RequestId": "756bb037-a44a-4b4f-abe0-6efd34a6c792",
        "TemplateId": 2333
      }
    }

    5. Developer Resources

    API Explorer

    This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    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?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help