Skip to main content
Version: 2.2.0

Tag APIs (2.0.0)

Download OpenAPI specification:Download

TagService and TagHub API

Authentication

bearerAuth

Security Scheme Type HTTP
HTTP Authorization Scheme bearer
Bearer format "JWT"

tag

Get the list of all tags

Authorizations:
query Parameters
provider
string

Responses

Response samples

Content type
application/json
Example
{
  • "data": [
    ]
}

monitor

Returns value of tags in taghub which queried by d

Returns value of tags in taghub which queried by different sources and time

Authorizations:
path Parameters
provider
required
string

Provider Name - (system, module name, app name)

source
required
string

Source Name - (device name, function name)

query Parameters
tags
string

Tag Name - format (tags=name1,name2,name3)

ms
integer

history data search in milliseconds

streamInterval
integer

create a http streaming connection and response data by milliseconds time interval

compute
string
Value: "diff"

apply a compute method during streaming

onChanged
boolean

create a http streaming connection and response data on tag value changed

Responses

Response samples

Content type
application/json
{
  • "data": {
    }
}

access

Direct read method by tag

Only 'r', 'rw' access type can work.

Authorizations:
path Parameters
provider
required
string
source
required
string
tag
required
string

Responses

Response samples

Content type
application/json
{
  • "prvdName": "modbus_tcp_master",
  • "srcName": "ioLogik",
  • "tagName": "di0",
  • "timestamp": "1560322153374",
  • "dataType": "uint16",
  • "dataValue": 1
}

Direct write method by tag

Only 'w', 'rw' access type can work.

Authorizations:
path Parameters
provider
required
string
source
required
string
tag
required
string
Request Body schema: application/json
dataType
string
dataValue
object

Responses

Request samples

Content type
application/json
{
  • "dataType": "int16",
  • "dataValue": 1
}

Response samples

Content type
application/json
{
  • "message": "string"
}