Which of these URLs could be used to construct a REST request to search the employee KV store collection to find records with a rating greater than or equal to
2 and less than 5?
Which of these URLs could be used to construct a REST request to search the employee KV store collection to find records with a rating greater than or equal to
2 and less than 5?
The correct URL to construct a REST request to search the employee KV store collection to find records with a rating greater than or equal to 2 and less than 5 is 'http://localhost:8089/servicesNS/nobody/search/storage/collections/data/employees?query={"$and":[{"rating":{"$gte":2}},{"rating":{"$lt":5}}]}&output_mode=json'. This URL properly encodes the JSON query string and specifies the output mode correctly.
Answer is D
Agree.
D, the only one with correct JSON in the request
Answer is A. See "Queries" header here https://docs.splunk.com/Documentation/Splunk/8.2.1/RESTREF/RESTkvstore
No because output_mode should be followed by = https://docs.splunk.com/Documentation/Splunk/8.2.1/Search/ExportdatausingRESTAPI