get-ml-info.asciidoc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[get-ml-info]]
  4. === Get Machine Learning Info API
  5. ++++
  6. <titleabbrev>Get Machine Learning Info</titleabbrev>
  7. ++++
  8. Returns defaults and limits used by machine learning.
  9. ==== Request
  10. `GET _xpack/ml/info`
  11. ==== Description
  12. This endpoint is designed to be used by a user interface that needs to fully
  13. understand machine learning configurations where some options are not specified,
  14. meaning that the defaults should be used. This endpoint may be used to find out
  15. what those defaults are.
  16. ==== Authorization
  17. You must have `monitor_ml`, `monitor`, `manage_ml`, or `manage` cluster
  18. privileges to use this API. The `machine_learning_admin` and `machine_learning_user`
  19. roles provide these privileges. For more information, see
  20. {stack-ov}/security-privileges.html[Security Privileges] and
  21. {stack-ov}/built-in-roles.html[Built-in Roles].
  22. ==== Examples
  23. The endpoint takes no arguments:
  24. [source,js]
  25. --------------------------------------------------
  26. GET _xpack/ml/info
  27. --------------------------------------------------
  28. // CONSOLE
  29. // TEST
  30. This is a possible response:
  31. [source,js]
  32. ----
  33. {
  34. "defaults" : {
  35. "anomaly_detectors" : {
  36. "model_memory_limit" : "1gb",
  37. "categorization_examples_limit" : 4,
  38. "model_snapshot_retention_days" : 1
  39. },
  40. "datafeeds" : {
  41. "scroll_size" : 1000
  42. }
  43. },
  44. "limits" : { }
  45. }
  46. ----
  47. // TESTRESPONSE