Beta_Integrations/ProofpointThreatResponse/ProofpointThreatResponse.py
def block_ip_command():
    ''' Adds given IPs to the relevant blacklist in Threat Response '''
    list_id = demisto.params().get('blacklist_ip')
    ips = argToList(demisto.args().get('ip'))
    expiration = demisto.args().get('expiration')

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

    demisto.results(message)
 Adds given IPs to the relevant blacklist in Threat Response 
Adds given IPs to the relevant blacklist in Threat Response
Adds given IPs to the relevant blacklist in Threat Response
def block_ip_command():
    list_id = demisto.params().get('blacklist_ip')
    ips = argToList(demisto.args().get('ip'))
    expiration = demisto.args().get('expiration')
    message = ''
    for ip in ips:
        add_to_list(list_id, ip, None, expiration)
        message += '{} added successfully to block_ip list\n'.format(ip)
    demisto.results(message)
def block_ip_command ( ) : list_id = demisto . params ( ) . get ( 'blacklist_ip' ) ips = argToList ( demisto . args ( ) . get ( 'ip' ) ) expiration = demisto . args ( ) . get ( 'expiration' ) message = '' for ip in ips : add_to_list ( list_id , ip , None , expiration ) message += '{} added successfully to block_ip list\n' . format ( ip ) demisto . results ( message )
Adds given IPs to the relevant blacklist in Threat Response
Adds given IPs to the relevant blacklist in Threat Response
''' Adds given IPs to the relevant blacklist in Threat Response '''