Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph.networkaccess
Important
APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Represents a firewall rule that defines conditions and actions for network traffic filtering within a cloud firewall policy. Each rule specifies matching conditions for source and destination addresses, ports, and protocols, along with an action to take when traffic matches the conditions.
Inherits from microsoft.graph.networkaccess.policyRule.
Methods
| Method | Return type | Description |
|---|---|---|
| List | microsoft.graph.networkaccess.cloudFirewallRule collection | Get a list of the cloudFirewallRule objects and their properties. |
| Create | microsoft.graph.networkaccess.cloudFirewallRule | Create a new cloudFirewallRule object. |
| Get | microsoft.graph.networkaccess.cloudFirewallRule | Read the properties and relationships of a cloudFirewallRule object. |
| Update | None | Update the properties of a cloudFirewallRule object. |
| Delete | None | Delete a cloudFirewallRule object. |
Properties
| Property | Type | Description |
|---|---|---|
| action | microsoft.graph.networkaccess.cloudFirewallAction | The action to take when traffic matches the rule conditions. The possible values are: allow, block, unknownFutureValue. Required. |
| description | String | A human-readable description of the rule's purpose. Optional. |
| id | String | A unique identifier for the rule. Inherited from microsoft.graph.entity. Key. Not nullable. Read-only. |
| matchingConditions | microsoft.graph.networkaccess.cloudFirewallMatchingConditions | The conditions that network traffic must match for the rule to apply. Required. |
| name | String | A unique display name for the rule. Inherited from microsoft.graph.networkaccess.policyRule. Required. |
| priority | Int64 | A unique priority value that determines the rule evaluation order; lower values are evaluated first. Required. |
| settings | microsoft.graph.networkaccess.cloudFirewallRuleSettings | Configuration settings for the rule, including the enabled or disabled status. Required. |
Relationships
None.
JSON representation
The following JSON representation shows the resource type.
{
"@odata.type": "#microsoft.graph.networkaccess.cloudFirewallRule",
"id": "String (identifier)",
"name": "String",
"description": "String",
"priority": "Integer",
"action": "String",
"settings": {
"@odata.type": "microsoft.graph.networkaccess.cloudFirewallRuleSettings"
},
"matchingConditions": {
"@odata.type": "microsoft.graph.networkaccess.cloudFirewallMatchingConditions"
}
}