网关网桥
更新时间: 2023-04-19
# 网关网桥开关
# 基本信息
Path: /v1/services/:instanceId/:productKey/:deviceName/gateway
Method: PUT
接口描述:
# 请求参数
路径参数
参数名称 | 示例 | 备注 |
---|---|---|
instanceId | ||
productKey | ||
deviceName |
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
state | 是 | true 开/false 关 |
# 返回数据
无
# 获取网桥信息
# 基本信息
Path: /v1/services/:instanceId/:productKey/:deviceName/gateway
Method: GET
接口描述:
# 请求参数
路径参数
参数名称 | 示例 | 备注 |
---|---|---|
instanceId | ||
productKey | ||
deviceName |
# 返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
username | string | 非必须 | |||
vhost | string | 非必须 | |||
host | string | 非必须 | |||
sinkQueue | string | 非必须 | |||
password | string | 非必须 | |||
sourceQueue | string | 非必须 | |||
routeKey | string | 非必须 | |||
exchange | string | 非必须 | |||
sourceId | string | 非必须 | |||
port | number | 非必须 | |||
state | string | 非必须 |
# 重置网关密钥
# 基本信息
Path: /v1/services/:instanceId/:productKey/:deviceName/gateway/reset
Method: PUT
接口描述:
# 请求参数
路径参数
参数名称 | 示例 | 备注 |
---|---|---|
instanceId | ||
productKey | ||
deviceName |
# 返回数据
无