Share via


RulesEngineRule Class

Definition

Contains a list of match conditions, and an action on how to modify the request/response. If multiple rules match, the actions from one rule that conflict with a previous rule overwrite for a singular action, or append in the case of headers manipulation.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter))]
public class RulesEngineRule : Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.RulesEngineRuleTypeConverter))>]
type RulesEngineRule = class
    interface IRulesEngineRule
    interface IJsonSerializable
Public Class RulesEngineRule
Implements IRulesEngineRule
Inheritance
RulesEngineRule
Attributes
Implements

Constructors

Name Description
RulesEngineRule()

Creates an new RulesEngineRule instance.

Properties

Name Description
Action

Actions to perform on the request and response if all of the match conditions are met.

MatchCondition

A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.

MatchProcessingBehavior

If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.

Name

A name to refer to this specific rule.

Priority

A priority assigned to this rule.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of RulesEngineRule.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of RulesEngineRule.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.FrontDoor.Models.IRulesEngineRule.

FromJsonString(String)

Creates a new instance of RulesEngineRule, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of RulesEngineRule into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to