IOT边缘 IOTEDGE-创建数据源配置:请求示例

时间:2024-06-20 17:14:28

请求示例

POST https://{endpoint}/v2/{project_id}/edge-nodes/{edge_node_id}/ots/data-sources

{
  "ds_id" : "opcua_1",
  "config" : {
    "connection_info" : {
      "endpoint" : "opc.tcp://127.0.0.1:53530/OPCUA",
      "username" : "admin",
      "password" : "*****"
    },
    "collection_paras" : {
      "default_cycle" : 1000
    }
  },
  "name" : "电力子系统",
  "module_id" : "user_opc_ua_yz",
  "tpl_id" : "sys_general_opcua",
  "quality_report" : false
}
support.huaweicloud.com/api-iotedge/CreateDs.html