REST gateway access from perspective

Hello,

I would like to display (and possibly edit) the Read-Only setting of OPC UA servers in Perspective.

I haven’t been able to find a corresponding tag in the System tag provider or any system function that would give me this information. Because of that, I believe my only option is to use the Gateway REST API. However, I’ve run into some HTTPS-related issues while trying to use it.

Before I spend more time troubleshooting that, I’d like to make sure there isn’t another way to access this setting. Did I miss something, or is the REST API my best option here?

I think the REST API may be your only option.

This is likely also possible (though unsupported) via the configuration manager reached by the gateway context.

I found the following approach:

path = '/usr/local/bin/ignition/data/config/resources/core/ignition/opc-connection/LAB/config.json'
system.file.readFileAsString(path)

This works for reading the configuration, but it doesn’t seem like the right way to modify it. Or is there any way to trigger a configuration reload?

@pturmel which configuration manager are you referring to? Could you point me in the right direction or provide some resources where I can find more information?

This one: getConfigurationManager()

I recommend using my Integration Toolkit's system.util.toolkitCtx() to get started.