I'm on Elastic stack v 7.6 and trying to get the JSON representation of a Kibana index pattern via the saved_objects API as explained here.
I tried issuing a GET request via Postman to:
https://mydomain/api/saved_objects/_find?type=index-pattern&search_fields=title&search=logstash*
but get the following error:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "request [/api/saved_objects/_find] contains unrecognized parameters: [search], [search_fields] -> did you mean [stored_fields]?"
}
],
"type": "illegal_argument_exception",
"reason": "request [/api/saved_objects/_find] contains unrecognized parameters: [search], [search_fields] -> did you mean [stored_fields]?"
},
"status": 400
}
What am I doing wrong?