Redagować

Udostępnij przez


Update threatIntelligenceRule

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.

Update the properties of a threatIntelligenceRule object.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permission Higher privileged permissions
Delegated (work or school account) Not supported. Not supported.
Delegated (personal Microsoft account) Not supported. Not supported.
Application Not supported. Not supported.

Important

In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported Microsoft Entra role or a custom role with a supported role permission. The following least privileged roles are supported for this operation.

  • Global Secure Access Administrator
  • Security Administrator

HTTP request

PATCH /networkAccess/filteringProfiles/{filteringProfileId}/policies/{policyLinkId}/policyRules/{id}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply only the values for properties to update. Existing properties that aren't included in the request body maintain their previous values or are recalculated based on changes to other property values.

The following table specifies the properties that can be updated.

Property Type Description
name String The display name of the threat intelligence rule. Inherited from microsoft.graph.networkaccess.policyRule.
description String A description of the threat intelligence rule.
action microsoft.graph.networkaccess.threatIntelligenceAction The action to take when network traffic matches this rule's conditions. The possible values are: allow, block, unknownFutureValue.
priority Int64 The priority of the rule which determines the order of rule evaluation. Lower values indicate higher priority.
settings microsoft.graph.networkaccess.threatIntelligenceRuleSettings Settings that define how the threat intelligence rule operates and is enforced.
matchingConditions microsoft.graph.networkaccess.threatIntelligenceMatchingConditions Conditions that define what network traffic should be evaluated by this rule.

Response

If successful, this method returns a 200 OK response code and an updated microsoft.graph.networkaccess.threatIntelligenceRule object in the response body.

Examples

Request

The following example shows a request.

PATCH https://graph.microsoft.com/beta/networkAccess/filteringProfiles/ab4f3459-c39d-4e99-b8d0-b1aee4726b84/policies/ac253559-37a0-4f72-b666-103420b94e38/policyRules/0823cb1e-644b-4585-80db-1c1055894ec7
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.networkaccess.threatIntelligenceRule",
  "name": "Exclusion List Rule 1",
  "priority": 100,
  "description": "Rule 1",
  "action": "allow",
  "settings": {
    "status": "enabled"
  },
  "matchingConditions": {
    "severity": "high",
    "destinations": [
      {
        "@odata.type": "#microsoft.graph.networkaccess.threatIntelligenceFqdnDestination",
        "values": [
          "babsite.com",
          "*.bing.com"
        ]
      }
    ]
  }
}

Response

The following example shows the response.

HTTP/1.1 204 No Content