REST API or Java call to Disable/Enable Stream Targets
EngineManager has a handy button that disables all stream targets for an application, but I can't find a call to do that in either the REST API documentation nor the cURL usage page.
In my environments I have two servers set up behind a round-robin configured such that if either server goes down the entire network load is transferred entirely to whatever server is still up. These two servers each have ShoutCast streams and scheduled content streams running as inputs and they're capable of re-streaming them to the network via multicast. Obviously, I can't have both of them multicasting at the same time but one has to always be multicasting. Currently (Wowza 3) I have a customized version of ModuleMulticastPublish with which I'm able to enable/disable all multicast if/when the server that's currently doing the multicasting goes down within about half a second. I'd like to get away from that a bit and use the built-in features of Wowza 4, but I can't see how StreamManager is doing it.
What I need is a REST API or programmatic way to enable/disable all stream targets in an application in the same way hitting the Enable/Disable Stream Targets buttons work through EngineManager. I can't figure out what command is being issued by EngineManager to Wowza (nor why it isn't documented).