Related Concepts: Custom Lists

Given a category name, this function returns True (Boolean) if the exact category name string is defined as a category in the CustomList settings.
This function does not take Environment into account – It simply returns True if it exists at all, otherwise, False.

siemplify.is_existing_category("WhiteListed HOSTs")

Parameters

Param Name Param Type Possible Values Comments Mandatory Parameter
category string “BlackListed IPs” the custom list category Yes

Return Type

Boolean

Example:

Sample Code 1
from SiemplifyAction import SiemplifyAction 
siemplify = SiemplifyAction() 
result = siemplify.is_existing_category("WhiteListed HOSTs")
Sample Code 2
from SiemplifyAction import SiemplifyAction 
siemplify = SiemplifyAction() 
result = siemplify.is_existing_category("SpecialHosts")
Result Behavior
The result in Sample Code 1 returns True and result in the Sample Code 2 returns False. 

System’s state

Result Value
True/False