Configured Host Groups API

The information required to read the each Host Smart Group is organized into the following tabs:

Configured Host Groups API Information

Requirement Types

Details

API

https://csi7.secunia.com/csi/api/?uid=<xyz>&action=<xyz>&which=<xyz>&smartGroupTextType=<xyz>&smartGroupId=<xyz>&_dc=1563355275960&sort=host_name&dir=ASC&sorters=%5B%7B%22field%22%3A%22host_name%22%2C%22direction%22%3A%22ASC%22%7D%5D&host_name=&start=0&limit=21

Note:The value for <XYZ> in the above API is defined in the Parameters section.

Methods

GET

Parameters

uid = UID Value taken from successful login see How to Obtain the Token .
action = smart_groups
which = getSmartGroupContents
smartGroupTextType = host
smartGroupId = "id":"n" value from the JSON response of Host Smart Groups API.

Note:The above parameters have to be entered in the <XYZ> of above API respectively

Response

{"success":true,"error_code":0,"data":{"rows":[{"nsi_device_id":"1","host_name":"BLR-LT-101247","score":"88","num_insecure":"22","num_eol":"4","num_patched":"193","num_installations":"219","group_name":"FLEXERA","software_inspector_id":"21","updated":"2019-07-12 07:07:26","software_inspector_version":"7.6.1.2"}],"total":"1"},"compiledTime":"2019-07-17 00:28:04"}

Received Information

Host Name, System Score, Last Scan, Insecure, End-of-Life, Secure, Total, Site Name, Scan Engine, Software Platform etc.