There is currently no API to provide this information. May I ask the reason for accessing it? I am wondering if we can provide a cleaner API to achieve what you are wanting.
If you 100% need to see the forecast IDs, the way to do so would be:
I'm working on alerting on forecast applied to some metrics (memory, cpu,..) and in order to have always the same forecast duration we have to create via API a new forecast every day. So we also need to remove the old forecast and for that, the only way is to get the <forecast_id> at the new forecast creation and to store it in a file in order to delete it the day after. That's why it could be helpful to directly request via API the list of <forecast_id> associated to a job and then to delete the <forecast_id> created the previous day.
I also observed that if you create several forecast by using Kibana GUI, there is no way to delete a specific forecast (because this option is not available on GUI and the <forecast_id> associated to each forecast is not displayed). You can only delete ALL the forecast by using the DELETE forecast API.
So, thanks a lot for the workaround you provided in your answer. It works fine!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.