list-search-applications.asciidoc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [role="xpack"]
  2. [[list-search-applications]]
  3. === List Search Applications
  4. beta::[]
  5. ++++
  6. <titleabbrev>List Search Applications</titleabbrev>
  7. ++++
  8. Returns information about Search Applications.
  9. [[list-search-applications-request]]
  10. ==== {api-request-title}
  11. `GET _application/search_application/`
  12. [[list-search-applications-prereq]]
  13. ==== {api-prereq-title}
  14. Requires the `manage_search_application` cluster privilege.
  15. [[list-search-applications-path-params]]
  16. ==== {api-path-parms-title}
  17. `q`::
  18. (Optional, string) Query in the Lucene query string syntax, to return only search applications matching the query.
  19. `size`::
  20. (Optional, integer) Maximum number of results to retrieve.
  21. `from`::
  22. (Optional, integer) The offset from the first result to fetch.
  23. [[list-search-applications-response-codes]]
  24. ==== {api-response-codes-title}
  25. [[list-search-applications-example]]
  26. ==== {api-examples-title}
  27. The following example lists all configured search applications:
  28. [source,console]
  29. ----
  30. GET _application/search_application/
  31. ----
  32. // TEST[skip:TBD]
  33. The following example lists the first three search applications whose names match the query string `app`:
  34. [source,console]
  35. ----
  36. GET _application/search_application/?from=0&size=3&q=app
  37. ----
  38. // TEST[skip:TBD]
  39. A sample response:
  40. [source,console-result]
  41. ----
  42. {
  43. "count": 2,
  44. "results": [
  45. {
  46. "name": "app-1",
  47. "indices": [ "index1", "index2" ]
  48. },
  49. {
  50. "name": "app-2",
  51. "indices": [ "index3", "index4" ]
  52. }
  53. ],
  54. "updated_at_millis": 1682105622204
  55. }
  56. ----