New-AzFrontDoorWafCustomRuleObject
WAF ilkesi oluşturma için CustomRule Nesnesi Oluşturma
Syntax
New-AzFrontDoorWafCustomRuleObject
-Name <String>
-RuleType <String>
-MatchCondition <PSMatchCondition[]>
-Action <String>
-Priority <Int32>
[-RateLimitDurationInMinutes <Int32>]
[-RateLimitThreshold <Int32>]
[-EnabledState <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
WAF ilkesi oluşturma için CustomRule Nesnesi Oluşturma
Örnekler
Örnek 1
New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2
Name RuleType Action Priority RateLimitDurationInMinutes
---- -------- ------ -------- --------------------------
Rule1 MatchRule Block 2 1
CustomRule Nesnesi Oluşturma
Parametreler
-Action
Eylemlerin Türü. Olası değerler şunlardır: 'allow', 'Block', 'Log'
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Azure ile iletişim için kullanılan kimlik bilgileri, hesap, kiracı ve abonelik.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnabledState
Etkin Durum. Olası değerler şunlardır: 'Enabled', 'Disabled'.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MatchCondition
Eşleşme koşullarının listesi.
Type: | PSMatchCondition[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Kuralın adı
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Priority
Kuralın önceliğini açıklar.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RateLimitDurationInMinutes
Hız sınırı süresi. Varsayılan - 1 dakika
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RateLimitThreshold
Hız sınırı eşiği
Type: | Nullable<T>[Int32] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RuleType
Kuralın türü. Olası değerler şunlardır: 'MatchRule', 'RateLimitRule'
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Girişler
None