Integrations/EDL/EDL.py
def refresh_edl_context(indicator_query: str, limit: int = 0,
                        panos_compatible: bool = True, url_port_stripping: bool = True) -> str:
    """
    Refresh the cache values and format using an indicator_query to call demisto.searchIndicators

    Parameters:
        indicator_query (str): Query that determines which indicators to include in
            the EDL (Cortex XSOAR indicator query syntax)
        limit (int): The maximum number of indicators to include in the EDL
        panos_compatible (bool): Whether to make the indicators PANOS compatible or not
        url_port_stripping (bool): Whether to strip the port from URL indicators (if a port is present) or not

    Returns: List(IoCs in output format)
    """
    now = datetime.now()
    # poll indicators into edl from demisto
    iocs = find_indicators_to_limit(indicator_query, limit, panos_compatible, url_port_stripping)
    out_dict = create_values_out_dict(iocs)
    save_context(now, out_dict)
    return out_dict[EDL_VALUES_KEY]

    Refresh the cache values and format using an indicator_query to call demisto.searchIndicators

    Parameters:
        indicator_query (str): Query that determines which indicators to include in
            the EDL (Cortex XSOAR indicator query syntax)
        limit (int): The maximum number of indicators to include in the EDL
        panos_compatible (bool): Whether to make the indicators PANOS compatible or not
        url_port_stripping (bool): Whether to strip the port from URL indicators (if a port is present) or not

    Returns: List(IoCs in output format)
    
Refresh the cache values and format using an indicator_query to call demisto.searchIndicators
Refresh the cache values and format using an indicator_query to call demisto . searchIndicators
def refresh_edl_context(indicator_query: str, limit: int = 0,
                        panos_compatible: bool = True, url_port_stripping: bool = True) -> str:
    now = datetime.now()
    iocs = find_indicators_to_limit(indicator_query, limit, panos_compatible, url_port_stripping)
    out_dict = create_values_out_dict(iocs)
    save_context(now, out_dict)
    return out_dict[EDL_VALUES_KEY]
def refresh_edl_context ( indicator_query : str , limit : int = 0 , panos_compatible : bool = True , url_port_stripping : bool = True ) -> str : now = datetime . now ( ) iocs = find_indicators_to_limit ( indicator_query , limit , panos_compatible , url_port_stripping ) out_dict = create_values_out_dict ( iocs ) save_context ( now , out_dict ) return out_dict [ EDL_VALUES_KEY ]
Refresh the cache values and format using an indicator_query to call demisto.searchIndicators
Refresh the cache values and format using an indicator_query to call demisto . searchIndicators
"""
    Refresh the cache values and format using an indicator_query to call demisto.searchIndicators

    Parameters:
        indicator_query (str): Query that determines which indicators to include in
            the EDL (Cortex XSOAR indicator query syntax)
        limit (int): The maximum number of indicators to include in the EDL
        panos_compatible (bool): Whether to make the indicators PANOS compatible or not
        url_port_stripping (bool): Whether to strip the port from URL indicators (if a port is present) or not

    Returns: List(IoCs in output format)
    """ # poll indicators into edl from demisto
indicator_query
str
Query that determines which indicators to include in
the EDL (Cortex XSOAR indicator query syntax)
Query that determines which indicators to include in the EDL ( Cortex XSOAR indicator query syntax )
limit
int
The maximum number of indicators to include in the EDL
The maximum number of indicators to include in the EDL
panos_compatible
bool
Whether to make the indicators PANOS compatible or not
Whether to make the indicators PANOS compatible or not
url_port_stripping
bool
Whether to strip the port from URL indicators (if a port is present) or not
Whether to strip the port from URL indicators ( if a port is present ) or not