设备发放 IOTDP-注册设备:响应示例

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

响应示例

状态码: 200

OK

  • 示例 1

    {
      "device_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f",
      "node_id" : "ABC123456789",
      "gateway_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f",
      "device_name" : "dianadevice",
      "node_type" : "ENDPOINT",
      "description" : "watermeter device",
      "auth_info" : {
        "auth_type" : "SECRET",
        "secret" : "3b935a250c50dc2c6d481d048cefdc3c",
        "fingerprint" : "dc0f1016f495157344ac5f1296335cff725ef22f",
        "secure_access" : true,
        "timeout" : 300
      },
      "product_id" : "b640f4c203b7910fc3cbd446ed437cbd",
      "create_time" : "20190303T081011Z",
      "provision_info" : {
        "access_point" : {
          "access_point_id" : "cn-north-4",
          "access_point_name" : "cn-north-4",
          "region_id" : "cn-north-4"
        },
        "allocation_status" : 0,
        "allocation_strategy_type" : "base",
        "life_time" : 84600
      }
    }
  • 示例 2

    {
      "device_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f",
      "node_id" : "ABC123456789",
      "gateway_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f",
      "device_name" : "dianadevice",
      "node_type" : "ENDPOINT",
      "description" : "watermeter device",
      "auth_info" : {
        "auth_type" : "SECRET",
        "secret" : "3b935a250c50dc2c6d481d048cefdc3c",
        "fingerprint" : "dc0f1016f495157344ac5f1296335cff725ef22f",
        "secure_access" : true,
        "timeout" : 300
      },
      "product_id" : "b640f4c203b7910fc3cbd446ed437cbd",
      "create_time" : "20190303T081011Z",
      "provision_info" : {
        "access_point" : {
          "access_point_id" : "cn-north-4",
          "access_point_name" : "cn-north-4",
          "region_id" : "cn-north-4"
        },
        "allocation_status" : 0,
        "allocation_strategy_type" : "certificates",
        "life_time" : 84600
      }
    }
  • 示例 3

    {
      "device_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f",
      "node_id" : "ABC123456789",
      "gateway_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f",
      "device_name" : "dianadevice",
      "node_type" : "ENDPOINT",
      "description" : "watermeter device",
      "auth_info" : {
        "auth_type" : "SECRET",
        "secret" : "3b935a250c50dc2c6d481d048cefdc3c",
        "fingerprint" : "dc0f1016f495157344ac5f1296335cff725ef22f",
        "secure_access" : true,
        "timeout" : 300
      },
      "product_id" : "b640f4c203b7910fc3cbd446ed437cbd",
      "create_time" : "20190303T081011Z",
      "provision_info" : {
        "access_point" : {
          "access_point_id" : "cn-north-4",
          "access_point_name" : "cn-north-4",
          "region_id" : "cn-north-4"
        },
        "allocation_status" : 0,
        "allocation_strategy_type" : "functions",
        "life_time" : 84600
      }
    }
support.huaweicloud.com/api-iotps/AddDevice.html