Datasource on edit pens for click to graph

what should the correct line of code be in ignition?

address = fpmi.system.getGatewayAddress()
source = fpmi.net.httpGet("http://%s/gateway/Gateway?tab=datasources" % address)

It should be:connections = system.db.getConnections() for connection in connections: name = connection["name"]