On a second thought, a simple plain text file that could be fetched via API holding e.g. <subnet>:<gw>;[<subnet>:<gw>;]... would do the trick.
I now read on the forum that a text file to be read in a script can be no more than 4K in size, so that may be a problem...