The api/audit/sessions/<session-id>/indexing endpoint lists the indexing-related details in this session (if any). For details on configuring indexing, see Local services: configuring the indexer.
URL
GET https://<IP-address-of-SPS>/api/audit/sessions/<session-id>/indexers
Cookies
Cookie name | Description | Required | Values |
---|---|---|---|
session_id | Contains the authentication token of the user | Required |
The value of the session ID cookie received from the REST server in the authentication response, for example, a1f71d030e657634730b9e887cb59a5e56162860. For more information on authentication, see Authenticate to the SPS REST API. NOTE: This session ID refers to the connection between the REST client and the SPS REST API. It is not related to the sessions that SPS records (and which also have a session ID, but in a different format). |
Sample request
The following command lists the indexing-related details of a session.
curl --cookie cookies "https://<IP-address-of-SPS>/api/audit/sessions/<session-id>/indexing"
Response
The following is a sample response received when listing the indexing-related details of a session.
For more information on the meta object, see Message format.
{ "items": [ { "config": { "command": { "enabled": true }, "keyboard": { "buffer_interval": 3, "enabled": false }, "mouse": { "buffer_interval": 1, "enabled": false }, "near_realtime": false, "ocr_languages": [], "screen": { "enabled": true, "omnipage_trade_off": "TO_ACCURATE" }, "title": { "enabled": true } }, "statistics": { "cpu_time": 5, "duration": 149, "start_time": 1542116524143 }, "status": "COMPLETED", "version": { "adp": "6.0.20", "worker": "4.0.26" } } ], "meta": { "first": "/api/audit/sessions/c7e51cebad1a3e2ade480909f7687b16/indexer?limit=500&offset=0", "href": "/api/audit/sessions/c7e51cebad1a3e2ade480909f7687b16/indexer", "last": "/api/audit/sessions/c7e51cebad1a3e2ade480909f7687b16/indexer?limit=500&offset=0", "limit": 500, "match_count": 1, "next": null, "offset": 0, "parent": "/api/audit/sessions/rUhhQZ3jYsY1NDWYp9DEpq", "previous": null, "remaining_seconds": 599 } }
Element | Type | Description | |
---|---|---|---|
items | list |
Top level element, a list containing the indexing-related details of the session. For details, see indexer_info section in"List of available search queries" in the Administration Guide. |
Changing the display limit
You can use the ?limit option to change the number of items displayed at once. The default maximum limit is 500.
?limit=100
To navigate beyond the displayed set, use the offset option.
Navigating large datasets
You can use the ?offset option to navigate data sets that extend beyond the display limit. The default value of the offset is 0, this is the initially displayed set. To move to other items beyond the initial set, increase the value to a number that corresponds to the item where you want to start displaying results from.
Example: the display limit is the default 500, and the number of sessions is 1012. The initial 500 sessions are listed at:
?offset=0
To view sessions from 501 to 1000, change the offset to 501:
?offset=501
To display the remaining 12 sessions, change the offset to 1001:
?offset=1001