Bicep 資源定義
firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Network/firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Network/firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts@2024-01-01' = {
parent: resourceSymbolicName
name: 'default'
properties: {
priority: int
ruleCollections: [
{
name: 'string'
priority: int
ruleCollectionType: 'string'
// For remaining properties, see FirewallPolicyRuleCollection objects
}
]
}
}
FirewallPolicyRuleCollection 物件
設定 ruleCollectionType 屬性
針對 FirewallPolicyFilterRuleCollection,請使用:
{
action: {
type: 'string'
}
ruleCollectionType: 'FirewallPolicyFilterRuleCollection'
rules: [
{
description: 'string'
name: 'string'
ruleType: 'string'
// For remaining properties, see FirewallPolicyRule objects
}
]
}
針對 FirewallPolicyNatRuleCollection,請使用:
{
action: {
type: 'string'
}
ruleCollectionType: 'FirewallPolicyNatRuleCollection'
rules: [
{
description: 'string'
name: 'string'
ruleType: 'string'
// For remaining properties, see FirewallPolicyRule objects
}
]
}
FirewallPolicyRule 物件
設定 ruleType 屬性以指定物件的類型。
針對 ApplicationRule,請使用:
{
destinationAddresses: [
'string'
]
fqdnTags: [
'string'
]
httpHeadersToInsert: [
{
headerName: 'string'
headerValue: 'string'
}
]
protocols: [
{
port: int
protocolType: 'string'
}
]
ruleType: 'ApplicationRule'
sourceAddresses: [
'string'
]
sourceIpGroups: [
'string'
]
targetFqdns: [
'string'
]
targetUrls: [
'string'
]
terminateTLS: bool
webCategories: [
'string'
]
}
針對 NatRule,請使用:
{
destinationAddresses: [
'string'
]
destinationPorts: [
'string'
]
ipProtocols: [
'string'
]
ruleType: 'NatRule'
sourceAddresses: [
'string'
]
sourceIpGroups: [
'string'
]
translatedAddress: 'string'
translatedFqdn: 'string'
translatedPort: 'string'
}
針對 NetworkRule,請使用:
{
destinationAddresses: [
'string'
]
destinationFqdns: [
'string'
]
destinationIpGroups: [
'string'
]
destinationPorts: [
'string'
]
ipProtocols: [
'string'
]
ruleType: 'NetworkRule'
sourceAddresses: [
'string'
]
sourceIpGroups: [
'string'
]
}
屬性值
Microsoft.Network/firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts
名稱 | 說明 | 價值觀 |
---|---|---|
名稱 | 資源名稱 | 'default' (必要) |
父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型資源的符號名稱: firewallPolicies/ruleCollectionGroups |
屬性 | 防火牆原則規則集合群組的屬性。 | FirewallPolicyRuleCollectionGroupDraftProperties |
ApplicationRule 應用程式規則
名稱 | 說明 | 價值觀 |
---|---|---|
destinationAddresses | 目的地 IP 位址或服務標籤的清單。 | 字串[] |
fqdn標籤 | 此規則的 FQDN 標籤清單。 | 字串[] |
httpHeadersToInsert | 要插入的 HTTP/S 標頭清單。 | FirewallPolicyHttpHeaderToInsert[] |
協定 | 應用程式通訊協議的陣列。 | FirewallPolicyRuleApplicationProtocol[] |
ruleType | 規則類型。 | 'ApplicationRule' (必要) |
sourceAddresses (源位址) | 此規則的來源IP位址清單。 | 字串[] |
源 IpGroups | 此規則的來源 IpGroup 清單。 | 字串[] |
targetFqdns | 此規則的 FQDN 清單。 | 字串[] |
targetUrls | 此規則條件的 URL 清單。 | 字串[] |
終止TLS | 終止此規則的 TLS 連線。 | 布爾 (bool) |
web類別 | 目的地 Azure Web 類別清單。 | 字串[] |
FirewallPolicyFilterRuleCollection
名稱 | 說明 | 價值觀 |
---|---|---|
動作 | 篩選規則集合的動作類型。 | FirewallPolicyFilterRuleCollectionAction |
ruleCollectionType | 規則集合的類型。 | 'FirewallPolicyFilterRuleCollection' (必要) |
規則 | 規則集合中包含的規則清單。 | FirewallPolicyRule[] |
FirewallPolicyFilterRuleCollectionAction
名稱 | 說明 | 價值觀 |
---|---|---|
型別 | 動作的類型。 | '允許' “否認” |
FirewallPolicyHttpHeaderToInsert
名稱 | 說明 | 價值觀 |
---|---|---|
headerName (標頭名稱) | 包含標頭的名稱 | 字串 |
headerValue | 包含標頭的值 | 字串 |
FirewallPolicyNatRuleCollection
名稱 | 說明 | 價值觀 |
---|---|---|
動作 | Nat 規則集合的動作類型。 | FirewallPolicyNatRuleCollectionAction |
ruleCollectionType | 規則集合的類型。 | 'FirewallPolicyNatRuleCollection' (必要) |
規則 | 規則集合中包含的規則清單。 | FirewallPolicyRule[] |
FirewallPolicyNatRuleCollectionAction
名稱 | 說明 | 價值觀 |
---|---|---|
型別 | 動作的類型。 | “DNAT” |
防火牆策略規則
名稱 | 說明 | 價值觀 |
---|---|---|
說明 | 規則的描述。 | 字串 |
名稱 | 規則的名稱。 | 字串 |
ruleType | 針對 ApplicationRule 類型,設定為 ' ApplicationRule'。 將 設定為 NatRule 類型的 『NatRule』。 針對 NetworkRule 類型,設定為 『 NetworkRule』。 | “ApplicationRule” 'NatRule' 'NetworkRule' (必要) |
FirewallPolicyRuleApplicationProtocol
名稱 | 說明 | 價值觀 |
---|---|---|
傳輸埠 | 通訊協定的埠號碼不能大於 64000。 | int 約束: 最小值 = 0 最大值 = 64000 |
protocolType 協議類型 | 通訊協定類型。 | 'Http' 'https' |
FirewallPolicyRuleCollection
名稱 | 說明 | 價值觀 |
---|---|---|
名稱 | 規則集合的名稱。 | 字串 |
優先權 | 防火牆原則規則集合資源的優先順序。 | int 約束: 最小值 = 100 最大值 = 65000 |
ruleCollectionType | 針對 FirewallPolicyFilterRuleCollection 類型,設定為 'FirewallPolicyFilterRuleCollection'。 針對 FirewallPolicyNatRuleCollection 類型,設定為 'FirewallPolicyNatRuleCollection'。 | “FirewallPolicyFilterRuleCollection” 'FirewallPolicyNatRuleCollection' (必要) |
FirewallPolicyRuleCollectionGroupDraftProperties
名稱 | 說明 | 價值觀 |
---|---|---|
優先權 | 防火牆原則規則集合群組資源的優先順序。 | int 約束: 最小值 = 100 最大值 = 65000 |
rule集合 | 防火牆原則規則集合群組。 | FirewallPolicyRuleCollection[] |
NatRule
名稱 | 說明 | 價值觀 |
---|---|---|
destinationAddresses | 目的地 IP 位址或服務標籤的清單。 | 字串[] |
destinationPorts | 目的地埠清單。 | 字串[] |
ip協定 | FirewallPolicyRuleNetworkProtocols 的陣列。 | 包含任何的字串數組: '任何' “國際馬檢站” “TCP” “UDP 協定” |
ruleType | 規則類型。 | 'NatRule' (必要) |
sourceAddresses (源位址) | 此規則的來源IP位址清單。 | 字串[] |
源 IpGroups | 此規則的來源 IpGroup 清單。 | 字串[] |
翻譯位址 | 此 NAT 規則的翻譯位址。 | 字串 |
翻譯 Fqdn | 此 NAT 規則的已翻譯 FQDN。 | 字串 |
翻譯埠 | 此 NAT 規則的轉譯埠。 | 字串 |
網路規則
名稱 | 說明 | 價值觀 |
---|---|---|
destinationAddresses | 目的地 IP 位址或服務標籤的清單。 | 字串[] |
destinationFqdns | 目的地 FQDN 的清單。 | 字串[] |
目標 IpGroups | 此規則的目的地 IpGroup 清單。 | 字串[] |
destinationPorts | 目的地埠清單。 | 字串[] |
ip協定 | FirewallPolicyRuleNetworkProtocols 的陣列。 | 包含任何的字串數組: '任何' “國際馬檢站” “TCP” “UDP 協定” |
ruleType | 規則類型。 | 'NetworkRule' (必要) |
sourceAddresses (源位址) | 此規則的來源IP位址清單。 | 字串[] |
源 IpGroups | 此規則的來源 IpGroup 清單。 | 字串[] |
ARM 樣本資源定義
firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Network/firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Network/firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts",
"apiVersion": "2024-01-01",
"name": "string",
"properties": {
"priority": "int",
"ruleCollections": [ {
"name": "string",
"priority": "int",
"ruleCollectionType": "string"
// For remaining properties, see FirewallPolicyRuleCollection objects
} ]
}
}
FirewallPolicyRuleCollection 物件
設定 ruleCollectionType 屬性
針對 FirewallPolicyFilterRuleCollection,請使用:
{
"action": {
"type": "string"
},
"ruleCollectionType": "FirewallPolicyFilterRuleCollection",
"rules": [ {
"description": "string",
"name": "string",
"ruleType": "string"
// For remaining properties, see FirewallPolicyRule objects
} ]
}
針對 FirewallPolicyNatRuleCollection,請使用:
{
"action": {
"type": "string"
},
"ruleCollectionType": "FirewallPolicyNatRuleCollection",
"rules": [ {
"description": "string",
"name": "string",
"ruleType": "string"
// For remaining properties, see FirewallPolicyRule objects
} ]
}
FirewallPolicyRule 物件
設定 ruleType 屬性以指定物件的類型。
針對 ApplicationRule,請使用:
{
"destinationAddresses": [ "string" ],
"fqdnTags": [ "string" ],
"httpHeadersToInsert": [
{
"headerName": "string",
"headerValue": "string"
}
],
"protocols": [
{
"port": "int",
"protocolType": "string"
}
],
"ruleType": "ApplicationRule",
"sourceAddresses": [ "string" ],
"sourceIpGroups": [ "string" ],
"targetFqdns": [ "string" ],
"targetUrls": [ "string" ],
"terminateTLS": "bool",
"webCategories": [ "string" ]
}
針對 NatRule,請使用:
{
"destinationAddresses": [ "string" ],
"destinationPorts": [ "string" ],
"ipProtocols": [ "string" ],
"ruleType": "NatRule",
"sourceAddresses": [ "string" ],
"sourceIpGroups": [ "string" ],
"translatedAddress": "string",
"translatedFqdn": "string",
"translatedPort": "string"
}
針對 NetworkRule,請使用:
{
"destinationAddresses": [ "string" ],
"destinationFqdns": [ "string" ],
"destinationIpGroups": [ "string" ],
"destinationPorts": [ "string" ],
"ipProtocols": [ "string" ],
"ruleType": "NetworkRule",
"sourceAddresses": [ "string" ],
"sourceIpGroups": [ "string" ]
}
屬性值
Microsoft.Network/firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts
名稱 | 說明 | 價值觀 |
---|---|---|
apiVersion | API 版本 | '2024-01-01' |
名稱 | 資源名稱 | 'default' (必要) |
屬性 | 防火牆原則規則集合群組的屬性。 | FirewallPolicyRuleCollectionGroupDraftProperties |
型別 | 資源類型 | “Microsoft.Network/firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts” |
ApplicationRule 應用程式規則
名稱 | 說明 | 價值觀 |
---|---|---|
destinationAddresses | 目的地 IP 位址或服務標籤的清單。 | 字串[] |
fqdn標籤 | 此規則的 FQDN 標籤清單。 | 字串[] |
httpHeadersToInsert | 要插入的 HTTP/S 標頭清單。 | FirewallPolicyHttpHeaderToInsert[] |
協定 | 應用程式通訊協議的陣列。 | FirewallPolicyRuleApplicationProtocol[] |
ruleType | 規則類型。 | 'ApplicationRule' (必要) |
sourceAddresses (源位址) | 此規則的來源IP位址清單。 | 字串[] |
源 IpGroups | 此規則的來源 IpGroup 清單。 | 字串[] |
targetFqdns | 此規則的 FQDN 清單。 | 字串[] |
targetUrls | 此規則條件的 URL 清單。 | 字串[] |
終止TLS | 終止此規則的 TLS 連線。 | 布爾 (bool) |
web類別 | 目的地 Azure Web 類別清單。 | 字串[] |
FirewallPolicyFilterRuleCollection
名稱 | 說明 | 價值觀 |
---|---|---|
動作 | 篩選規則集合的動作類型。 | FirewallPolicyFilterRuleCollectionAction |
ruleCollectionType | 規則集合的類型。 | 'FirewallPolicyFilterRuleCollection' (必要) |
規則 | 規則集合中包含的規則清單。 | FirewallPolicyRule[] |
FirewallPolicyFilterRuleCollectionAction
名稱 | 說明 | 價值觀 |
---|---|---|
型別 | 動作的類型。 | '允許' “否認” |
FirewallPolicyHttpHeaderToInsert
名稱 | 說明 | 價值觀 |
---|---|---|
headerName (標頭名稱) | 包含標頭的名稱 | 字串 |
headerValue | 包含標頭的值 | 字串 |
FirewallPolicyNatRuleCollection
名稱 | 說明 | 價值觀 |
---|---|---|
動作 | Nat 規則集合的動作類型。 | FirewallPolicyNatRuleCollectionAction |
ruleCollectionType | 規則集合的類型。 | 'FirewallPolicyNatRuleCollection' (必要) |
規則 | 規則集合中包含的規則清單。 | FirewallPolicyRule[] |
FirewallPolicyNatRuleCollectionAction
名稱 | 說明 | 價值觀 |
---|---|---|
型別 | 動作的類型。 | “DNAT” |
防火牆策略規則
名稱 | 說明 | 價值觀 |
---|---|---|
說明 | 規則的描述。 | 字串 |
名稱 | 規則的名稱。 | 字串 |
ruleType | 針對 ApplicationRule 類型,設定為 ' ApplicationRule'。 將 設定為 NatRule 類型的 『NatRule』。 針對 NetworkRule 類型,設定為 『 NetworkRule』。 | “ApplicationRule” 'NatRule' 'NetworkRule' (必要) |
FirewallPolicyRuleApplicationProtocol
名稱 | 說明 | 價值觀 |
---|---|---|
傳輸埠 | 通訊協定的埠號碼不能大於 64000。 | int 約束: 最小值 = 0 最大值 = 64000 |
protocolType 協議類型 | 通訊協定類型。 | 'Http' 'https' |
FirewallPolicyRuleCollection
名稱 | 說明 | 價值觀 |
---|---|---|
名稱 | 規則集合的名稱。 | 字串 |
優先權 | 防火牆原則規則集合資源的優先順序。 | int 約束: 最小值 = 100 最大值 = 65000 |
ruleCollectionType | 針對 FirewallPolicyFilterRuleCollection 類型,設定為 'FirewallPolicyFilterRuleCollection'。 針對 FirewallPolicyNatRuleCollection 類型,設定為 'FirewallPolicyNatRuleCollection'。 | “FirewallPolicyFilterRuleCollection” 'FirewallPolicyNatRuleCollection' (必要) |
FirewallPolicyRuleCollectionGroupDraftProperties
名稱 | 說明 | 價值觀 |
---|---|---|
優先權 | 防火牆原則規則集合群組資源的優先順序。 | int 約束: 最小值 = 100 最大值 = 65000 |
rule集合 | 防火牆原則規則集合群組。 | FirewallPolicyRuleCollection[] |
NatRule
名稱 | 說明 | 價值觀 |
---|---|---|
destinationAddresses | 目的地 IP 位址或服務標籤的清單。 | 字串[] |
destinationPorts | 目的地埠清單。 | 字串[] |
ip協定 | FirewallPolicyRuleNetworkProtocols 的陣列。 | 包含任何的字串數組: '任何' “國際馬檢站” “TCP” “UDP 協定” |
ruleType | 規則類型。 | 'NatRule' (必要) |
sourceAddresses (源位址) | 此規則的來源IP位址清單。 | 字串[] |
源 IpGroups | 此規則的來源 IpGroup 清單。 | 字串[] |
翻譯位址 | 此 NAT 規則的翻譯位址。 | 字串 |
翻譯 Fqdn | 此 NAT 規則的已翻譯 FQDN。 | 字串 |
翻譯埠 | 此 NAT 規則的轉譯埠。 | 字串 |
網路規則
名稱 | 說明 | 價值觀 |
---|---|---|
destinationAddresses | 目的地 IP 位址或服務標籤的清單。 | 字串[] |
destinationFqdns | 目的地 FQDN 的清單。 | 字串[] |
目標 IpGroups | 此規則的目的地 IpGroup 清單。 | 字串[] |
destinationPorts | 目的地埠清單。 | 字串[] |
ip協定 | FirewallPolicyRuleNetworkProtocols 的陣列。 | 包含任何的字串數組: '任何' “國際馬檢站” “TCP” “UDP 協定” |
ruleType | 規則類型。 | 'NetworkRule' (必要) |
sourceAddresses (源位址) | 此規則的來源IP位址清單。 | 字串[] |
源 IpGroups | 此規則的來源 IpGroup 清單。 | 字串[] |
使用範例
Terraform (AzAPI 提供者) 資源定義
firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts 資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立Microsoft.Network/firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts@2024-01-01"
name = "string"
parent_id = "string"
body = {
properties = {
priority = int
ruleCollections = [
{
name = "string"
priority = int
ruleCollectionType = "string"
// For remaining properties, see FirewallPolicyRuleCollection objects
}
]
}
}
}
FirewallPolicyRuleCollection 物件
設定 ruleCollectionType 屬性
針對 FirewallPolicyFilterRuleCollection,請使用:
{
action = {
type = "string"
}
ruleCollectionType = "FirewallPolicyFilterRuleCollection"
rules = [
{
description = "string"
name = "string"
ruleType = "string"
// For remaining properties, see FirewallPolicyRule objects
}
]
}
針對 FirewallPolicyNatRuleCollection,請使用:
{
action = {
type = "string"
}
ruleCollectionType = "FirewallPolicyNatRuleCollection"
rules = [
{
description = "string"
name = "string"
ruleType = "string"
// For remaining properties, see FirewallPolicyRule objects
}
]
}
FirewallPolicyRule 物件
設定 ruleType 屬性以指定物件的類型。
針對 ApplicationRule,請使用:
{
destinationAddresses = [
"string"
]
fqdnTags = [
"string"
]
httpHeadersToInsert = [
{
headerName = "string"
headerValue = "string"
}
]
protocols = [
{
port = int
protocolType = "string"
}
]
ruleType = "ApplicationRule"
sourceAddresses = [
"string"
]
sourceIpGroups = [
"string"
]
targetFqdns = [
"string"
]
targetUrls = [
"string"
]
terminateTLS = bool
webCategories = [
"string"
]
}
針對 NatRule,請使用:
{
destinationAddresses = [
"string"
]
destinationPorts = [
"string"
]
ipProtocols = [
"string"
]
ruleType = "NatRule"
sourceAddresses = [
"string"
]
sourceIpGroups = [
"string"
]
translatedAddress = "string"
translatedFqdn = "string"
translatedPort = "string"
}
針對 NetworkRule,請使用:
{
destinationAddresses = [
"string"
]
destinationFqdns = [
"string"
]
destinationIpGroups = [
"string"
]
destinationPorts = [
"string"
]
ipProtocols = [
"string"
]
ruleType = "NetworkRule"
sourceAddresses = [
"string"
]
sourceIpGroups = [
"string"
]
}
屬性值
Microsoft.Network/firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts
名稱 | 說明 | 價值觀 |
---|---|---|
名稱 | 資源名稱 | 'default' (必要) |
父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼: firewallPolicies/ruleCollectionGroups |
屬性 | 防火牆原則規則集合群組的屬性。 | FirewallPolicyRuleCollectionGroupDraftProperties |
型別 | 資源類型 | “Microsoft.Network/firewallPolicies/ruleCollectionGroups/ruleCollectionGroupDrafts@2024-01-01” |
ApplicationRule 應用程式規則
名稱 | 說明 | 價值觀 |
---|---|---|
destinationAddresses | 目的地 IP 位址或服務標籤的清單。 | 字串[] |
fqdn標籤 | 此規則的 FQDN 標籤清單。 | 字串[] |
httpHeadersToInsert | 要插入的 HTTP/S 標頭清單。 | FirewallPolicyHttpHeaderToInsert[] |
協定 | 應用程式通訊協議的陣列。 | FirewallPolicyRuleApplicationProtocol[] |
ruleType | 規則類型。 | 'ApplicationRule' (必要) |
sourceAddresses (源位址) | 此規則的來源IP位址清單。 | 字串[] |
源 IpGroups | 此規則的來源 IpGroup 清單。 | 字串[] |
targetFqdns | 此規則的 FQDN 清單。 | 字串[] |
targetUrls | 此規則條件的 URL 清單。 | 字串[] |
終止TLS | 終止此規則的 TLS 連線。 | 布爾 (bool) |
web類別 | 目的地 Azure Web 類別清單。 | 字串[] |
FirewallPolicyFilterRuleCollection
名稱 | 說明 | 價值觀 |
---|---|---|
動作 | 篩選規則集合的動作類型。 | FirewallPolicyFilterRuleCollectionAction |
ruleCollectionType | 規則集合的類型。 | 'FirewallPolicyFilterRuleCollection' (必要) |
規則 | 規則集合中包含的規則清單。 | FirewallPolicyRule[] |
FirewallPolicyFilterRuleCollectionAction
名稱 | 說明 | 價值觀 |
---|---|---|
型別 | 動作的類型。 | '允許' “否認” |
FirewallPolicyHttpHeaderToInsert
名稱 | 說明 | 價值觀 |
---|---|---|
headerName (標頭名稱) | 包含標頭的名稱 | 字串 |
headerValue | 包含標頭的值 | 字串 |
FirewallPolicyNatRuleCollection
名稱 | 說明 | 價值觀 |
---|---|---|
動作 | Nat 規則集合的動作類型。 | FirewallPolicyNatRuleCollectionAction |
ruleCollectionType | 規則集合的類型。 | 'FirewallPolicyNatRuleCollection' (必要) |
規則 | 規則集合中包含的規則清單。 | FirewallPolicyRule[] |
FirewallPolicyNatRuleCollectionAction
名稱 | 說明 | 價值觀 |
---|---|---|
型別 | 動作的類型。 | “DNAT” |
防火牆策略規則
名稱 | 說明 | 價值觀 |
---|---|---|
說明 | 規則的描述。 | 字串 |
名稱 | 規則的名稱。 | 字串 |
ruleType | 針對 ApplicationRule 類型,設定為 ' ApplicationRule'。 將 設定為 NatRule 類型的 『NatRule』。 針對 NetworkRule 類型,設定為 『 NetworkRule』。 | “ApplicationRule” 'NatRule' 'NetworkRule' (必要) |
FirewallPolicyRuleApplicationProtocol
名稱 | 說明 | 價值觀 |
---|---|---|
傳輸埠 | 通訊協定的埠號碼不能大於 64000。 | int 約束: 最小值 = 0 最大值 = 64000 |
protocolType 協議類型 | 通訊協定類型。 | 'Http' 'https' |
FirewallPolicyRuleCollection
名稱 | 說明 | 價值觀 |
---|---|---|
名稱 | 規則集合的名稱。 | 字串 |
優先權 | 防火牆原則規則集合資源的優先順序。 | int 約束: 最小值 = 100 最大值 = 65000 |
ruleCollectionType | 針對 FirewallPolicyFilterRuleCollection 類型,設定為 'FirewallPolicyFilterRuleCollection'。 針對 FirewallPolicyNatRuleCollection 類型,設定為 'FirewallPolicyNatRuleCollection'。 | “FirewallPolicyFilterRuleCollection” 'FirewallPolicyNatRuleCollection' (必要) |
FirewallPolicyRuleCollectionGroupDraftProperties
名稱 | 說明 | 價值觀 |
---|---|---|
優先權 | 防火牆原則規則集合群組資源的優先順序。 | int 約束: 最小值 = 100 最大值 = 65000 |
rule集合 | 防火牆原則規則集合群組。 | FirewallPolicyRuleCollection[] |
NatRule
名稱 | 說明 | 價值觀 |
---|---|---|
destinationAddresses | 目的地 IP 位址或服務標籤的清單。 | 字串[] |
destinationPorts | 目的地埠清單。 | 字串[] |
ip協定 | FirewallPolicyRuleNetworkProtocols 的陣列。 | 包含任何的字串數組: '任何' “國際馬檢站” “TCP” “UDP 協定” |
ruleType | 規則類型。 | 'NatRule' (必要) |
sourceAddresses (源位址) | 此規則的來源IP位址清單。 | 字串[] |
源 IpGroups | 此規則的來源 IpGroup 清單。 | 字串[] |
翻譯位址 | 此 NAT 規則的翻譯位址。 | 字串 |
翻譯 Fqdn | 此 NAT 規則的已翻譯 FQDN。 | 字串 |
翻譯埠 | 此 NAT 規則的轉譯埠。 | 字串 |
網路規則
名稱 | 說明 | 價值觀 |
---|---|---|
destinationAddresses | 目的地 IP 位址或服務標籤的清單。 | 字串[] |
destinationFqdns | 目的地 FQDN 的清單。 | 字串[] |
目標 IpGroups | 此規則的目的地 IpGroup 清單。 | 字串[] |
destinationPorts | 目的地埠清單。 | 字串[] |
ip協定 | FirewallPolicyRuleNetworkProtocols 的陣列。 | 包含任何的字串數組: '任何' “國際馬檢站” “TCP” “UDP 協定” |
ruleType | 規則類型。 | 'NetworkRule' (必要) |
sourceAddresses (源位址) | 此規則的來源IP位址清單。 | 字串[] |
源 IpGroups | 此規則的來源 IpGroup 清單。 | 字串[] |