def getSetsList(epmserver, epmToken, authType, version=None):
    """
        Get Sets list
        This method enables the user to retrieve the list of Sets.
    """
    # build the URL
    if version == None:
        myURL = epmserver + "/EPM/API/Sets"
    else:
        myURL = epmserver + "/EPM/API/" + version + "/Sets"

    # build the header
    hdr = {}
    hdr['Content-Type'] = 'application/json'
    if authType == 'EPM':
        authToken = 'basic ' + epmToken
        hdr['Authorization'] = authToken
    else:
        authToken = epmToken
        hdr['VFUser'] = authToken

    # make the Rest API call
    urllib3.disable_warnings()
    return requests.get(myURL, headers=hdr)

        Get Sets list
        This method enables the user to retrieve the list of Sets.
    
Solutions/CyberArkEPM/DataConnectors/CyberArkEPMSentinelConnector/pyepm.py