AIWAF

Download 11
Last updated May 18, 2025

aiwaf-user-defined-rules

Get user defined pattern rules from AIWAF devices

aiwaf-user-defined-rules [profile=PROFILE]
profile=PROFILE
Connect profile code of AIWAF device.

Output Fields

FieldTypeNameDescription
profileStringConnect profileConnect profile code of AIWAF device.
idIntegerRule idUnique identifier of the user-defined rule.
severityStringSeverityRisk level of the rule. e.g. low, medium, high, critical
nameStringRule nameName of the user-defined rule.
actionStringActionAction to take when rule matches. e.g. BLOCK, DETECT
descriptionStringDescriptionDescription of the user-defined rule.
is_enabledBoolEnabledWhether the rule is enabled.
is_log_enabledBoolLog generatedWhether logging is enabled for this rule.
is_mail_enabledBoolMail sentWhether email notification is enabled for this rule.
include_src_addrsStringClient IPClient IP addresses to apply the rule to. Output array items with line breaks
exclude_src_addrsStringExcept IPClient IP addresses to exclude from the rule. Output array items with line breaks
include_urlsStringApply urlURLs to apply the rule to. Output array items with line breaks
exclude_urlsStringExcept urlURLs to exclude from the rule. Output array items with line breaks
use_methodBoolUse method conditionWhether to use HTTP method condition.
method_regexStringMethod regular expressionHTTP method pattern to match.
use_pathBoolUse path conditionWhether to use URL path condition.
path_regexStringPath regular expressionURL path pattern to match.
path_min_lenIntegerPath min lengthMinimum length of URL path to match.
path_case_sensitiveBoolPath case sensitiveWhether URL path matching is case sensitive.
use_user_agentBoolUse user agent conditionWhether to use User-Agent condition.
user_agent_regexStringUser agent regular expressionUser-Agent pattern to match.
user_agent_min_lenIntegerUser agent min lengthMinimum length of User-Agent to match.
user_agent_case_sensitiveBoolIs user agent case sensitiveWhether User-Agent matching is case sensitive.
use_headerBoolUse header conditionWhether to use HTTP header condition.
header_regexStringHeader regular expressionHTTP header pattern to match.
header_min_lenIntegerHeader min lengthMinimum length of HTTP header to match.
header_case_sensitiveBoolHeader case sensitiveWhether HTTP header matching is case sensitive.
use_cookieBoolUse cookie conditionWhether to use cookie condition.
cookie_regexStringCookie regular expressionCookie pattern to match.
cookie_min_lenIntegerCookie min lengthMinimum length of cookie to match.
cookie_case_sensitiveBoolCookie case sensitiveWhether cookie matching is case sensitive.
use_paramBoolUse parameter conditionWhether to use query parameter condition.
param_regexStringQuery parameter regular expressionQuery parameter pattern to match.
param_min_lenIntegerQuery parameter min lengthMinimum length of query parameter to match.
param_max_lenIntegerQuery parameter max lengthMaximum length of query parameter to match.
param_case_sensitiveBoolQuery parameter case sensitiveWhether query parameter matching is case sensitive.
use_queryBoolUse query conditionWhether to use full query condition.
query_regexStringQuery regular expressionFull query pattern to match.
query_min_lenIntegerQuery min lengthMinimum length of full query to match.
query_max_lenIntegerQuery max lengthMaximum length of full query to match.
query_case_sensitiveBoolQuery case sensitiveWhether full query matching is case sensitive.
use_file_nameBoolUse file name conditionWhether to use file name condition.
file_name_regexStringUpload file name regular expressionUpload file name pattern to match.
file_name_minIntegerUpload file name min lengthMinimum length of upload file name to match.
file_name_case_sensitiveBoolUpload file name case sensitiveWhether upload file name matching is case sensitive.
use_file_contentBoolUse file content conditionWhether to use file content condition.
file_content_regexStringUpload file content regular expressionUpload file content pattern to match.
file_content_min_lenIntegerUpload file content min lengthMinimum length of upload file content to match.
file_content_max_lenIntegerUpload file content max lengthMaximum length of upload file content to match.
file_content_case_sensitiveBoolUpload file content case sensitiveWhether upload file content matching is case sensitive.