你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ManagedRuleOverride Class

Defines a managed rule group override setting.

All required parameters must be populated in order to send to server.

Constructor

ManagedRuleOverride(*, rule_id: str, state: str | _models.ManagedRuleEnabledState | None = None, action: str | _models.ActionType | None = None, sensitivity: str | _models.SensitivityType | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
rule_id
str

Identifier for the managed rule. Required.

state

The state of the managed rule. Defaults to Disabled if not specified. Known values are: "Disabled" and "Enabled".

Default value: None
action

Describes the override action to be applied when rule matches. Known values are: "AnomalyScoring", "Allow", "Block", "Log", and "JSChallenge".

Default value: None
sensitivity

Describes the override sensitivity to be applied when rule matches. Known values are: "None", "Low", "Medium", and "High".

Default value: None

Variables

Name Description
rule_id
str

Identifier for the managed rule. Required.

state

The state of the managed rule. Defaults to Disabled if not specified. Known values are: "Disabled" and "Enabled".

action

Describes the override action to be applied when rule matches. Known values are: "AnomalyScoring", "Allow", "Block", "Log", and "JSChallenge".

sensitivity

Describes the override sensitivity to be applied when rule matches. Known values are: "None", "Low", "Medium", and "High".