设备发放 IOTDP-发放设备:请求示例

时间:2024-07-01 17:25:08

请求示例

  • 发放设备(非自定义策略)

    POST https://{endpoint}/v5/iotps/{project_id}/devices/d4922d8a-6c8e-4396-852c-164aefa6638f/allocation
    
    {
      "access_point_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f",
      "region_id" : "cn-north-4",
      "app_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f"
    }
  • 发放设备(自定义策略)

    POST https://{endpoint}/v5/iotps/{project_id}/devices/d4922d8a-6c8e-4396-852c-164aefa6638f/allocation
    
    { 
      "access_point_id":"d4922d8a-6c8e-4396-852c-164aefa6638f", 
      "product_id": "98cabff1-0112-4e63-ba59-a505aea5ebef"
      "region_id":"cn-north-4", 
      "app_id":"d4922d8a-6c8e-4396-852c-164aefa6638f"
    }
support.huaweicloud.com/api-iotps/StartAllocateDevice.html