list-search-applications.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. },
  48. {
  49. "name": "app-2"
  50. }
  51. ],
  52. "updated_at_millis": 1682105622204
  53. }
  54. ----