跳到主要内容

更新代理服务

接口说明

调用该接口更新代理服务。

URI

put /proxy/{id}

请求参数

名称参数位置类型描述是否必须
idpathstring代理服务IDRequired

请求Body

字段名类型描述
BodyObject(v1UpdateProxy)代理服务信息

v1UpdateProxy

字段名类型描述
client_idstring网关ID
device_idstring设备ID
device_namestring设备名称
hoststring服务地址
namestring名称
portstring服务端口
protocolstring服务协议
remarkstring备注
statusstring启用状态

响应

响应<200>

Code描述类型
200OKObject(v1UpdateProxyResponse)

v1UpdateProxyResponse

字段名类型描述
proxyObject代理服务信息 [ 具体参数可见下面 v1QueryProxy ]

v1QueryProxy

字段名类型描述
client_idstring网关ID
create_atstring创建时间
device_idstring设备ID
device_namestring设备名称
export_flowstring下行流量
hoststring服务地址
idstring代理服务ID
inlet_flowstring上行流量
namestring名称
onlinestring在线状态
portstring服务端口
protocolstring协议
remarkstring备注
statusstring启用状态
tokenstringToken
urlstring访问地址