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

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

请求示例

  • 操作设备(重引导设备)

    POST https://{endpoint}/v5/iotps/{project_id}/devices/d4922d8a-6c8e-4396-852c-164aefa6638f/action
    
    {
      "action" : "allocateDevice"
    }
  • 操作设备(重置设备密钥)

    POST https://{endpoint}/v5/iotps/{project_id}/devices/d4922d8a-6c8e-4396-852c-164aefa6638f/action
    
    {
      "action" : "resetDeviceSecret",
      "reset_device_secret" : {
        "secret" : "3b935a250c50dc2c6d481d048cefdc3c"
      }
    }
support.huaweicloud.com/api-iotps/ActionDevice.html