Skip to content

根据子设备查询当前所属网关

接口地址:/v2/devicemgr/r1/openapi/product/gateway/getGatewayProductByChildDevice

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

根据子设备查询所属网关的信息(只返回当前连接的网关信息)

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
deviceKey设备deviceKey(必传)querytruestring
productKey产品productKey(必传)querytruestring
language语言:CN/EN(默认:CN)queryfalsestring

响应状态:

状态码说明schema
200OKActionResultOfOpenApiGatewayProductInfo
401Unauthorized
403Forbidden
404Not Found
50000service exception
50005param check error
50007The deviceID, productKey or deviceKey is empty.
70000Hub 服务不可用
70026The sub-device is not connected to the gateway device.
70027Not a product of product integration.
70028There is no associated gateway device.
70029Not a sub-gateway product.
70089You have limited permission to operate this project or product or device.
91001token not exists
91004token incorrect
91005doesn't have permission
91006user not exist ip white list reference.
91007please open API permission.

响应参数:

参数名称参数说明类型schema
code返回码object
data对象OpenApiGatewayProductInfoOpenApiGatewayProductInfo
  deviceKey关联网关设备dkstring
  deviceName关联网关设备名称string
  productKey关联网关产品pkstring
  productName关联网关设备名称string
exp1string
msg提示信息object
pageNum当前页数object
pageSize每页数量object
pages总页数object
total总数object

响应示例:

javascript
{
	"code": {},
	"data": {
		"deviceKey": "",
		"deviceName": "",
		"productKey": "",
		"productName": ""
	},
	"exp1": "",
	"msg": {},
	"pageNum": {},
	"pageSize": {},
	"pages": {},
	"total": {}
}