string
设备对应的topic的名称,只能使用pub权限的topic,每个设备的topic只能添加到一个规则下面,不能重复添加到不同的规则,当规则的级别是产品级时,不用传topic的参数。
is_base64
boolean
转发的消息是否要进行base64编码,传入true会对消息进行base64编码。
contain_deviceinfo
boolean
转发的消息是否要包含设备的信息,传入true会在原始消息的基础上增加额外设备的信息。
https://example.cloud.com/v1/80e2b******f4a398d6409a50932d917/link/instances/fb3b24ab-5d87-473d-9c57-fc6******6a1/rules/sources
"app_id" : "app01",
"rule_name" : "rule01",
"product_name" : "product01",
"device_name" : "device01",
"topic" : "7aANi9569518/out/ device01",
"is_base64" : false,
"contain_deviceinfo" : false,
"level" : "device"
表3 响应参数
dataFormatTrans
string
转发消息的数据传输格式。如果开启base64加密,则传输格式为base64/raw;如果不开启base64加密,则传输格式为json/raw。
deviceOid
integer
设备ID。
instanceNo
integer
数据源端实例的编号。
productOid
integer
产品ID。
ruleOid
integer
规则ID。
ruleSrcLevel
integer
规则的级别,0为产品级,1为设备级。
ruleSrcOid
integer
规则源ID。
topicName
string
"clientId": "D5695180f67c7200",
"topicName": "7aANi9569518/out/ device01",
"ruleSrcOid": 38,
"ruleOid": 600004,
"ruleSrcLevel": 1,
"productOid": 569518,
"deviceOid": 354769,
"instanceNo": 1212,
"dataFormatTrans": "json/raw"