def getClusters(server, port, adminUser, adminPass, useSSL=True, token=None):
    
    if token is None:
        token = gentoken(server, port, adminUser, adminPass, useSSL)    
    
    services = []    
    folder = ''    
    URL = "{}{}{}/arcgis/admin/clusters?f=pjson&token={}".format(getProtocol(useSSL), server, getPort(port), token)    

    clusters = json.loads(urllib2.urlopen(URL).read())

    return clusters.get('clusters')
Check to see if a scripture reference is valid
dataset/ETHPy150Open Esri/ops-server-config/SupportFiles/AGSRestFunctions.py/getClusters--crossover with--dataset/ETHPy150Open davisd/python-scriptures/scriptures/references.py/is_valid_reference