Compartir a través de


ArmFrontDoorModelFactory.RoutingRuleData Method

Definition

Initializes a new instance of RoutingRuleData.

public static Azure.ResourceManager.FrontDoor.Models.RoutingRuleData RoutingRuleData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WritableSubResource> frontendEndpoints = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.FrontDoor.Models.FrontDoorProtocol> acceptedProtocols = default, System.Collections.Generic.IEnumerable<string> patternsToMatch = default, Azure.ResourceManager.FrontDoor.Models.RoutingRuleEnabledState? enabledState = default, Azure.ResourceManager.FrontDoor.Models.RouteConfiguration routeConfiguration = default, Azure.Core.ResourceIdentifier rulesEngineId = default, Azure.Core.ResourceIdentifier webApplicationFirewallPolicyLinkId = default, Azure.ResourceManager.FrontDoor.Models.FrontDoorResourceState? resourceState = default);
static member RoutingRuleData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * seq<Azure.ResourceManager.Resources.Models.WritableSubResource> * seq<Azure.ResourceManager.FrontDoor.Models.FrontDoorProtocol> * seq<string> * Nullable<Azure.ResourceManager.FrontDoor.Models.RoutingRuleEnabledState> * Azure.ResourceManager.FrontDoor.Models.RouteConfiguration * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.FrontDoor.Models.FrontDoorResourceState> -> Azure.ResourceManager.FrontDoor.Models.RoutingRuleData
Public Shared Function RoutingRuleData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional frontendEndpoints As IEnumerable(Of WritableSubResource) = Nothing, Optional acceptedProtocols As IEnumerable(Of FrontDoorProtocol) = Nothing, Optional patternsToMatch As IEnumerable(Of String) = Nothing, Optional enabledState As Nullable(Of RoutingRuleEnabledState) = Nothing, Optional routeConfiguration As RouteConfiguration = Nothing, Optional rulesEngineId As ResourceIdentifier = Nothing, Optional webApplicationFirewallPolicyLinkId As ResourceIdentifier = Nothing, Optional resourceState As Nullable(Of FrontDoorResourceState) = Nothing) As RoutingRuleData

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

frontendEndpoints
IEnumerable<WritableSubResource>

Frontend endpoints associated with this rule.

acceptedProtocols
IEnumerable<FrontDoorProtocol>

Protocol schemes to match for this rule.

patternsToMatch
IEnumerable<String>

The route patterns of the rule.

enabledState
Nullable<RoutingRuleEnabledState>

Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.

routeConfiguration
RouteConfiguration

A reference to the routing configuration. Please note RouteConfiguration is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ForwardingConfiguration and RedirectConfiguration.

rulesEngineId
ResourceIdentifier

A reference to a specific Rules Engine Configuration to apply to this route.

webApplicationFirewallPolicyLinkId
ResourceIdentifier

Defines the Web Application Firewall policy for each routing rule (if applicable).

resourceState
Nullable<FrontDoorResourceState>

Resource status.

Returns

A new RoutingRuleData instance for mocking.

Applies to