About TSDB Policy Service API V2.0

This is an older version of the API. For the latest version, see V2.1.


The TSDB Policy Service provides interfaces for developers to query and update TSDB Storage Ploicy for application development. For details, see the API documentation:


Refer to the table below for the list of APIs, and whether they can be used by EnOS Cloud and EnOS Edge.

API List

API Name

Description

EnOS Cloud

EnOS Edge

Get Measurement Point TSDB Metadata

Get the TSDB storage policy corresponding to the model measurement point. A measurement point can have multiple storage policies, depending on its data type and usage. This API returns all the TSDB storage policy metadata in the current organization for the specified measurement point.

Get Storage Policy

Get detailed information of specified storage policy with storage policy ID.

Save Storage Policy

With storage policy ID, update and save the configuration of specified storage policy.

×

Recommend Poseidon version:

<dependency>
    <groupId>com.envisioniot</groupId>
    <artifactId>apim-poseidon</artifactId>
    <version>0.1.14</version>
</dependency>

API Editions


The following table lists the API services included in TSDB Policy Service Enterprise and Lightweight editions.


Operation Name

Enterprise

Lightweight

Get Points TSDB Meta Data

Get Storage Policy

×

Save Storage Policy

×

Common Error Codes

Code

Message

Description

0

OK

API request is successful.

500

Internal Server Error

Internal server error (applies to the Get Measurement Point TSDB Metadata API ony).

80500

INTERNAL SERVER ERROR

Internal server error. For details, check the returned error message.