APIs


In EnOS 2.1 Update Release, we added support to new APIs and API services.

Connection Service

The Connection Service has the following new APIs:

API Description
Upload Attributes Upload device attribute data, including file-type data
Upload Events Upload device event data, including file-type data
Upload Measurement Points Upload device measurement point data, including file-type data
Download File Download a file from a device
Delete File Delete a file from a device
Apply Certificate Apply for a certificate and bind it to a device
Renew Certificate Update a certificate and bind it to a device
Search Device Search for devices based on the search criteria such as the attributes and tags of a device

TSDB Data Service

API Version Upgrade

Starting from EnOS 2.1 Update Release, the TSDB Data Service API is upgraded to V2.1 (V2.0 is still in service), which includes the following changes:

What’s new Before After Impact
New Request Parameter N/A localTimeFormat All APIs
New Request Parameter N/A itemFormat All APIs
Method GET/POST POST All APIs
Request/Response Parameter Name Change measurepoints pointIds All APIs
Request/Response Parameter Name Change measurepointsWithLogic pointIdsWithLogic All APIs
Request/Response Parameter Name Change measurepoint pointId All APIs
Response Field Rename status code All APIs
Return Code Rename Success OK All APIs

New API

The following API is added to the TSDB Data Service API V2.1:

API Description
Delete Asset Latest Data Delete the latest data of the specified measurement points of specified devices

TSDB Policy Service

The TSDB Policy Service has the following new APIs:

API Description
Get Storage Policy Get the detailed information of a storage policy via the storage policy ID
Save Storage Policy Update and save the configuration of a storage policy

IAM Service

The IAM Service has the following new APIs:

API Description
Log In Log in to EnOS
Get Session Information Get the session information after log in
List User Organization List all the organizations to which a user belongs

Application Portal service

The Application Portal Service has the following new APIs:

API Description
Get Users with Asset Access Get the list of users who have access permission to a specific asset
Get Unresolved Messages Get the list of unresolved messages for an application
Get User Domain Get the domain information of a user via the email address
Get User Structures Get the information of the organization structure to which a user is assigned
Log In via Authorization Code Log in to the Application Portal via authorization code

Batch Processing Service

Starting from this release, the Dataflow Service is renamed to Batch Processing Service, and the service name in the request URL is changed from dataflow-batch-service to batch-processing-service. The API version is upgraded to V2.1, which includes the following changes.

What’s changed Before After Impact
Response Field Rename status code All APIs
Return Code Rename Success OK All APIs
searchValue Field Rename searchValue expression Get My Flow
pagination Struct pageNo starting from 0 pageNo starting from 1 Search Flow, List Flow Instances

Data Federation Service

The Data Federation Service is supported, with the following new APIs:

API Name Description
List Channels Get the list of created channels (read and write) in the organization
Read Data Read data by providing SQL query through the specified channel
List Jobs Get the data reading jobs or data writing jobs of a specified channel
Get Job Details Get the detailed information of a data reading job or a data writing job
Write Message Write message to data source through a specified channel
Write Chunk File Write file chunks to data source through a specified channel

Streaming Service

The Streaming Service is supported, with the following new APIs:

API Description
Get Stage State Get the intermediate state data of a specified operator (stage) in a stream processing job
Delete Stage State Delete the intermediate state data of a specified operator (stage) in a stream processing job