Download OpenAPI specification:Download
The Interface provided by Nexthink to connect with third-party Chatbot applications.
For detailed description on each device field please refer to the Nexthink NXQL Data Model documentation.
Return the information of the devices used by the user.
| user_id required | string Example: user_1 Id of the user |
| type | string (UserType) Enum: "distinguished_name" "name" "sid" Id type (name of the field on NXQL) |
[- {
- "name": "NXTV-WIN10EN-15",
- "device_uid": "54965105b7192099cc5c17e2be830df3",
- "platform": "windows",
- "total_ram": 12884901888,
- "last_ip_address": "192.168.1.126",
- "group_name": "WORKGROUP",
- "entity": "other",
- "device_model": "VMware Virtual Platform",
- "os_version_and_architecture": "Windows 10 Enterprise 1803 (64 bits)",
- "system_drive_capacity": 33833349120,
- "system_drive_free_space": 9047564288,
- "number_of_days_since_last_boot": 13,
- "user_last_activity_time": "2019-04-15T18:18:40+10:00",
- "last_seen": "2019-04-16T19:19:43+10:00"
}, - {
- "name": "NXTV-WIN10EN",
- "device_uid": "9a1dcb96b1f185fa23b728fd29b773e1",
- "platform": "windows",
- "total_ram": 8589934592,
- "last_ip_address": "192.168.1.122",
- "group_name": "WORKGROUP",
- "entity": "other",
- "device_model": "VMware Virtual Platform",
- "os_version_and_architecture": "Windows 10 Enterprise 1803 (64 bits)",
- "system_drive_capacity": 33833349120,
- "system_drive_free_space": 7249125376,
- "number_of_days_since_last_boot": 13,
- "user_last_activity_time": "2019-04-16T18:18:42+10:00",
- "last_seen": "2019-04-16T18:18:43+10:00"
}
]Return the information of the device.
| device_name required | string Example: device_1 Name of the device |
{- "name": "NXTV-WIN10EN-15",
- "device_uid": "54965105b7192099cc5c17e2be830df3",
- "platform": "windows",
- "total_ram": 12884901888,
- "last_ip_address": "192.168.1.126",
- "group_name": "WORKGROUP",
- "entity": "other",
- "device_model": "VMware Virtual Platform",
- "os_version_and_architecture": "Windows 10 Enterprise 1803 (64 bits)",
- "system_drive_capacity": 33833349120,
- "system_drive_free_space": 9047564288,
- "number_of_days_since_last_boot": 13,
- "last_seen": "2019-04-16T18:18:43+10:00"
}For more information on Remote Actions please refer to the Nexthink User Manual documentation.
Execute a Remote Action on a given device. If the execution mode is asynchronous the Remote Action is queued for later execution. If the execution mode is synchronous then the body must contain the timeout.
| ra_id required | string Example: ra_id_1 The id of the Remote Action to execute |
| device_uid required | string Example: 5b49c2105f4507cd7a0f09592032fbe8 Uid of the device where it is executed |
If timeout is defined the Remote Action will be executed synchronously. The timeout is the maximum number of seconds to wait for completion.
| timeout | number [ 10 .. 300 ] |
{- "timeout": 120
}{- "status": "successful",
- "fields": {
- "action:Disk Cleanup/CleanupSpace": 0,
- "action:Disk Cleanup/Execution status": "success",
- "action:Disk Cleanup/Execution status details": "User emptied recycle bin. \r\nPowerShell exited with code 0\n",
- "action:Disk Cleanup/Last execution time": "2019-02-21T15:50:23+01:00",
- "action:Disk Cleanup/Target status": "completed"
}
}Get the current result of a Remote Action for a given device.
| ra_id required | string Example: ra_id_1 The id of the Remote Action to check |
| device_uid required | string Example: 5b49c2105f4507cd7a0f09592032fbe8 Uid of the device |
{- "status": "successful",
- "fields": {
- "action:Disk Cleanup/CleanupSpace": 0,
- "action:Disk Cleanup/Execution status": "success",
- "action:Disk Cleanup/Execution status details": "User emptied recycle bin. \r\nPowerShell exited with code 0\n",
- "action:Disk Cleanup/Last execution time": "2019-02-21T15:50:23+01:00",
- "action:Disk Cleanup/Target status": "completed"
}
}Return the list of Remote Actions and associated information.
{- "repair_outlook_ost_problem": {
- "name": "Repair Outlook OST Problem",
- "uid": "130bb94e-3e0b-f87c-e2b8-3a2d022394fe"
}, - "set_outlook_online": {
- "name": "Set Outlook online",
- "uid": "683c5c12-6160-913a-99df-6087dbefab6c"
}
}Return the result of the diagnosis of the given topic for the given device.
| topic_id required | string Example: app_onedrive_issues Name of the topic |
| device_uid required | string Example: 5b49c2105f4507cd7a0f09592032fbe8 UID of the device |
| platform required | string Example: windows Platform of the device (windows or mac_os) |
| detail_level | number (DetailLevel) [ 1 .. 3 ] Default: 3 Detail level on the response of the diagnosis. Three possible values depending on the information returned:
|
"[\n {\n \"diagnosis\": [\n {\n \"condition\": \"system_drive_free_space < 10000000000\",\n \"match\": true,\n \"remediation_ras\": [\n {\n \"id\": \"disk_cleanup\",\n \"endpoint\": \"/remote_action/disk_cleanup/fc158e42ac274e7ca8e08114ce07bd3b\"\n }\n ]\n },\n {\n \"condition\": \"total_drive_free_space < 20000000000\",\n \"match\": true,\n \"remediation_ras\": [\n {\n \"id\": \"disk_cleanup\",\n \"endpoint\": \"/remote_action/disk_cleanup/fc158e42ac274e7ca8e08114ce07bd3b\"\n }\n ]\n }\n ]\n },\n {\n \"diagnosis\": [\n {\n \"condition\": \"\\\"action:Get Startup Impact/HighImpactCount\\\" > 0\",\n \"match\": true\n }\n ]\n },\n {\n \"diagnosis\": [\n {\n \"condition\": \"average_network_response_time > 30000\",\n \"match\": true\n },\n {\n \"condition\": \"network_availability_level != high\",\n \"match\": true\n }\n ]\n }\n]"{- "app_sfb_issues": {
- "version": "1.0.0"
}, - "device_bad_health": {
- "version": "1.0.1"
}, - "l1_device_checklist": {
- "version": "1.0.1"
}, - "pc_slow": {
- "version": "1.1.1"
}, - "app_outlook_issues": {
- "version": "1.0.1"
}
}