行业基础服务包

更新时间:2023-07-19 09:56:14下载pdf

提供资产管理相关的底层服务接口

行业设备管理

API名称接口地址
查询设备是否冻结GET:/v1.0/iot-03/devices/{device_id}/freeze-state
批量移除设备DELETE:/v1.0/iot-03/devices
修改设备信息PUT:/v1.0/iot-03/devices/{device_id}
移除设备DELETE:/v1.0/iot-03/devices/{device_id}
恢复出厂设置POST:/v1.0/iot-03/devices/{device_id}/actions/reset
获取子设备列表GET:/v1.0/iot-03/devices/{device_id}/sub-devices
修改设备冻结状态PUT:/v1.0/iot-03/devices/{device_id}/freeze-state
获取设备信息GET:/v1.1/iot-03/devices/{device_id}
获取设备规格属性GET:/v1.2/iot-03/devices/{device_id}/specification
批量获取设备扩展属性GET:/v1.0/iot-03/devices/properties
获取设备扩展属性GET:/v1.0/iot-03/devices/{device_id}/properties
批量查询设备协议GET:/v1.0/iot-03/devices/protocol
获取设备列表GET:/v1.3/iot-03/devices

行业资产管理

API名称接口地址
批量查询资产信息GET:/v1.0/iot-02/assets
删除资产DELETE:/v1.0/iot-02/assets/{asset_id}
修改资产PUT:/v1.0/iot-02/assets/{asset_id}
节点下设备分页查询GET:/v1.0/iot-02/assets/{asset_id}/devices
当前节点下子节点分页查询GET:/v1.0/iot-02/assets/{asset_id}/sub-assets
根据id查询资产GET:/v1.0/iot-02/assets/{asset_id}
新增资产POST:/v1.0/iot-02/assets
授权资产POST:/v1.0/iot-03/assets/actions/user-authorized
查询被授权的资产GET:/v1.0/iot-03/users/{uid}/assets
批量资产授权用户POST:/v1.0/iot-03/users/{uid}/actions/batch-assets-authorized
取消用户资产的权限(支持选择是否取消子节点数据)POST:/v1.0/iot-03/users/{uid}/actions/assets-unauthorized
批量取消用户的资产权限POST:/v1.0/iot-03/users/{uid}/actions/batch-assets-unauthorized
分页查询跨层级子资产POST:/v1.1/iot-02/cross-level-sub-assets
查询授权用户列表GET:/v1.0/iot-03/{asset_id}/authorized_users
转移设备POST:/v1.0/iot-03/assets/devices/{device_id}/actions/transfer
分页查询资产子节点(支持排序)GET:/v1.1/iot-02/assets/{asset_id}/sub-assets

行业用户管理

API名称接口地址
根据用户id查询用户GET:/v1.0/iot-02/users/{user_id}
注册用户POST:/v1.0/iot-02/users
删除用户DELETE:/v1.0/iot-02/users/{user_id}
重置密码PUT:/v1.0/iot-02/users/reset-password
分页查询用户GET:/v1.1/iot-02/users
修改用户基本信息PUT:/v1.1/iot-02/users/{user_id}
根据用户名查询用户GET:/v1.2/iot-02/users/{user_name}
分页查询用户GET:/v1.1/iot-02/users/page

行业设备注册

API名称接口地址
蓝牙单设备注册POST:/v1.0/iot-03/device-registration/single-bluetooth/actions/register
搜寻子设备POST:/v1.0/iot-03/device-registration/devices/{device_id}/actions/discover
生成蓝牙设备配网的 authkeyPOST:/v1.0/iot-03/device-registration/single-bluetooth/auth-key
蓝牙单品设备激活POST:/v1.0/iot-03/device-registration/single-bluetooth/actions/active
生成配网令牌POST:/v1.0/iot-03/device-registration/token
停止发现子设备POST:/v1.0/iot-03/device-registration/devices/{device_id}/actions/stop-discover
获取网关新入网的子设备列表GET:/v1.0/iot-03/device-registration/devices/{device_id}/sub-devices
根据配网令牌查询设备激活结果GET:/v1.1/iot-03/device-registration/tokens/{token}
获取云端系统时间GET:/v1.0/iot-03/cloud/system-time
NB 设备扫码配网POST:/v1.0/iot-03/device-registration/qrcode-bind
获取资产下的网关列表GET:/v1.0/iot-03/device-registration/assets/{asset_id}/gateways
生成蓝牙配网 RSA 公钥POST:/v1.0/iot-03/device-registration/assets/{asset_id}/encryptions/rsa/public-key
资产绑定设备POST:/v1.1/iot-02/device-bc-bind