get-ml-info.asciidoc 1.4 KB

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