调用该接口根据品类ID查询租户创建的所有产品。

路径 /thing/productInfo/getByCategory
版本号 1.1.5
协议 HTTP,HTTPS
请求方法 POST
是否需要用户身份鉴权
超时时间 3000

请求参数

名称类型是否必选示例值描述
名称 类型 是否必选 示例值 描述
categoryId String 品类的ID。

返回数据

名称类型示例值描述
名称 类型 示例值 描述
productKey String

产品的Key,设备证书信息之一。创建产品时,生活物联网平台为该产品颁发的全局唯一标识。

dataFormat String

数据格式:0(表示透传/自定义格式);1(表示Alink协议)。

netType String

入网类型:0(表示LORA);3(表示WIFI);4(表示ZIGBEE);5(表示BT);6(表示CELLULAR);7(表示ETHERNET);8(表示NET_OTHER)。

productSecret String

产品的密钥,生活物联网平台颁发的产品密钥,通常与ProductKey成对出现。

nodeType String

节点类型:0(表示DEVICE);1(表示GATEWAY)。

domain String

产品的域。

name String

产品名称。

region String

产品所属地域。

ownerDomain String

所有者领域。

categoryId Long

归属品类的ID。

categoryKey String

品类标识符。

categoryName String

品类名称。

accessMethod String

访问的方式:0(表示数据直连);1(表示空中转发);2(表示APP访问)。

status Int

产品的状态:0(表示开发中);1(表示已发布)。

gmtCreate Long

产品的创建时间。

gmtModified Long

产品的修改时间。

creator String

产品的创建者。

modifier String

产品的modifier。

productId Long

设备productKey的十六进制字符串。

aliyunCommodityCode String

商品码。

connectMode String

配网方式。

rbacTenantId String

rbac租户的ID。

示例

请求示例

{
	"id": "1509086454180",
	"version": "1.0",
	"request":{
		"apiVer": "1.1.5"
	},
	"params":{
		"categoryId": "value0"
	}
}

正常返回示例

JSON 格式

{
    "code": 200,
    "data": [{
        "accessMethod": "DATA_DIRECT",
        "gmtModified": 1517562992000,
        "productModel": "niki_test_prodcut_model",
        "modifier": "50a1al58xxxxxxxx201b3f85e2ff9014",
        "productKey": "a1xxxxCf",
        "image": "logo",
        "creator": "50a1alxxxx201b3f85e2ff9014",
        "productId": 95959,
        "dataFormat": "CUSTOM_FORMAT",
        "netType": "NET_CELLULAR",
        "aliyunCommodityCode": "tmp",
        "productSecret": "Y1kxxxxxxxxkCw",
        "nodeType": "DEVICE",
        "gmtCreate": 1517562992000,
        "domain": "a15iEO9rxCf",
        "name": "test_name",
        "tenantId": 21,
        "region": "cn-hangzhou",
        "rbacTenantId": "2BF8238E3xxxxxxxx9C7180BD2CF6",
        "ownerDomain": "tmp_50a1al5xxxxxxxxf3350201b3f85e2ff9014",
        "categoryId": 61,
        "status": "DEVELOPMENT_STATUS"
    }],
    "id": "db13e9ae-c617-xxxx-xxxx-a1e4f43e36ec"
}

异常返回示例

JSON 格式

{
    "id": "4de2c367-c1db-417c-aa15-8c585e595d92",
    "code": 500,
    "message": "server error",
    "localizedMsg": null
}