Gateway network scripting

Is it possible to use scripting to add a gateway network connection? I’m working on an application where there will be a set of edge nodes being monitored by a central gateway. We want the end user to be able to configure alarms from the HMI, but we do not want to give them access to the gateway settings pages.

Any advice is welcome.