Skip to main content

SecurityRule

Properties

PropertyTypeAttributesDescription
actionstringRequiredAction applied to matching requests (allow, block, challenge, js_challenge, managed_challenge, log)
expressionstringRequiredSecurity rule expression that defines matching traffic
namestringRequired, IdentifierThe logical name of the security rule
zoneIdstringRequired, IdentifierThe zone ID this security rule applies to
descriptionstringHuman friendly description shown in the Cloudflare dashboard
enabledboolWhether the rule is enabled (set to false to pause the rule)
referencestringOptional reference identifier persisted with the rule; defaults to the resource name on create
ruleIdstringCloudflare custom rule ID (output only)