The "listInputs" action obtains a list of names of previously created inputs. 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.
- You can return a filtered list by specifying a partial name in the
"partialName"property. - You can include additional items in the list by searching for words contained in the item's metadata.
- To get detailed information about specific inputs, use
"describeInputs".
Request examples
Minimal
{
"apiVersion": "1.0",
"action": "listInputs",
"requestId": "00000001",
"params": {
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}Maximal
{
"api": "hub",
"apiVersion": "1.0",
"action": "listInputs",
"requestId": "00000001",
"params": {
"partialName": "",
"statusFilter": ["active", "paused", "inactive", "connectorError", "deviceError", "userError"],
"purposeFilter": [ "myPur", "Track Celsius Temperatures from devices" ],
"labelsFilter": ["temperature", "celsius"]
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}Return input connectors that are delivering data
The following example returns all input connectors that are currently collecting data.
Tips
- Set to
falseto return input connectors that are not delivering data.- Set to
nullor omit to return all input connectors.
{
"action": "listInputs",
"params": {
"runningFilter": true
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Response examples
Minimal
{
"result": {
"data": [
"modbusTCP"
]
},
"requestId": "00000046",
"errorCode": 0,
"errorMessage": ""
}Maximal
{
"result": {
"data": [
"modbusTCP"
]
},
"requestId": "00000047",
"errorCode": 0,
"errorMessage": ""
}Return input connectors that are delivering data
{
"result": {
"data": [
"INPUT: PLC 74 & Modbus"
]
},
"requestId": "00000047",
"errorCode": 0,
"errorMessage": ""
}
Properties
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
enabledFilter |
The "enabledFilter" property returns input connections that are enabled or not. Omit or set to null to match all connections. |
Optional with default of null
|
Boolean |
|
integrationTableIdFilter |
The "integrationTableIdFilter" property specifies the integration table ID to include connectors that use the table. |
null | array of integers | Integer from 1 to 9223372036854770000, or a string containing an integer. |
partialName |
The |
Optional with default of ""
|
string | 1 to 64 bytes |
purposeFilter |
The "purposeFilter" property specifies the the partial or complete purpose of the thing you are looking up or filtering. such as, "purposeFilter": [ "myPur", "Manage an Acid Bath" ]. The purpose string is stored in the label group "faircom/edge/purpose". The action returns connectors that match at least one item in the array, provided it also satisfies all other specified filter properties. If "purposeFilter" is omitted or set to null, the default value is [], which prevents the action from using purpose strings to filter the results. |
Optional with default of []
|
Array of strings |
Each string in the array is 1 to 64 bytes and is a partial or complete purpose stored in the label group
|
runningFilter |
The "runningFilter" property returns input connections that are running or not. Omit or set to null to match all connections. |
Optional with default of null
|
Boolean |
|
statusFilter |
The "statusFilter" property filters connectors based on their active or inactive status. An inactive status is like a soft delete. Omitting the property or setting it to null matches all connections. |
["active"] |
array of status string enums |
"active""inactive""paused""connectorError""deviceError""userError"
|
tagIdFilter |
The "tagIdFilter" property associates a tag with a value being collected by a connector. It is mutually exclusive with the "tagNameFilter" and "propertyPath" properties. |
Conditional - No default value |
|
|
tagNameFilter |
The "tagNameFilter" property associates a tag with a value being collected by a connector. It is mutually exclusive with the "tagIdFilter" and "propertyPath" properties. |
Conditional - No default value | Array of strings |
If present, it must contain the name of an existing tag. Each string in the array is 1 to 256 bytes and must be an existing tag managed by the |
thingIdFilter |
The "thingIdFilter" property lists all connectors that match the specified ID of the device or software thing.
For example, you can use it to list all inputs connected to the thing identified by an ID of 37. It is mutually exclusive with the "thingNameFilter" property. |
null | integer |
|
thingNameFilter |
The "thingNameFilter" property lists all connectors that match the specified name of the device or software thing.
For example, you can use it to list all outputs connected to the thing named "PLC 437". It is mutually exclusive with the "thingIdFilter" property. |
null | string |
|
Response properties ("result")
| Property | Description | Type | Limits (inclusive) |
|---|---|---|---|
data |
The |
array of objects | The action determines its contents. |