I have a number of watchers configured in Elastic which I would like to activate/deactivate in one go. I'm planning to create a Jenkins job and use the below APIs.
However, how do I go about the authentication part? Based on the article here, any token will be valid only for a limited time - https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html
I'm probably missing something here. Could you help please?