设备接入 IOTDA-添加设备组:请求示例

时间:2024-06-28 09:24:58

请求示例

  • 创建静态设备组,设备组名为GroupA。

    POST https://{endpoint}/v5/iot/{project_id}/device-group
    
    {
      "name" : "GroupA",
      "description" : "群组A",
      "super_group_id" : "04ed32dc1b0025b52fe3c01a27c2b0a8",
      "app_id" : "jeQDJQZltU8iKgFFoW060F5SGZka",
      "group_type" : "STATIC"
    }
  • 创建动态设备组,设备组名为GroupA。

    POST https://{endpoint}/v5/iot/{project_id}/device-group
    
    {
      "name" : "GroupA",
      "description" : "群组A",
      "app_id" : "jeQDJQZltU8iKgFFoW060F5SGZka",
      "dynamic_group_rule" : "product_id = '63fef97897bacf7a56438cba'",
      "group_type" : "DYNAMIC"
    }
support.huaweicloud.com/api-iothub/iot_06_v5_0051.html