I'd like to know if there is ability to enable Elastic Security prebuilt rules and ML jobs they require to work properly via API.
I didn't managed to find any info on this, so perhaps this functionality is not available, but maybe any of you guys have any.
Information on the ML jobs for Elastic Security is: Prebuilt job reference | Elastic Security Solution [7.15] | Elastic
It requires you to have a Platinum License (or a trial license)
Not a single word about API in this docs.
The pre-built jobs are basically stored as kibana plugin "models" - you can see them all in this GH repo: kibana/x-pack/plugins/ml/server/models/data_recognizer/modules at 7.15 · elastic/kibana · GitHub
rare destination by country
In the Kibana UI, once the user clicks on "enable" - Kibana just reads these static files and calls the
_ml API with the details and the jobs get created.
You now have all the information on how to call the
_ml API to create these jobs.
Wow, that's exactly what I needed!