_get_custom_list_items
Related Concepts: Custom Lists
This function gets a list of custom list items from category and entities list. This function returns a list of custom list item objects.
result = siemplify._get_custom_list_items(category_name, entities)
Parameters:
Param Name | Param Type | Possible Values | Comments | Mandatory Parameter |
---|---|---|---|---|
category_name | string | “BlackListed IPs” | the custom list category | Yes |
entities | list | [“GOOGLE.COM” , “8.8.8.8”] | a list of entities | Yes |
Return Type
List
Example:
Input: Explicitly, category_name. Implicitly, entities via scope.
Sample Code
from SiemplifyAction import SiemplifyAction
siemplify = SiemplifyAction()
result = siemplify._get_custom_list_items("Blacklisted IP", entities)
Result Behavior
A list of entities in the blacklisted IP category will be returned.
Result Value
List of entities in blacklisted IP category.