How to enable and disable cameras on E code products?

I can enable and disable cameras on XProtect Essential+ 2017 R2 which is a C code product using the Configuration API, in .NET. However, I need to find a way to achieve the same result for E-Code product. The idea is that when the camera is disabled, it shouldn’t be recording and live stream should be shut down. Thank you for your help.

E-code unfortunately do not support such automation.