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

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

请求示例

POST https://{Endpoint}/v5/iot/{project_id}/rulesContent-Type: application/jsonX-Auth-Token: ********Instance-Id: ********{  "name" : "string",  "description" : "string",  "condition_group" : {    "time_range" : {      "days_of_week" : "string",      "start_time" : "string",      "end_time" : "string"    },    "logic" : "string",    "conditions" : [ {      "device_status_condition" : {        "status_list" : [ "string" ]      },      "device_property_condition" : {        "device_id" : "string",        "product_id" : "string",        "filters" : [ {          "path" : "string",          "value" : "string",          "operator" : "string"        } ]      },      "type" : "string",      "device_message_condition" : {        "product_id" : "string",        "topic" : "string"      }    } ]  },  "actions" : [ {    "iota_forwarding" : {      "project_id" : "string",      "region_name" : "string"    },    "roma_forwarding" : {      "project_id" : "string",      "region_name" : "string",      "roma_push_type" : "string"    },    "kafka_forwarding" : {      "kafka_mechanism" : "string",      "project_id" : "string",      "kafka_addresses" : [ {        "port" : 0,        "ip" : "string",        "domain" : "string"      } ],      "kafka_username" : "string",      "region_name" : "string",      "kafka_topic" : "string",      "kafka_password" : "string"    },    "obs_forwarding" : {      "project_id" : "string",      "bucket_name" : "string",      "region_name" : "string",      "location" : "string"    },    "type" : "string",    "dis_forwarding" : {      "stream_name" : "string",      "project_id" : "string",      "stream_id" : "string",      "region_name" : "string"    },    "addition" : [ "string" ]  } ],  "rule_type" : "string",  "status" : "string",  "app_id" : "string",  "edge_node_ids" : [ "string" ]}
support.huaweicloud.com/api-IoT/iot_06_009021.html