def get_datasource(name, orgname=None, profile='grafana'):
 data = get_datasources(orgname=orgname, profile=profile)
 for datasource in data:
  if (datasource['name'] == name):
   return datasource
 return None

def get_datasource ( name , orgname = None , profile = 'grafana' ) : data = get_datasources ( orgname = orgname , profile = profile ) for datasource in data : if ( datasource [ 'name' ] == name ) : return datasource return None
show a single datasource in an organisation .