The "describeInputs" action returns all available information about each specified input. Inputs collect tags from a data source and insert them into an integration table.
Note A tag is a piece of named data with an associated value. For example, the tag
temperature 70includes both the named data temperature and the value70. In JSON, a tag is a JSON property, such as"temperature": 70. In a SQL table, a tag is a data field, such as a field named temperature with a value of70.
Request examples
Minimal
{
"apiVersion": "1.0",
"requestId": "00000027",
"action": "describeInputs",
"params": {
"inputNames": [
"modbusTCP"
]
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Response examples
Minimal
{
"result": {
"data": [
{
"inputName": "modbusTCP",
"serviceName": "modbus",
"thingName": "PLC 74",
"enabled": true,
"running": false,
"stopCode": 138,
"disconnectReason": "Modbus timeout(138)",
"dataCollectionIntervalMilliseconds": 1000,
"settings": {
"modbusProtocol": "TCP",
"modbusServer": "127.0.0.1",
"modbusServerPort": 502,
"modbusDataCollectionIntervalMilliseconds": 15000,
"propertyMapList": [
{
"propertyPath": "temperature",
"modbusDataAddress": 1199,
"modbusDataAccess": "register",
"modbusUnitId": 5,
"modbusDataLen": 1
},
{
"propertyPath": "volume",
"modbusDataAddress": 1299,
"modbusDataAccess": "register",
"modbusUnitId": 5,
"modbusByteOrder": "ABCD",
"modbusDataLen": 2
},
{
"propertyPath": "status",
"modbusDataAddress": 1199,
"modbusDataAccess": "coil",
"modbusUnitId": 5,
"modbusDataLen": 1
}
]
},
"databaseName": "ctreeSQL",
"ownerName": "admin",
"tableName": "modbustabletcp",
"metadata": {},
"retentionPolicy": "autoPurge",
"retentionPeriod": 30,
"retentionUnit": "day"
}
]
},
"requestId": "00000027",
"errorCode": 0,
"errorMessage": ""
}
Properties
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
inputNames |
The "inputNames" property specifies the names of the inputs you want to be described in the result. |
Optional with default of []
|
array | 0 or more strings |
Response properties ("result")
| Property | Description | Type | Limits (inclusive) |
|---|---|---|---|
data |
The |
array of objects | The action determines its contents. |
|
data .databaseName |
The
|
string | 1 to 64 bytes |
|
data .dataCollectionIntervalMilliseconds |
The |
integer |
0 and negative values are invalid. |
|
data .disconnectReason |
The "disconnectReason" property details the reason why the connector disconnected. |
string | No limit |
|
data .enabled |
The "enabled" property is true when a connector is allowed to connect to a device. It is false when a connector will not attempt to connect to the device. |
Boolean |
true false |
|
data .inputName |
The "params": {
"inputName": "modbusTCP",
"serviceName": "modbus"
} |
string | 1 to 100 bytes |
|
data .metadata |
The "metadata" property contains user-defined properties that add keywords and tags about the code package. The server indexes this field with a full-text index so you can search for any word or phrase to find code packages. |
object | 0 or more key/value pairs |
|
data .ownerName |
The You specify this property when you want to use a different account instead of the default. It is an error to set If no default owner is specified during |
string | 1 to 64 bytes |
|
data .retentionPeriod |
The |
integer |
1 to 100
|
|
data .retentionPolicy |
The If not specified, the default found in the
retentionPolicy values:
|
string |
|
|
data .retentionUnit |
The If not specified, the default found in the
|
string |
|
|
data .running |
The "running" property is true when an input connector is collecting data or an output connector is delivering data; otherwise, it is false. A disabled connector will never be running. An enabled connector may or may not be running. |
Boolean |
|
|
data .serviceName |
The See the The following services are available as of the V5 release:
|
string | 1 to 64 bytes |
|
data .settings |
The Connector-specific "settings" |
object | |
|
data .stopCode |
The "stopCode" property is 0 when the connector is successfully connected to its device or software; otherwise, it is non-zero. |
integer |
-2147483648 to 2147483647
|
|
data .tableName |
The See table name in System limits for the table naming requirements and limitations.
"params": {
"tableName": "ctreeTable"
} |
string | 1 to 64 bytes |
|
data .thingName |
The "thingName" property specifies the unique name of a thing. |
string | 1 to 64 bytes |