New-AzEventGridInboundIPRuleObject
建立 InboundIPRule 的記憶體內部物件。
語法
New-AzEventGridInboundIPRuleObject
[-Action <String>]
[-IPMask <String>]
[<CommonParameters>]
Description
建立 InboundIPRule 的記憶體內部物件。
範例
範例 1:建立 InboundIPRule 的記憶體內部物件。
New-AzEventGridInboundIPRuleObject -Action Allow -IPMask "12.18.176.1"
Action IPMask
------ ------
Allow 12.18.176.1
建立 InboundIPRule 的記憶體內部物件。
參數
-Action
根據相符專案或 IpMask 不相符執行的動作。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-IPMask
CIDR 表示法中的IP位址,例如10.0.0.0.0/8。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |