Equivalent to system.device.setHostname for opc

I'm was going to implement redundancy for my OPC-DA connections as discussed here by updating the hostname in the gateway configuration directly.

However, found that as the OPC-DA connections don't appear in system.devices.listDevices

looking at the system.opc options there doesnt seem to be a similar option to system.device.setDeviceHostname

Anyone able to provide if there is some other option I should look at to update the OPC hostname directly?

For some background, we currently have redundancy setup per tag by updating the tag OPCServer but are not happy with this implementation so looking to simplify it