接口功能介绍
获取参数模板详细信息。
接口约束
无
URI
GET /v1/open-api/parameter/parameter-templates
路径参数
无
Query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
pageNow | 否 | Integer | 当前页 | 1 | |
pageSize | 否 | Integer | 页大小 | 10 | |
id | 是 | Integer | 模版ID | 1 | |
parameterName | 否 | String | 参数名 | back_log |
请求参数
请求头header参数
无
请求体body参数
无
响应参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
statusCode | 是 | Integer | 返回码取值范围:0 成功; 2001 参数异常;3001 业务异常;5001 请求响应失败 | 0 | |
returnObj | 否 | Object | 返回对象 | returnObj | |
message | 否 | String | 结果信息 | success |
表 returnObj
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
endRow | 是 | Integer | 终行 | 2 | |
firstPage | 是 | Integer | 第一页 | true | |
hasNextPage | 是 | Boolean | 是否有后一页 | false | |
hasPreviousPage | 是 | Boolean | 是否有前一页 | false | |
isFirstPage | 是 | Boolean | 是否第一页 | true | |
isLastPage | 是 | Boolean | 是否最后一页 | true | |
lastPage | 是 | Integer | 最后一页 | 1 | |
navigateFirstPage | 是 | Integer | 导航条上的第一页 | 1 | |
navigateLastPage | 是 | Integer | 导航条上的最后一页 | 8 | |
navigatepageNums | 是 | Array of Integers | 页码 | [1] | |
nextPage | 是 | Integer | 下一页 | 0 | |
pageNum | 是 | Integer | 页数 | 1 | |
pageSize | 是 | Integer | 页大小 | 10 | |
pages | 是 | Integer | 页 | 1 | |
prePage | 是 | Integer | 前一页 | 0 | |
size | 是 | Integer | 大小 | 2 | |
startRow | 是 | Integer | 开始行 | 1 | |
total | 是 | Integer | 总页数 | 2 | |
list | 是 | Array of Objects | 对象数组 | T |
表T
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
parameterGroupName | 是 | String | 参数模版名字 | test | |
valuetype | 是 | String | 类型 | int | |
restart | 是 | String | 是否需要重启 | 1 | |
description | 是 | String | 描述 | MySQL能拥有的有效连接请求数,MySQL主线程在很短时间内收到大量连接请求时发挥生效。然后主线程花很短的一些时间检查连接并且启动一个新线程。该back_log值表示在MySQL暂时停止回答新要求之前的很短时间内,有多少请求可以堆叠。默认值大小根据系统配置决定 | |
id | 是 | Integer | 编号 | 309 | |
parameterName | 是 | String | 参数名 | back_log | |
parameterValue | 是 | String | 参数值 | 650 | |
permitValue | 是 | String | 参数取值范围 | 1~100,000 | |
userId | 是 | Integer | 用户id | 1 |
请求示例
请求头header
无
请求体body
无
响应示例
{
"statusCode": 0,
"message": "success",
"returnObj": {
"navigatepageNums": [1, 2, 3, 4, 5, 6, 7, 8],
"startRow": 1,
"hasNextPage": true,
"prePage": 0,
"nextPage": 2,
"endRow": 10,
"pageSize": 10,
"list": [{
"parameterGroupName": "testpatten",
"valuetype": "int",
"restart": "0",
"description": "auto_increment_increment和auto_increment_offset 用于master-to-master的复制,并可以用来控制AUTO_INCREMENT列的操作。",
"id": 4304,
"parameterName": "auto_increment_increment",
"parameterValue": "1",
"permitValue": "1~65,535",
"userId": 3304
}, {
"parameterGroupName": "testpatten",
"valuetype": "int",
"restart": "0",
"description": "auto_increment_increment和auto_increment_offse用于master-to-master的复制,并可以用来控制AUTO_INCREMENT列的操作。",
"id": 4305,
"parameterName": "auto_increment_offset",
"parameterValue": "1",
"permitValue": "1~65,535",
"userId": 3304
}, {
"parameterGroupName": "testpatten",
"valuetype": "int",
"restart": "1",
"description": "MySQL能拥有的有效连接请求数,MySQL主线程在很短时间内收到大量连接请求时发挥生效。然后主线程花很短的一些时间检查连接并且启动一个新线程。该back_log值表示在MySQL暂时停止回答新要求之前的很短时间内,有多少请求可以堆叠。默认值大小根据系统配置决定。",
"id": 4306,
"parameterName": "back_log",
"parameterValue": "650",
"permitValue": "1~65,535",
"userId": 3304
}, {
"parameterGroupName": "testpatten",
"valuetype": "int",
"restart": "0",
"description": "在事务中,为二进制日志存储SQL语句的缓存容量。该参数必须设置为2的幂次方。",
"id": 4307,
"parameterName": "binlog_cache_size",
"parameterValue": "32768",
"permitValue": "4,096~16,777,216",
"userId": 3304
}, {
"parameterGroupName": "testpatten",
"valuetype": "string",
"restart": "1",
"description": "启动变量时,引起主服务器在二进制日志中写入的每个事件的校验和。",
"id": 4308,
"parameterName": "binlog_checksum",
"parameterValue": "CRC32",
"permitValue": "NONE,CRC32",
"userId": 3304
}, {
"parameterGroupName": "testpatten",
"valuetype": "int",
"restart": "0",
"description": "此变量决定在事务中,二进制日志存储下发的非事务语句的缓存空间。该参数必须设置为2的幂次方。",
"id": 4309,
"parameterName": "binlog_stmt_cache_size",
"parameterValue": "32768",
"permitValue": "4,096~16,777,216",
"userId": 3304
}, {
"parameterGroupName": "testpatten",
"valuetype": "string",
"restart": "0",
"description": "控制基于块算法(如AES)的块加密模式。它影响AES_ENCRYPT() and AES_DECRYPT()的加密。",
"id": 4310,
"parameterName": "block_encryption_mode",
"parameterValue": "aes-128-cbc",
"permitValue": "aes-128-ecb,aes-192-ecb,aes-256-ecb,aes-128-cbc,aes-192-cbc,aes-256-cbc",
"userId": 3304
}, {
"parameterGroupName": "testpatten",
"valuetype": "int",
"restart": "0",
"description": "限制MyISAM缓存树每个线程的大小,单位为字节。",
"id": 4311,
"parameterName": "bulk_insert_buffer_size",
"parameterValue": "8388608",
"permitValue": "0~18,446,744,073,709,551,615",
"userId": 3304
}, {
"parameterGroupName": "testpatten",
"valuetype": "string",
"restart": "0",
"description": "服务器字符集。",
"id": 4312,
"parameterName": "character_set_server",
"parameterValue": "utf8mb4",
"permitValue": "utf8,latin1,gbk,utf8mb4",
"userId": 3304
}, {
"parameterGroupName": "testpatten",
"valuetype": "string",
"restart": "0",
"description": "服务器默认排序。",
"id": 4395,
"parameterName": "collation_server",
"parameterValue": "utf8mb4_bin",
"permitValue": "big5_bin,big5_chinese_ci,gbk_bin,gbk_chinese_ci,latin1_bin,latin1_danish_ci,latin1_general_ci,latin1_general_cs,latin1_german1_ci,latin1_german2_ci,latin1_spanish_ci,latin1_swedish_ci,utf8mb4_0900_ai_ci,utf8mb4_0900_as_ci,utf8mb4_0900_as_cs,utf8mb4_bin,utf8mb4_croatian_ci,utf8mb4_cs_0900_ai_ci,utf8mb4_cs_0900_as_cs,utf8mb4_czech_ci,utf8mb4_danish_ci,utf8mb4_da_0900_ai_ci,utf8mb4_da_0900_as_cs,utf8mb4_de_pb_0900_ai_ci,utf8mb4_de_pb_0900_as_cs,utf8mb4_eo_0900_ai_ci,utf8mb4_eo_0900_as_cs,utf8mb4_esperanto_ci,utf8mb4_estonian_ci,utf8mb4_es_0900_ai_ci,utf8mb4_es_0900_as_cs,utf8mb4_es_trad_0900_ai_ci,utf8mb4_es_trad_0900_as_cs,utf8mb4_et_0900_ai_ci,utf8mb4_et_0900_as_cs,utf8mb4_general_ci,utf8mb4_german2_ci,utf8mb4_hr_0900_ai_ci,utf8mb4_hr_0900_as_cs,utf8mb4_hungarian_ci,utf8mb4_hu_0900_ai_ci,utf8mb4_hu_0900_as_cs,utf8mb4_icelandic_ci,utf8mb4_is_0900_ai_ci,utf8mb4_is_0900_as_cs,utf8mb4_ja_0900_as_cs,utf8mb4_ja_0900_as_cs_ks,utf8mb4_latvian_ci,utf8mb4_la_0900_ai_ci,utf8mb4_la_0900_as_cs,utf8mb4_lithuanian_ci,utf8mb4_lt_0900_ai_ci,utf8mb4_lt_0900_as_cs,utf8mb4_lv_0900_ai_ci,utf8mb4_lv_0900_as_cs,utf8mb4_persian_ci,utf8mb4_pl_0900_ai_ci,utf8mb4_pl_0900_as_cs,utf8mb4_polish_ci,utf8mb4_romanian_ci,utf8mb4_roman_ci,utf8mb4_ro_0900_ai_ci,utf8mb4_ro_0900_as_cs,utf8mb4_ru_0900_ai_ci,utf8mb4_ru_0900_as_cs,utf8mb4_sinhala_ci,utf8mb4_sk_0900_ai_ci,utf8mb4_sk_0900_as_cs,utf8mb4_slovak_ci,utf8mb4_slovenian_ci,utf8mb4_sl_0900_ai_ci,utf8mb4_sl_0900_as_cs,utf8mb4_spanish2_ci,utf8mb4_spanish_ci,utf8mb4_sv_0900_ai_ci,utf8mb4_sv_0900_as_cs,utf8mb4_swedish_ci,utf8mb4_tr_0900_ai_ci,utf8mb4_tr_0900_as_cs,utf8mb4_turkish_ci,utf8mb4_unicode_520_ci,utf8mb4_unicode_ci,utf8mb4_vietnamese_ci,utf8mb4_vi_0900_ai_ci,utf8mb4_vi_0900_as_cs,utf8mb4_zh_0900_as_cs,utf8_bin,utf8_croatian_ci,utf8_czech_ci,utf8_danish_ci,utf8_esperanto_ci,utf8_estonian_ci,utf8_general_ci,utf8_general_mysql500_ci,utf8_german2_ci,utf8_hungarian_ci,utf8_icelandic_ci,utf8_latvian_ci,utf8_lithuanian_ci,utf8_persian_ci,utf8_polish_ci,utf8_romanian_ci,utf8_roman_ci,utf8_sinhala_ci,utf8_slovak_ci,utf8_slovenian_ci,utf8_spanish2_ci,utf8_spanish_ci,utf8_swedish_ci,utf8_tolower_ci,utf8_turkish_ci,utf8_unicode_520_ci,utf8_unicode_ci,utf8_vietnamese_ci",
"userId": 3304
}],
"pageNum": 1,
"navigatePages": 8,
"navigateFirstPage": 1,
"total": 104,
"pages": 11,
"size": 10,
"isLastPage": false,
"hasPreviousPage": false,
"navigateLastPage": 8,
"isFirstPage": true
}
}
状态码
状态码 | 描述 |
---|---|
0 | 表示请求成功。 |
错误码
错误码 | 描述 |
---|---|
2001 | 参数异常,失败原因见message |
3001 | 业务异常,失败原因见message |
5001 | 请求响应失败, 失败原因见message |