I am trying to automate the silencing and un-silencing of a single email alert. Is there a way to do this through the CLI or the Rest API? I have yet to find a way that has worked.
I need to be able to do this either via the command line or through a very simple application.
I am currently trying to use curl. I have tried the following command:
curl -k -u admin:pass https://localhost:8089/servicesNS/<user>/<app>/saved/searches/<search name> -d "is_scheduled=false"
However it returns:
<response>
<messages>
<msg type="ERROR">
In handler 'savedsearch': Cannot find saved search with name '<search name>' .</msg>
</messages>
</response>
I started looking through the savedsearches.conf of the user and the search that was there is now gone and is not present in any of the other savedsearches.conf files on my server yet it shows up in the web portal.
... View more