Firewall Policy Rule Collection Group Drafts - Get
Get Rule Collection Group Draft.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}/ruleCollectionGroupDrafts/default?api-version=2024-03-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
firewall
|
path | True |
string |
The name of the Firewall Policy. Regex pattern: |
resource
|
path | True |
string |
The name of the resource group. |
rule
|
path | True |
string |
The name of the FirewallPolicyRuleCollectionGroup. Regex pattern: |
subscription
|
path | True |
string |
The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
Client API version. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Request successful. The operation returns a Firewall Policy Rule Collection Group Draft resource. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
get rule collection group draft
Sample request
Sample response
{
"name": "ruleCollectionGroup1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/ruleCollectionGroups/ruleCollectionGroup1",
"properties": {
"priority": 110,
"ruleCollections": [
{
"ruleCollectionType": "FirewallPolicyFilterRuleCollection",
"name": "Example-Filter-Rule-Collection",
"priority": 200,
"action": {
"type": "Deny"
},
"rules": [
{
"ruleType": "NetworkRule",
"name": "network-rule1",
"sourceAddresses": [
"10.1.25.0/24"
],
"destinationAddresses": [
"*"
],
"ipProtocols": [
"TCP"
],
"destinationPorts": [
"*"
]
}
]
}
]
}
}
Definitions
Name | Description |
---|---|
Application |
Rule of type application. |
Cloud |
An error response from the service. |
Cloud |
An error response from the service. |
Firewall |
Firewall Policy Filter Rule Collection. |
Firewall |
Properties of the FirewallPolicyFilterRuleCollectionAction. |
Firewall |
The action type of a rule. |
Firewall |
name and value of HTTP/S header to insert |
Firewall |
Firewall Policy NAT Rule Collection. |
Firewall |
Properties of the FirewallPolicyNatRuleCollectionAction. |
Firewall |
The action type of a rule. |
Firewall |
Properties of the application rule protocol. |
Firewall |
The application protocol type of a Rule. |
Firewall |
Rule Collection Group resource. |
Firewall |
The Network protocol of a Rule. |
Nat |
Rule of type nat. |
Network |
Rule of type network. |
ApplicationRule
Rule of type application.
Name | Type | Description |
---|---|---|
description |
string |
Description of the rule. |
destinationAddresses |
string[] |
List of destination IP addresses or Service Tags. |
fqdnTags |
string[] |
List of FQDN Tags for this rule. |
httpHeadersToInsert |
List of HTTP/S headers to insert. |
|
name |
string |
Name of the rule. |
protocols |
Array of Application Protocols. |
|
ruleType | string: |
Rule Type. |
sourceAddresses |
string[] |
List of source IP addresses for this rule. |
sourceIpGroups |
string[] |
List of source IpGroups for this rule. |
targetFqdns |
string[] |
List of FQDNs for this rule. |
targetUrls |
string[] |
List of Urls for this rule condition. |
terminateTLS |
boolean |
Terminate TLS connections for this rule. |
webCategories |
string[] |
List of destination azure web categories. |
CloudError
An error response from the service.
Name | Type | Description |
---|---|---|
error |
Cloud error body. |
CloudErrorBody
An error response from the service.
Name | Type | Description |
---|---|---|
code |
string |
An identifier for the error. Codes are invariant and are intended to be consumed programmatically. |
details |
A list of additional details about the error. |
|
message |
string |
A message describing the error, intended to be suitable for display in a user interface. |
target |
string |
The target of the particular error. For example, the name of the property in error. |
FirewallPolicyFilterRuleCollection
Firewall Policy Filter Rule Collection.
Name | Type | Description |
---|---|---|
action |
The action type of a Filter rule collection. |
|
name |
string |
The name of the rule collection. |
priority |
integer |
Priority of the Firewall Policy Rule Collection resource. |
ruleCollectionType | string: |
The type of the rule collection. |
rules | FirewallPolicyRule[]: |
List of rules included in a rule collection. |
FirewallPolicyFilterRuleCollectionAction
Properties of the FirewallPolicyFilterRuleCollectionAction.
Name | Type | Description |
---|---|---|
type |
The type of action. |
FirewallPolicyFilterRuleCollectionActionType
The action type of a rule.
Name | Type | Description |
---|---|---|
Allow |
string |
|
Deny |
string |
FirewallPolicyHttpHeaderToInsert
name and value of HTTP/S header to insert
Name | Type | Description |
---|---|---|
headerName |
string |
Contains the name of the header |
headerValue |
string |
Contains the value of the header |
FirewallPolicyNatRuleCollection
Firewall Policy NAT Rule Collection.
Name | Type | Description |
---|---|---|
action |
The action type of a Nat rule collection. |
|
name |
string |
The name of the rule collection. |
priority |
integer |
Priority of the Firewall Policy Rule Collection resource. |
ruleCollectionType | string: |
The type of the rule collection. |
rules | FirewallPolicyRule[]: |
List of rules included in a rule collection. |
FirewallPolicyNatRuleCollectionAction
Properties of the FirewallPolicyNatRuleCollectionAction.
Name | Type | Description |
---|---|---|
type |
The type of action. |
FirewallPolicyNatRuleCollectionActionType
The action type of a rule.
Name | Type | Description |
---|---|---|
DNAT |
string |
FirewallPolicyRuleApplicationProtocol
Properties of the application rule protocol.
Name | Type | Description |
---|---|---|
port |
integer |
Port number for the protocol, cannot be greater than 64000. |
protocolType |
Protocol type. |
FirewallPolicyRuleApplicationProtocolType
The application protocol type of a Rule.
Name | Type | Description |
---|---|---|
Http |
string |
|
Https |
string |
FirewallPolicyRuleCollectionGroupDraft
Rule Collection Group resource.
Name | Type | Description |
---|---|---|
id |
string |
Resource ID. |
name |
string |
The name of the resource that is unique within a resource group. This name can be used to access the resource. |
properties.priority |
integer |
Priority of the Firewall Policy Rule Collection Group resource. |
properties.ruleCollections | FirewallPolicyRuleCollection[]: |
Group of Firewall Policy rule collections. |
properties.size |
string |
A read-only string that represents the size of the FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB) |
type |
string |
Rule Group type. |
FirewallPolicyRuleNetworkProtocol
The Network protocol of a Rule.
Name | Type | Description |
---|---|---|
Any |
string |
|
ICMP |
string |
|
TCP |
string |
|
UDP |
string |
NatRule
Rule of type nat.
Name | Type | Description |
---|---|---|
description |
string |
Description of the rule. |
destinationAddresses |
string[] |
List of destination IP addresses or Service Tags. |
destinationPorts |
string[] |
List of destination ports. |
ipProtocols |
Array of FirewallPolicyRuleNetworkProtocols. |
|
name |
string |
Name of the rule. |
ruleType | string: |
Rule Type. |
sourceAddresses |
string[] |
List of source IP addresses for this rule. |
sourceIpGroups |
string[] |
List of source IpGroups for this rule. |
translatedAddress |
string |
The translated address for this NAT rule. |
translatedFqdn |
string |
The translated FQDN for this NAT rule. |
translatedPort |
string |
The translated port for this NAT rule. |
NetworkRule
Rule of type network.
Name | Type | Description |
---|---|---|
description |
string |
Description of the rule. |
destinationAddresses |
string[] |
List of destination IP addresses or Service Tags. |
destinationFqdns |
string[] |
List of destination FQDNs. |
destinationIpGroups |
string[] |
List of destination IpGroups for this rule. |
destinationPorts |
string[] |
List of destination ports. |
ipProtocols |
Array of FirewallPolicyRuleNetworkProtocols. |
|
name |
string |
Name of the rule. |
ruleType | string: |
Rule Type. |
sourceAddresses |
string[] |
List of source IP addresses for this rule. |
sourceIpGroups |
string[] |
List of source IpGroups for this rule. |