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.

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

https://docs.itrsgroup.com/docs/opsview/current/rest-api/rest-api-overview/request/api-overview-parameters/index.html

["Geneos"] ["FAQ"]

Was this topic helpful?