Connection Service Overview¶
The connection service APIs provide management operations for products, devices, and commands. For more information on device management in EnOS, see Device Connectivity & Management Service.
The APIs in the connection service are some of the APIs EnOS provides that cover the core business processes of the system. For more information on EnOS APIs and the different APIs that EnOS provides, see About EnOS API.
For more information on how to invoke EnOS APIs, see Get Started with EnOS API.
Prerequisites¶
Ensure that you have read the limitations for the different modules. See Limitations.
API List¶
Refer to the table below for the list of APIs, and whether they can be used by EnOS Cloud and EnOS Edge.
We added version 2.4 for some APIs and the new version and the existing versions can both be invoked. For what’s new in version 2.4, see EnOS 2.4 CU1.
Product¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Create a product |
/connect-service/v2.1/products?action=create |
√ |
× |
|
Delete a product |
/connect-service/v2.1/products?action=delete |
√ |
× |
|
Get the details of a product via its |
|
√ |
× |
|
Search for products based on the search criteria |
|
√ |
× |
|
Update a product |
/connect-service/v2.1/products?action=update |
√ |
× |
Device¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Create a device |
|
√ |
× |
|
Batch create devices |
|
√ |
× |
|
Delete a device |
/connect-service/v2.1/devices?action=delete |
√ |
× |
|
Disable a device |
/connect-service/v2.1/devices?action=disable |
√ |
× |
|
Enable a device |
/connect-service/v2.1/devices?action=enable |
√ |
× |
|
Get the information of a device |
|
√ |
√ |
|
Replace the |
|
√ |
× |
|
Search for devices based on the search criteria |
|
√ |
√ |
|
Update a device |
/connect-service/v2.1/devices?action=update |
√ |
× |
|
Get the device statistics of an organization or product |
/connect-service/v2.1/devices?action=getStats |
√ |
× |
|
Report the device firmware version |
/connect-service/v2.5/devices?action=reportFirmwareVersion |
√ |
× |
|
Modify the device status |
/connect-service/v2.4/devices?action=modifyDeviceStatus |
√ |
× |
Device Group¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Add devices to device groups |
/connect-service/v2.5/deviceGroups?action=addDeviceToDeviceGroup |
√ |
× |
|
Create device groups in batches |
/connect-service/v2.5/deviceGroups?action=createGroup |
√ |
× |
|
Delete device groups |
/connect-service/v2.5/deviceGroups?action=deleteGroup |
√ |
× |
|
Get device groups |
/connect-service/v2.5/deviceGroups?action=getGroup |
√ |
× |
|
Remove devices from device froups |
/connect-service/v2.5/deviceGroups?action=removeDeviceFromDeviceGroup |
√ |
× |
|
Serach devices by device groups |
/connect-service/v2.5/deviceGroups?action=searchDeviceByDeviceGroup |
√ |
× |
|
Search device groups by devices |
/connect-service/v2.5/deviceGroups?action=searchDeviceGroupByDevice |
√ |
× |
|
Search device groups |
/connect-service/v2.5/deviceGroups?action=searchGroup?action=searchGroup |
√ |
× |
|
Update device groups |
/connect-service/v2.5/deviceGroups?action=updateGroup |
√ |
× |
Certificate¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Apply for a certificate and bind it to a device |
/connect-service/v2.0/certificates?action=apply |
√ |
× |
|
Update a certificate and bind it to a device |
/connect-service/v2.0/certificates?action=renew |
√ |
× |
|
Revoke a certificate bound to a device |
/connect-service/v2.0/certificates?action=revoke |
√ |
× |
|
List the certificates bound to a device |
/connect-service/v2.0/certificates?action=list |
√ |
× |
Gateway and Sub-Device¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Add new sub-devices to the gateway device |
/connect-service/v2.1/device-topos?action=addSubDevice |
√ |
× |
|
Get the gateway information based on the specified sub-device |
|
√ |
× |
|
Remove sub-devices from the gateway |
/connect-service/v2.1/device-topos?action=removeSubDevice |
√ |
× |
|
Search for sub-devices under the specified gateway |
|
√ |
× |
Device Data¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Cancel cached commands |
/connect-service/v2.1/commands?action=cancel |
√ |
× |
|
Get the details of a command |
/connect-service/v2.1/commands?action=get |
√ |
× |
|
Get the details of an event via |
/connect-service/v2.1/events?action=get |
√ |
× |
|
Obtain the latest measurement point data uploaded from a device |
/connect-service/v2.1/measurepoints?action=queryLatest |
√ |
√ |
|
Service invocation for the device |
/connect-service/v2.1/commands?action=invokeService |
√ |
× |
|
Search for commands |
/connect-service/v2.1/commands?action=search |
√ |
× |
|
Search for events based on the search criteria |
/connect-service/v2.1/events?action=search |
√ |
× |
|
Measurement point setting for the device |
/connect-service/v2.1/commands?action=setMeasurepoint |
√ |
√ |
|
Get the information of a file |
/connect-service/v2.1/files?action=getFileInfo |
√ |
× |
|
Download a file from a device |
/connect-service/v2.1/files?action=download |
√ |
× |
|
Delete a file from a device |
/connect-service/v2.1/files?action=delete |
√ |
× |
|
Create command jobs |
/connect-service/v2.5/commands?action=createJob |
√ |
× |
|
Search command jobs by filters |
/connect-service/v2.5/commands?action=searchJob |
√ |
× |
|
Search command job details |
/connect-service/v2.5/commands?action=getJob |
√ |
× |
|
Delete command jobs |
/connect-service/v2.5/commands?action=deleteJob |
√ |
× |
|
Query the command job statistics |
/connect-service/v2.5/commands?action=queryStatistics |
√ |
× |
|
Get command tasks |
/connect-service//v2.5/commands?action=getTask |
√ |
× |
|
Serach the command task details, execution progress and statuses |
/connect-service/v2.5/commands?action=searchTask |
√ |
× |
|
Retry command tasks |
/connect-service/v2.5/commands?action=retryTask |
√ |
× |
|
Cancel command tasks |
/connect-service/v2.5/commands?action=cancelTask |
√ |
× |
HTTP Message Integration¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Upload the attribute data of a device, including file-type data |
/connect-service/v2.1/integration?action=postAttribute |
√ |
× |
|
Upload the event data of a device, including file-type data |
/connect-service/v2.1/integration?action=postEvent |
√ |
× |
|
Upload the measurement point data of a device, including file-type data |
/connect-service/v2.1/integration?action=postMeasurepoint |
√ |
√ |
Firmware Management¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Create a firmware file for a product |
/connect-service/v2.1/ota-firmwares?action=create |
√ |
× |
|
Get the file of the specified firmware |
/connect-service/v2.1/ota-firmwares?action=get |
√ |
× |
|
List the firmware versions of all devices under the specified product |
/connect-service/v2.1/ota-firmwares?action=listVersion |
√ |
× |
|
Search for firmware files under an OU based on the search criteria |
/connect-service/v2.1/ota-firmwares?action=search |
√ |
× |
|
Search for the firmware and upgrade status of the device based on the search criteria |
/connect-service/v2.1/ota-firmwares?action=searchDeviceUpgrade |
√ |
× |
|
Delete a firmware |
/connect-service/v2.1/ota-firmwares?action=delete |
√ |
× |
Firmware OTA Upgrade Management¶
Operation Name |
Description |
URL |
EnOS Cloud |
EnOS Edge |
---|---|---|---|---|
Create an OTA job for batch verification or upgrading |
/connect-service/v2.1/ota-jobs?action=create |
√ |
× |
|
Get the details of an OTA job |
/connect-service/v2.1/ota-jobs?action=get |
√ |
× |
|
Search for OTA jobs based on the search criteria |
/connect-service/v2.1/ota-jobs?action=search |
√ |
× |
|
Search for OTA tasks based on the search criteria |
/connect-service/v2.1/ota-jobs?action=searchTask |
√ |
× |
|
Start an OTA job |
/connect-service/v2.1/ota-jobs?action=start |
√ |
× |
|
Stop an OTA job |
/connect-service/v2.1/ota-jobs?action=stop |
√ |
× |
|
Delete an OTA job |
/connect-service/v2.1/ota-jobs?action=delete |
√ |
× |
|
Cancel OTA tasks under the specified OTA job |
/connect-service/v2.1/ota-jobs?action=cancelTask |
√ |
× |
|
Retry OTA tasks under the specified OTA job |
/connect-service/v2.1/ota-jobs?action=retryTask |
√ |
× |
|
Download firmware files |
/connect-service/v2.5/files?action=downloadFirmwareFile |
√ |
× |
API Editions¶
The following table lists the API services included in Connection Service Enterprise and Lightweight editions.
Category |
Enterprise |
Lightweight |
---|---|---|
√ |
√ |
|
√ |
√ |
|
√ |
√ |
|
√ |
√ |
|
√ |
√ |
|
√ |
√ |
|
√ |
√ |
|
√ |
√ |
Decrypting Product/Device Secret¶
Product/Device secrets obtained from V2.4 APIs are encrypted. For how to decrypt, see Decrypting Product/Device Secret.
SDK Samples¶
You can access the SDK samples for Connection Service on GitHub: