1. Packages
  2. Azure Native v2
  3. API Docs
  4. network
  5. getPolicy
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.network.getPolicy

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Retrieve protection policy with specified name within a resource group. Azure REST API version: 2022-05-01.

Other available API versions: 2021-06-01, 2024-02-01.

Using getPolicy

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getPolicy(args: GetPolicyArgs, opts?: InvokeOptions): Promise<GetPolicyResult>
function getPolicyOutput(args: GetPolicyOutputArgs, opts?: InvokeOptions): Output<GetPolicyResult>
Copy
def get_policy(policy_name: Optional[str] = None,
               resource_group_name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetPolicyResult
def get_policy_output(policy_name: Optional[pulumi.Input[str]] = None,
               resource_group_name: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetPolicyResult]
Copy
func LookupPolicy(ctx *Context, args *LookupPolicyArgs, opts ...InvokeOption) (*LookupPolicyResult, error)
func LookupPolicyOutput(ctx *Context, args *LookupPolicyOutputArgs, opts ...InvokeOption) LookupPolicyResultOutput
Copy

> Note: This function is named LookupPolicy in the Go SDK.

public static class GetPolicy 
{
    public static Task<GetPolicyResult> InvokeAsync(GetPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetPolicyResult> Invoke(GetPolicyInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
public static Output<GetPolicyResult> getPolicy(GetPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:network:getPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PolicyName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Web Application Firewall Policy.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
PolicyName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Web Application Firewall Policy.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
policyName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Web Application Firewall Policy.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Resource group within the Azure subscription.
policyName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Web Application Firewall Policy.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
policy_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Web Application Firewall Policy.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Resource group within the Azure subscription.
policyName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Web Application Firewall Policy.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Resource group within the Azure subscription.

getPolicy Result

The following output properties are available:

FrontendEndpointLinks List<Pulumi.AzureNative.Network.Outputs.FrontendEndpointLinkResponse>
Describes Frontend Endpoints associated with this Web Application Firewall policy.
Id string
Resource ID.
Name string
Resource name.
ProvisioningState string
Provisioning state of the policy.
ResourceState string
RoutingRuleLinks List<Pulumi.AzureNative.Network.Outputs.RoutingRuleLinkResponse>
Describes Routing Rules associated with this Web Application Firewall policy.
SecurityPolicyLinks List<Pulumi.AzureNative.Network.Outputs.SecurityPolicyLinkResponse>
Describes Security Policy associated with this Web Application Firewall policy.
Type string
Resource type.
CustomRules Pulumi.AzureNative.Network.Outputs.CustomRuleListResponse
Describes custom rules inside the policy.
Etag string
Gets a unique read-only string that changes whenever the resource is updated.
Location string
Resource location.
ManagedRules Pulumi.AzureNative.Network.Outputs.ManagedRuleSetListResponse
Describes managed rules inside the policy.
PolicySettings Pulumi.AzureNative.Network.Outputs.FrontDoorPolicySettingsResponse
Describes settings for the policy.
Sku Pulumi.AzureNative.Network.Outputs.SkuResponse
The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified.
Tags Dictionary<string, string>
Resource tags.
FrontendEndpointLinks []FrontendEndpointLinkResponse
Describes Frontend Endpoints associated with this Web Application Firewall policy.
Id string
Resource ID.
Name string
Resource name.
ProvisioningState string
Provisioning state of the policy.
ResourceState string
RoutingRuleLinks []RoutingRuleLinkResponse
Describes Routing Rules associated with this Web Application Firewall policy.
SecurityPolicyLinks []SecurityPolicyLinkResponse
Describes Security Policy associated with this Web Application Firewall policy.
Type string
Resource type.
CustomRules CustomRuleListResponse
Describes custom rules inside the policy.
Etag string
Gets a unique read-only string that changes whenever the resource is updated.
Location string
Resource location.
ManagedRules ManagedRuleSetListResponse
Describes managed rules inside the policy.
PolicySettings FrontDoorPolicySettingsResponse
Describes settings for the policy.
Sku SkuResponse
The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified.
Tags map[string]string
Resource tags.
frontendEndpointLinks List<FrontendEndpointLinkResponse>
Describes Frontend Endpoints associated with this Web Application Firewall policy.
id String
Resource ID.
name String
Resource name.
provisioningState String
Provisioning state of the policy.
resourceState String
routingRuleLinks List<RoutingRuleLinkResponse>
Describes Routing Rules associated with this Web Application Firewall policy.
securityPolicyLinks List<SecurityPolicyLinkResponse>
Describes Security Policy associated with this Web Application Firewall policy.
type String
Resource type.
customRules CustomRuleListResponse
Describes custom rules inside the policy.
etag String
Gets a unique read-only string that changes whenever the resource is updated.
location String
Resource location.
managedRules ManagedRuleSetListResponse
Describes managed rules inside the policy.
policySettings FrontDoorPolicySettingsResponse
Describes settings for the policy.
sku SkuResponse
The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified.
tags Map<String,String>
Resource tags.
frontendEndpointLinks FrontendEndpointLinkResponse[]
Describes Frontend Endpoints associated with this Web Application Firewall policy.
id string
Resource ID.
name string
Resource name.
provisioningState string
Provisioning state of the policy.
resourceState string
routingRuleLinks RoutingRuleLinkResponse[]
Describes Routing Rules associated with this Web Application Firewall policy.
securityPolicyLinks SecurityPolicyLinkResponse[]
Describes Security Policy associated with this Web Application Firewall policy.
type string
Resource type.
customRules CustomRuleListResponse
Describes custom rules inside the policy.
etag string
Gets a unique read-only string that changes whenever the resource is updated.
location string
Resource location.
managedRules ManagedRuleSetListResponse
Describes managed rules inside the policy.
policySettings FrontDoorPolicySettingsResponse
Describes settings for the policy.
sku SkuResponse
The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified.
tags {[key: string]: string}
Resource tags.
frontend_endpoint_links Sequence[FrontendEndpointLinkResponse]
Describes Frontend Endpoints associated with this Web Application Firewall policy.
id str
Resource ID.
name str
Resource name.
provisioning_state str
Provisioning state of the policy.
resource_state str
routing_rule_links Sequence[RoutingRuleLinkResponse]
Describes Routing Rules associated with this Web Application Firewall policy.
security_policy_links Sequence[SecurityPolicyLinkResponse]
Describes Security Policy associated with this Web Application Firewall policy.
type str
Resource type.
custom_rules CustomRuleListResponse
Describes custom rules inside the policy.
etag str
Gets a unique read-only string that changes whenever the resource is updated.
location str
Resource location.
managed_rules ManagedRuleSetListResponse
Describes managed rules inside the policy.
policy_settings FrontDoorPolicySettingsResponse
Describes settings for the policy.
sku SkuResponse
The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified.
tags Mapping[str, str]
Resource tags.
frontendEndpointLinks List<Property Map>
Describes Frontend Endpoints associated with this Web Application Firewall policy.
id String
Resource ID.
name String
Resource name.
provisioningState String
Provisioning state of the policy.
resourceState String
routingRuleLinks List<Property Map>
Describes Routing Rules associated with this Web Application Firewall policy.
securityPolicyLinks List<Property Map>
Describes Security Policy associated with this Web Application Firewall policy.
type String
Resource type.
customRules Property Map
Describes custom rules inside the policy.
etag String
Gets a unique read-only string that changes whenever the resource is updated.
location String
Resource location.
managedRules Property Map
Describes managed rules inside the policy.
policySettings Property Map
Describes settings for the policy.
sku Property Map
The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified.
tags Map<String>
Resource tags.

Supporting Types

CustomRuleListResponse

CustomRuleResponse

Action This property is required. string
Describes what action to be applied when rule matches.
MatchConditions This property is required. List<Pulumi.AzureNative.Network.Inputs.FrontDoorMatchConditionResponse>
List of match conditions.
Priority This property is required. int
Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
RuleType This property is required. string
Describes type of rule.
EnabledState string
Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
Name string
Describes the name of the rule.
RateLimitDurationInMinutes int
Time window for resetting the rate limit count. Default is 1 minute.
RateLimitThreshold int
Number of allowed requests per client within the time window.
Action This property is required. string
Describes what action to be applied when rule matches.
MatchConditions This property is required. []FrontDoorMatchConditionResponse
List of match conditions.
Priority This property is required. int
Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
RuleType This property is required. string
Describes type of rule.
EnabledState string
Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
Name string
Describes the name of the rule.
RateLimitDurationInMinutes int
Time window for resetting the rate limit count. Default is 1 minute.
RateLimitThreshold int
Number of allowed requests per client within the time window.
action This property is required. String
Describes what action to be applied when rule matches.
matchConditions This property is required. List<FrontDoorMatchConditionResponse>
List of match conditions.
priority This property is required. Integer
Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
ruleType This property is required. String
Describes type of rule.
enabledState String
Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
name String
Describes the name of the rule.
rateLimitDurationInMinutes Integer
Time window for resetting the rate limit count. Default is 1 minute.
rateLimitThreshold Integer
Number of allowed requests per client within the time window.
action This property is required. string
Describes what action to be applied when rule matches.
matchConditions This property is required. FrontDoorMatchConditionResponse[]
List of match conditions.
priority This property is required. number
Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
ruleType This property is required. string
Describes type of rule.
enabledState string
Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
name string
Describes the name of the rule.
rateLimitDurationInMinutes number
Time window for resetting the rate limit count. Default is 1 minute.
rateLimitThreshold number
Number of allowed requests per client within the time window.
action This property is required. str
Describes what action to be applied when rule matches.
match_conditions This property is required. Sequence[FrontDoorMatchConditionResponse]
List of match conditions.
priority This property is required. int
Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
rule_type This property is required. str
Describes type of rule.
enabled_state str
Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
name str
Describes the name of the rule.
rate_limit_duration_in_minutes int
Time window for resetting the rate limit count. Default is 1 minute.
rate_limit_threshold int
Number of allowed requests per client within the time window.
action This property is required. String
Describes what action to be applied when rule matches.
matchConditions This property is required. List<Property Map>
List of match conditions.
priority This property is required. Number
Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.
ruleType This property is required. String
Describes type of rule.
enabledState String
Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
name String
Describes the name of the rule.
rateLimitDurationInMinutes Number
Time window for resetting the rate limit count. Default is 1 minute.
rateLimitThreshold Number
Number of allowed requests per client within the time window.

FrontDoorManagedRuleGroupOverrideResponse

RuleGroupName This property is required. string
Describes the managed rule group to override.
Exclusions List<Pulumi.AzureNative.Network.Inputs.ManagedRuleExclusionResponse>
Describes the exclusions that are applied to all rules in the group.
Rules List<Pulumi.AzureNative.Network.Inputs.FrontDoorManagedRuleOverrideResponse>
List of rules that will be disabled. If none specified, all rules in the group will be disabled.
RuleGroupName This property is required. string
Describes the managed rule group to override.
Exclusions []ManagedRuleExclusionResponse
Describes the exclusions that are applied to all rules in the group.
Rules []FrontDoorManagedRuleOverrideResponse
List of rules that will be disabled. If none specified, all rules in the group will be disabled.
ruleGroupName This property is required. String
Describes the managed rule group to override.
exclusions List<ManagedRuleExclusionResponse>
Describes the exclusions that are applied to all rules in the group.
rules List<FrontDoorManagedRuleOverrideResponse>
List of rules that will be disabled. If none specified, all rules in the group will be disabled.
ruleGroupName This property is required. string
Describes the managed rule group to override.
exclusions ManagedRuleExclusionResponse[]
Describes the exclusions that are applied to all rules in the group.
rules FrontDoorManagedRuleOverrideResponse[]
List of rules that will be disabled. If none specified, all rules in the group will be disabled.
rule_group_name This property is required. str
Describes the managed rule group to override.
exclusions Sequence[ManagedRuleExclusionResponse]
Describes the exclusions that are applied to all rules in the group.
rules Sequence[FrontDoorManagedRuleOverrideResponse]
List of rules that will be disabled. If none specified, all rules in the group will be disabled.
ruleGroupName This property is required. String
Describes the managed rule group to override.
exclusions List<Property Map>
Describes the exclusions that are applied to all rules in the group.
rules List<Property Map>
List of rules that will be disabled. If none specified, all rules in the group will be disabled.

FrontDoorManagedRuleOverrideResponse

RuleId This property is required. string
Identifier for the managed rule.
Action string
Describes the override action to be applied when rule matches.
EnabledState string
Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
Exclusions List<Pulumi.AzureNative.Network.Inputs.ManagedRuleExclusionResponse>
Describes the exclusions that are applied to this specific rule.
RuleId This property is required. string
Identifier for the managed rule.
Action string
Describes the override action to be applied when rule matches.
EnabledState string
Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
Exclusions []ManagedRuleExclusionResponse
Describes the exclusions that are applied to this specific rule.
ruleId This property is required. String
Identifier for the managed rule.
action String
Describes the override action to be applied when rule matches.
enabledState String
Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
exclusions List<ManagedRuleExclusionResponse>
Describes the exclusions that are applied to this specific rule.
ruleId This property is required. string
Identifier for the managed rule.
action string
Describes the override action to be applied when rule matches.
enabledState string
Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
exclusions ManagedRuleExclusionResponse[]
Describes the exclusions that are applied to this specific rule.
rule_id This property is required. str
Identifier for the managed rule.
action str
Describes the override action to be applied when rule matches.
enabled_state str
Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
exclusions Sequence[ManagedRuleExclusionResponse]
Describes the exclusions that are applied to this specific rule.
ruleId This property is required. String
Identifier for the managed rule.
action String
Describes the override action to be applied when rule matches.
enabledState String
Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
exclusions List<Property Map>
Describes the exclusions that are applied to this specific rule.

FrontDoorManagedRuleSetResponse

RuleSetType This property is required. string
Defines the rule set type to use.
RuleSetVersion This property is required. string
Defines the version of the rule set to use.
Exclusions List<Pulumi.AzureNative.Network.Inputs.ManagedRuleExclusionResponse>
Describes the exclusions that are applied to all rules in the set.
RuleGroupOverrides List<Pulumi.AzureNative.Network.Inputs.FrontDoorManagedRuleGroupOverrideResponse>
Defines the rule group overrides to apply to the rule set.
RuleSetAction string
Defines the rule set action.
RuleSetType This property is required. string
Defines the rule set type to use.
RuleSetVersion This property is required. string
Defines the version of the rule set to use.
Exclusions []ManagedRuleExclusionResponse
Describes the exclusions that are applied to all rules in the set.
RuleGroupOverrides []FrontDoorManagedRuleGroupOverrideResponse
Defines the rule group overrides to apply to the rule set.
RuleSetAction string
Defines the rule set action.
ruleSetType This property is required. String
Defines the rule set type to use.
ruleSetVersion This property is required. String
Defines the version of the rule set to use.
exclusions List<ManagedRuleExclusionResponse>
Describes the exclusions that are applied to all rules in the set.
ruleGroupOverrides List<FrontDoorManagedRuleGroupOverrideResponse>
Defines the rule group overrides to apply to the rule set.
ruleSetAction String
Defines the rule set action.
ruleSetType This property is required. string
Defines the rule set type to use.
ruleSetVersion This property is required. string
Defines the version of the rule set to use.
exclusions ManagedRuleExclusionResponse[]
Describes the exclusions that are applied to all rules in the set.
ruleGroupOverrides FrontDoorManagedRuleGroupOverrideResponse[]
Defines the rule group overrides to apply to the rule set.
ruleSetAction string
Defines the rule set action.
rule_set_type This property is required. str
Defines the rule set type to use.
rule_set_version This property is required. str
Defines the version of the rule set to use.
exclusions Sequence[ManagedRuleExclusionResponse]
Describes the exclusions that are applied to all rules in the set.
rule_group_overrides Sequence[FrontDoorManagedRuleGroupOverrideResponse]
Defines the rule group overrides to apply to the rule set.
rule_set_action str
Defines the rule set action.
ruleSetType This property is required. String
Defines the rule set type to use.
ruleSetVersion This property is required. String
Defines the version of the rule set to use.
exclusions List<Property Map>
Describes the exclusions that are applied to all rules in the set.
ruleGroupOverrides List<Property Map>
Defines the rule group overrides to apply to the rule set.
ruleSetAction String
Defines the rule set action.

FrontDoorMatchConditionResponse

MatchValue This property is required. List<string>
List of possible match values.
MatchVariable This property is required. string
Request variable to compare with.
Operator This property is required. string
Comparison type to use for matching with the variable value.
NegateCondition bool
Describes if the result of this condition should be negated.
Selector string
Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.
Transforms List<string>
List of transforms.
MatchValue This property is required. []string
List of possible match values.
MatchVariable This property is required. string
Request variable to compare with.
Operator This property is required. string
Comparison type to use for matching with the variable value.
NegateCondition bool
Describes if the result of this condition should be negated.
Selector string
Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.
Transforms []string
List of transforms.
matchValue This property is required. List<String>
List of possible match values.
matchVariable This property is required. String
Request variable to compare with.
operator This property is required. String
Comparison type to use for matching with the variable value.
negateCondition Boolean
Describes if the result of this condition should be negated.
selector String
Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.
transforms List<String>
List of transforms.
matchValue This property is required. string[]
List of possible match values.
matchVariable This property is required. string
Request variable to compare with.
operator This property is required. string
Comparison type to use for matching with the variable value.
negateCondition boolean
Describes if the result of this condition should be negated.
selector string
Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.
transforms string[]
List of transforms.
match_value This property is required. Sequence[str]
List of possible match values.
match_variable This property is required. str
Request variable to compare with.
operator This property is required. str
Comparison type to use for matching with the variable value.
negate_condition bool
Describes if the result of this condition should be negated.
selector str
Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.
transforms Sequence[str]
List of transforms.
matchValue This property is required. List<String>
List of possible match values.
matchVariable This property is required. String
Request variable to compare with.
operator This property is required. String
Comparison type to use for matching with the variable value.
negateCondition Boolean
Describes if the result of this condition should be negated.
selector String
Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.
transforms List<String>
List of transforms.

FrontDoorPolicySettingsResponse

CustomBlockResponseBody string
If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
CustomBlockResponseStatusCode int
If the action type is block, customer can override the response status code.
EnabledState string
Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
Mode string
Describes if it is in detection mode or prevention mode at policy level.
RedirectUrl string
If action type is redirect, this field represents redirect URL for the client.
RequestBodyCheck string
Describes if policy managed rules will inspect the request body content.
CustomBlockResponseBody string
If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
CustomBlockResponseStatusCode int
If the action type is block, customer can override the response status code.
EnabledState string
Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
Mode string
Describes if it is in detection mode or prevention mode at policy level.
RedirectUrl string
If action type is redirect, this field represents redirect URL for the client.
RequestBodyCheck string
Describes if policy managed rules will inspect the request body content.
customBlockResponseBody String
If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
customBlockResponseStatusCode Integer
If the action type is block, customer can override the response status code.
enabledState String
Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
mode String
Describes if it is in detection mode or prevention mode at policy level.
redirectUrl String
If action type is redirect, this field represents redirect URL for the client.
requestBodyCheck String
Describes if policy managed rules will inspect the request body content.
customBlockResponseBody string
If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
customBlockResponseStatusCode number
If the action type is block, customer can override the response status code.
enabledState string
Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
mode string
Describes if it is in detection mode or prevention mode at policy level.
redirectUrl string
If action type is redirect, this field represents redirect URL for the client.
requestBodyCheck string
Describes if policy managed rules will inspect the request body content.
custom_block_response_body str
If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
custom_block_response_status_code int
If the action type is block, customer can override the response status code.
enabled_state str
Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
mode str
Describes if it is in detection mode or prevention mode at policy level.
redirect_url str
If action type is redirect, this field represents redirect URL for the client.
request_body_check str
Describes if policy managed rules will inspect the request body content.
customBlockResponseBody String
If the action type is block, customer can override the response body. The body must be specified in base64 encoding.
customBlockResponseStatusCode Number
If the action type is block, customer can override the response status code.
enabledState String
Describes if the policy is in enabled or disabled state. Defaults to Enabled if not specified.
mode String
Describes if it is in detection mode or prevention mode at policy level.
redirectUrl String
If action type is redirect, this field represents redirect URL for the client.
requestBodyCheck String
Describes if policy managed rules will inspect the request body content.

FrontendEndpointLinkResponse

Id string
Resource ID.
Id string
Resource ID.
id String
Resource ID.
id string
Resource ID.
id str
Resource ID.
id String
Resource ID.

ManagedRuleExclusionResponse

MatchVariable This property is required. string
The variable type to be excluded.
Selector This property is required. string
Selector value for which elements in the collection this exclusion applies to.
SelectorMatchOperator This property is required. string
Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.
MatchVariable This property is required. string
The variable type to be excluded.
Selector This property is required. string
Selector value for which elements in the collection this exclusion applies to.
SelectorMatchOperator This property is required. string
Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.
matchVariable This property is required. String
The variable type to be excluded.
selector This property is required. String
Selector value for which elements in the collection this exclusion applies to.
selectorMatchOperator This property is required. String
Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.
matchVariable This property is required. string
The variable type to be excluded.
selector This property is required. string
Selector value for which elements in the collection this exclusion applies to.
selectorMatchOperator This property is required. string
Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.
match_variable This property is required. str
The variable type to be excluded.
selector This property is required. str
Selector value for which elements in the collection this exclusion applies to.
selector_match_operator This property is required. str
Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.
matchVariable This property is required. String
The variable type to be excluded.
selector This property is required. String
Selector value for which elements in the collection this exclusion applies to.
selectorMatchOperator This property is required. String
Comparison operator to apply to the selector when specifying which elements in the collection this exclusion applies to.

ManagedRuleSetListResponse

RoutingRuleLinkResponse

Id string
Resource ID.
Id string
Resource ID.
id String
Resource ID.
id string
Resource ID.
id str
Resource ID.
id String
Resource ID.

SecurityPolicyLinkResponse

Id string
Resource ID.
Id string
Resource ID.
id String
Resource ID.
id string
Resource ID.
id str
Resource ID.
id String
Resource ID.

SkuResponse

Name string
Name of the pricing tier.
Name string
Name of the pricing tier.
name String
Name of the pricing tier.
name string
Name of the pricing tier.
name str
Name of the pricing tier.
name String
Name of the pricing tier.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi