Query Parameter Template List

Last updated: 2017-12-14 11:06:24

1. API Description

This API (GetCdbParamTemplateList) is used to query the parameter template list of the Cloud Database instance.
You can also use APIs Modify Parameter Template, Delete Parameter Template and Add Parameter Template to work with the parameter template.
Domain for API request: cdb.api.qcloud.com

2. Input Parameters

The following request parameter list only provides API request parameters. Common request parameters need to be added when the API is called. For more information, refer to Common Request Parameters. The Action field for this API is GetCdbParamTemplateList.

3. Output Parameters

Parameter Name Type Description
code Int Common error code; 0: Succeeded; other values: Failed. For more information, please refer to Common Error Codes on the Error Code page.
message String Module error message description depending on API.
codeDesc String Error description
data Array Returned data

Parameter data is composed of the following parameters:

Parameter Name Type Description
templateId Int Template ID
name String Template name
desc String Template description
engineVersion String Database version number. Possible returned values include: 5.1, 5.5, and 5.6

4. Error Codes

The following error codes only include the business logic error codes for this API.

Error Code Error Message Error Description
9613 InternalError Database query error

5. Example

Input

https://cdb.api.qcloud.com/v2/index.php?Action=GetCdbParamTemplateList
&<Common request parameters>

Output

{
    "code":"0",
    "message":"",
    "codeDesc":"Success",
    "data":[
        {
            "templateId":"1",
            "name":"test",
            "desc":"",
            "engineVersion":"5.6"
        }
    ]
}