URL: http://your_ip:port/api/param/getList
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 根据项目获取参数列表
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
serverId | string | 所属反向代理id | true | - |
locationId | string | 所属代理目标id | true | - |
upstreamId | string | 所属负载均衡id | true | - |
Request-example:
curl -i http://your_ip:port/api/param/getList?upstreamId=45&locationId=45&serverId=45
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
└─id | string | 主键 | - |
└─serverId | string | 所属反向代理id | - |
└─locationId | string | 所属代理目标id | - |
└─upstreamId | string | 所属负载均衡id | - |
└─name | string | 参数名 | - |
└─value | string | 参数值 | - |
Response-example:
{
"success":true,
"status":"454i6z",
"msg":"jmej9l",
"obj":[
{
"id":"45",
"serverId":"45",
"locationId":"45",
"upstreamId":"45",
"name":"鹤轩.白",
"value":"jbxs19"
}
]
}
URL: http://your_ip:port/api/param/insertOrUpdate
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 添加或编辑参数
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
id | string | 主键 | false | - |
serverId | string | 所属反向代理id | false | - |
locationId | string | 所属代理目标id | false | - |
upstreamId | string | 所属负载均衡id | false | - |
name | string | 参数名 | false | - |
value | string | 参数值 | false | - |
Request-example:
curl -i http://your_ip:port/api/param/insertOrUpdate?updateTime=1641871596310&templateId=45&locationId=45&templateValue=n34iov&id=45&templateName=鹤轩.白&createTime=1641871596310&serverId=45&upstreamId=45&value=ch4j2p&name=鹤轩.白
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
Response-example:
{
"success":true,
"status":"7mz8tn",
"msg":"m8xwge",
"obj":{
}
}
URL: http://your_ip:port/api/param/del
Type: ANY
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 删除额外参数
Request-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
id | string | 参数id | true | - |
Request-example:
curl -i http://your_ip:port/api/param/del?id=45
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
success | boolean | 请求结果 | - |
status | string | 请求状态 200:请求成功 401:token无效 500:服务器错误 | - |
msg | string | 错误信息 | - |
obj | object | 返回内容 | - |
Response-example:
{
"success":true,
"status":"20eaza",
"msg":"zmwywh",
"obj":{
}
}