×
Back to Opsview FAQ
Rest API query NOT returning all rows
Problem Copied
Querying host only list 50 rows instead of all rows.
Example query command:
/opt/opsview/coreutils/bin/opsview_rest --username="" --password="" --pretty --data-format=json GET /rest/config/host
Cause Copied
The default rows are set to 50.
-
Snippet from the UI located in Configuration > Hosts > List
-
Solution Copied
To achieve this, rows=all needs to be included in the query.
Run as root user:
/opt/opsview/coreutils/bin/opsview_rest --username=admin --password="initial" --pretty --data-format=json GET /rest/config/host?rows=all
Related Articles Copied
["Geneos"]
["FAQ"]