额外参数接口

根据项目获取参数列表

URL: http://your_ip:port/api/param/getList

Type: ANY

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 根据项目获取参数列表

Request-parameters:

ParameterTypeDescriptionRequiredSince
serverIdstring所属反向代理idtrue-
locationIdstring所属代理目标idtrue-
upstreamIdstring所属负载均衡idtrue-

Request-example:

curl   -i http://your_ip:port/api/param/getList?upstreamId=45&locationId=45&serverId=45

Response-fields:

FieldTypeDescriptionSince
successboolean请求结果-
statusstring请求状态 200:请求成功 401:token无效 500:服务器错误-
msgstring错误信息-
objobject返回内容-
└─idstring主键-
└─serverIdstring所属反向代理id-
└─locationIdstring所属代理目标id-
└─upstreamIdstring所属负载均衡id-
└─namestring参数名-
└─valuestring参数值-

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:

ParameterTypeDescriptionRequiredSince
idstring主键false-
serverIdstring所属反向代理idfalse-
locationIdstring所属代理目标idfalse-
upstreamIdstring所属负载均衡idfalse-
namestring参数名false-
valuestring参数值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:

FieldTypeDescriptionSince
successboolean请求结果-
statusstring请求状态 200:请求成功 401:token无效 500:服务器错误-
msgstring错误信息-
objobject返回内容-

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:

ParameterTypeDescriptionRequiredSince
idstring参数idtrue-

Request-example:

curl   -i http://your_ip:port/api/param/del?id=45

Response-fields:

FieldTypeDescriptionSince
successboolean请求结果-
statusstring请求状态 200:请求成功 401:token无效 500:服务器错误-
msgstring错误信息-
objobject返回内容-

Response-example:

{
	"success":true,
	"status":"20eaza",
	"msg":"zmwywh",
	"obj":{
		
	}
}