IOT边缘 IOTEDGE-添加设备:请求示例

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

请求示例

POST https://{endpoint}/v2/{project_id}/edge-nodes/{edge_node_id}/devices

{
  "node_id" : "ABC123456789",
  "device_name" : "dianadevice",
  "product_id" : "b640f4c203b7910fc3cbd446ed437cbd",
  "auth_info" : {
    "auth_type" : "SECRET",
    "secret" : "3b935a250c50dc2c6d481d048cefdc3c",
    "fingerprint" : "dc0f1016f495157344ac5f1296335cff725ef22f",
    "secure_access" : true,
    "timeout" : 300
  },
  "description" : "watermeter device",
  "gateway_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f",
  "space_id" : "jeQDJQZltU8iKgFFoW060F5SGZka",
  "extension_info" : {
    "aaa" : "xxx",
    "bbb" : 0
  },
  "config" : {
    "ip" : "127.0.0.1"
  }
}
support.huaweicloud.com/api-iotedge/AddDevice.html