Beta_Integrations/ProofpointThreatResponse/ProofpointThreatResponse.py
def block_domain_command():
    ''' Adds given domains to the relevant blacklist in Threat Response '''
    list_id = demisto.params().get('blacklist_domain')
    domains = argToList(demisto.args().get('domain'))
    expiration = demisto.args().get('expiration')

    message = ''
    for domain in domains:
        add_to_list(list_id, domain, None, expiration)
        message += '{} added successfully to block_domain list\n'.format(domain)

    demisto.results(message)
 Adds given domains to the relevant blacklist in Threat Response 
Adds given domains to the relevant blacklist in Threat Response
Adds given domains to the relevant blacklist in Threat Response
def block_domain_command():
    list_id = demisto.params().get('blacklist_domain')
    domains = argToList(demisto.args().get('domain'))
    expiration = demisto.args().get('expiration')
    message = ''
    for domain in domains:
        add_to_list(list_id, domain, None, expiration)
        message += '{} added successfully to block_domain list\n'.format(domain)
    demisto.results(message)
def block_domain_command ( ) : list_id = demisto . params ( ) . get ( 'blacklist_domain' ) domains = argToList ( demisto . args ( ) . get ( 'domain' ) ) expiration = demisto . args ( ) . get ( 'expiration' ) message = '' for domain in domains : add_to_list ( list_id , domain , None , expiration ) message += '{} added successfully to block_domain list\n' . format ( domain ) demisto . results ( message )
Adds given domains to the relevant blacklist in Threat Response
Adds given domains to the relevant blacklist in Threat Response
''' Adds given domains to the relevant blacklist in Threat Response '''