Reindex monitoring Node JS

Hello,

I'm trying to develop a Kibana plugin.

I want to reindex, which works fine. But I'd like to monitor the reindexing. I have found the query for it :

GET _tasks?detailed=true&actions=*reindex

But the task api seems to be less effective with node js ?

It seems i can't do this :

const currentTask = await callWithRequest(req, 'tasks.get', { action: '*reindex' });

Thanks a lot!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.