Get the listing of the crawler items
Use this API to list the REST crawler items.
Requirement: OpenSearchServer v1.5
Call parameters
URL: /services/rest/index/{index_name}/crawler/rest
Method: GET
Header:
- Accept (optional returned type):
application/json
orapplication/xml
URL parameters:
- index_name (required): The name of the index.
Success response
The list is returned.
HTTP code:
200
Content (application/json):
{
"successful": true,
"info": "2 item(s) found",
"items": [
"my_jira",
"my_confluence",
]
}
Error response
The command failed. The reason is provided in the content.
HTTP code:
500
Sample call
Using CURL:
curl -XGET http://localhost:8080/services/rest/index/my_index/crawler/rest
Using jQuery:
$.ajax({
type: "GET",
dataType: "json",
url: "http://localhost:8080/services/rest/index/my_index/crawler/rest"
}).done(function (data) {
console.log(data);
});