List Devices
get device list.
Parameters
Parameter | Description |
---|---|
Fields | A comma delimited list of fields. Filters the response to only include the listed fields for each object. |
Filter | Filters the response according to the operator and value specified. Note that you can use * to match on more than one character. You can use the ‘.’ character to filter values within an object (e.g. custom properties), and multiple filters can be separated by a comma. Operators include: Greater than or equals: >: Less than or equals: <: Greater than: > Less than: < Does not equal: !: Equals: : Includes: ~ Does not include: !~ For example, filter=id>100 will return the results where the resource id is greater than 100. |
Offset | The number of results to offset the displayed results by. |
Size | The number of results to display. Max is 1000. |
Example Output
{
"total": 0,
"searchId": "string",
"items": [
{
"netflowCollectorGroupName": "string",
"azureState": 0,
"relatedDeviceId": -1,
"logCollectorGroupName": "string",
"displayName": "Cisco Router",
"logCollectorDescription": "string",
"link": "www.ciscorouter.com",
"logCollectorGroupId": 0,
"awsState": 0,
"description": "This is a Cisco Router",
"disableAlerting": true,
"netflowCollectorGroupId": 0,
"createdOn": 0,
"rolePrivileges": [
"string"
],
"systemProperties": [
{
"name": "addr",
"value": "127.0.0.1"
}
],
"isPreferredLogCollectorConfigured": true,
"hostStatus": "string",
"gcpState": 0,
"autoBalancedCollectorGroupId": 0,
"autoPropsUpdatedOn": 0,
"scanConfigId": 0,
"inheritedProperties": [
{
"name": "addr",
"value": "127.0.0.1"
}
],
"id": 0,
"enableNetflow": true,
"lastDataTime": 0,
"syntheticsCollectorIds": "1,4",
"hostGroupIds": "16,4,3",
"upTimeInSeconds": 0,
"resourceIds": [
{
"name": "addr",
"value": "127.0.0.1"
}
],
"deviceType": 0,
"currentCollectorId": 1,
"currentLogCollectorId": 1,
"logCollectorId": 1,
"netflowCollectorDescription": "string",
"netflowCollectorId": 1,
"userPermission": "string",
"autoPropsAssignedOn": 0,
"updatedOn": 0,
"preferredCollectorGroupName": "string",
"preferredCollectorGroupId": 0,
"autoProperties": [
{
"name": "addr",
"value": "127.0.0.1"
}
],
"customProperties": [
{
"name": "addr",
"value": "127.0.0.1"
}
],
"toDeleteTimeInMs": 0,
"collectorDescription": "string",
"preferredCollectorId": 2,
"lastRawdataTime": 0,
"name": "Main Collector",
"deletedTimeInMs": 0
}
]
}
Workflow Library Example
List Devices with Logicmonitor and Send Results Via Email