| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 | [role="xpack"][testenv="platinum"][[get-ml-info]]=== Get machine learning info API[subs="attributes"]++++<titleabbrev>Get {ml} info</titleabbrev>++++Returns defaults and limits used by machine learning.[[get-ml-info-request]]==== {api-request-title}`GET _ml/info`[[get-ml-info-prereqs]]==== {api-prereq-title}* If the {es} {security-features} are enabled, you must have `monitor_ml`,`monitor`, `manage_ml`, or `manage` cluster privileges to use this API. The`machine_learning_admin` and `machine_learning_user` roles provide theseprivileges. See <<security-privileges>> and<<built-in-roles>>.[[get-ml-info-desc]]==== {api-description-title}This endpoint is designed to be used by a user interface that needs to fullyunderstand machine learning configurations where some options are not specified,meaning that the defaults should be used.  This endpoint may be used to find outwhat those defaults are.[[get-ml-info-example]]==== {api-examples-title}The endpoint takes no arguments:[source,console]--------------------------------------------------GET _ml/info--------------------------------------------------// TESTThis is a possible response:[source,console-result]----{  "defaults" : {    "anomaly_detectors" : {      "categorization_analyzer" : {        "tokenizer" : "ml_classic",        "filter" : [          {            "type" : "stop",            "stopwords" : [              "Monday",              "Tuesday",              "Wednesday",              "Thursday",              "Friday",              "Saturday",              "Sunday",              "Mon",              "Tue",              "Wed",              "Thu",              "Fri",              "Sat",              "Sun",              "January",              "February",              "March",              "April",              "May",              "June",              "July",              "August",              "September",              "October",              "November",              "December",              "Jan",              "Feb",              "Mar",              "Apr",              "May",              "Jun",              "Jul",              "Aug",              "Sep",              "Oct",              "Nov",              "Dec",              "GMT",              "UTC"            ]          }        ]      },      "model_memory_limit" : "1gb",      "categorization_examples_limit" : 4,      "model_snapshot_retention_days" : 1    },    "datafeeds" : {      "scroll_size" : 1000    }  },  "upgrade_mode": false,  "native_code" : {    "version": "7.0.0",    "build_hash": "99a07c016d5a73"  },  "limits" : { }}----// TESTRESPONSE[s/"upgrade_mode": false/"upgrade_mode": $body.upgrade_mode/]// TESTRESPONSE[s/"version": "7.0.0",/"version": "$body.native_code.version",/]// TESTRESPONSE[s/"build_hash": "99a07c016d5a73"/"build_hash": "$body.native_code.build_hash"/]
 |