设备管理 IoTDM(联通用户专用)-创建数据转发规则:响应示例

时间:2023-11-01 16:15:58

响应示例

Status Code: 201 Created

Content-Type: application/json{  "rule_id" : "string",  "name" : "string",  "description" : "string",  "condition_group" : {    "conditions" : [ {      "type" : "string",      "device_property_condition" : {        "device_id" : "string",        "product_id" : "string",        "filters" : [ {          "path" : "string",          "operator" : "string",          "value" : "string"        } ]      },      "device_message_condition" : {        "product_id" : "string",        "topic" : "string"      },      "device_status_condition" : {        "status_list" : [ "string" ]      }    } ],    "logic" : "string",    "time_range" : {      "start_time" : "string",      "end_time" : "string",      "days_of_week" : "string"    }  },  "actions" : [ {    "type" : "string",    "addition" : [ "string" ],    "dis_forwarding" : {      "region_name" : "string",      "project_id" : "string",      "stream_name" : "string",      "stream_id" : "string"    },    "obs_forwarding" : {      "region_name" : "string",      "project_id" : "string",      "bucket_name" : "string",      "location" : "string"    },    "roma_forwarding" : {      "region_name" : "string",      "project_id" : "string",      "roma_push_type" : "string"    },    "iota_forwarding" : {      "region_name" : "string",      "project_id" : "string"    },    "kafka_forwarding" : {      "region_name" : "string",      "project_id" : "string",      "kafka_addresses" : [ {        "ip" : "string",        "port" : 0,        "domain" : "string"      } ],      "kafka_topic" : "string",      "kafka_username" : "string",      "kafka_password" : "string",      "kafka_mechanism" : "string"    }  } ],  "rule_type" : "string",  "status" : "string",  "app_id" : "string",  "edge_node_id" : [ "string" ],  "last_update_time" : "string"}
support.huaweicloud.com/api-IoT/iot_06_009021.html