|
1 | | ---- |
2 | | -title: "Add threatIntelligencePolicy to filteringProfile" |
3 | | -description: "Add threatIntelligencePolicy to filteringProfile" |
4 | | -author: "fgomulka" |
5 | | -ms.date: 06/05/2025 |
6 | | -ms.localizationpriority: medium |
7 | | -ms.subservice: "entra-global-secure-access" |
8 | | -doc_type: apiPageType |
9 | | ---- |
10 | | - |
11 | | -# Add threatIntelligencePolicy to filteringProfile |
12 | | - |
13 | | -Namespace: microsoft.graph.networkaccess |
14 | | - |
15 | | -[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
16 | | - |
17 | | -Add a [threatIntelligencePolicy](../resources/networkaccess-threatintelligencepolicy.md) to a [filteringProfile](../resources/networkaccess-filteringprofile.md). |
18 | | - |
19 | | -## Permissions |
20 | | - |
21 | | -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](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference). |
22 | | - |
23 | | -<!-- { |
24 | | - "blockType": "permissions", |
25 | | - "name": "networkaccess-threatintelligencepolicylink-post-policy-permissions" |
26 | | -} |
27 | | ---> |
28 | | -[!INCLUDE [permissions-table](../includes/permissions/networkaccess-threatintelligencepolicylink-post-policy-permissions.md)] |
29 | | - |
30 | | -[!INCLUDE [rbac-global-secure-access-apis-write](../includes/rbac-for-apis/rbac-global-secure-access-apis-write.md)] |
31 | | - |
32 | | -## HTTP request |
33 | | - |
34 | | -<!-- { |
35 | | - "blockType": "ignored" |
36 | | -} |
37 | | ---> |
38 | | -```http |
39 | | -POST /networkAccess/filteringProfiles/{filteringProfileId}/policies/{policyLinkId}/policy |
40 | | -``` |
41 | | - |
42 | | -## Request headers |
43 | | - |
44 | | -|Name|Description| |
45 | | -|:---|:---| |
46 | | -|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
47 | | -|Content-Type|application/json. Required.| |
48 | | - |
49 | | -## Request body |
50 | | - |
51 | | -In the request body, supply a JSON representation of the [microsoft.graph.networkaccess.policy](../resources/networkaccess-policy.md) object. |
52 | | - |
53 | | -You can specify the following properties when creating a **policy**. |
54 | | - |
55 | | -|Property|Type|Description| |
56 | | -|:---|:---|:---| |
57 | | -|name|String|The display name of the policy. Required.| |
58 | | -|description|String|A description of the policy. Optional.| |
59 | | -|version|String|The version of the policy, used for tracking changes. Required.| |
60 | | - |
61 | | - |
62 | | - |
63 | | -## Response |
64 | | - |
65 | | -If successful, this method returns a `204 No Content` response code and a [microsoft.graph.networkaccess.policy](../resources/networkaccess-policy.md) object in the response body. |
66 | | - |
67 | | -## Examples |
68 | | - |
69 | | -### Request |
70 | | - |
71 | | -The following example shows a request. |
72 | | -<!-- { |
73 | | - "blockType": "request", |
74 | | - "name": "create_policy_from_" |
75 | | -} |
76 | | ---> |
77 | | -```http |
78 | | -POST https://graph.microsoft.com/beta/networkAccess/filteringProfiles/{filteringProfileId}/policies/{policyLinkId}/policy |
79 | | -Content-Type: application/json |
80 | | -
|
81 | | -{ |
82 | | - "@odata.type": "#microsoft.graph.networkaccess.threatIntelligencePolicy", |
83 | | - "name": "Threat Intel Policy", |
84 | | - "description": "", |
85 | | - "version": "1.0.0", |
86 | | - "settings": { |
87 | | - "defaultAction": "allow" |
88 | | - } |
89 | | -} |
90 | | -``` |
91 | | - |
92 | | - |
93 | | -### Response |
94 | | - |
95 | | -The following example shows the response. |
96 | | -<!-- { |
97 | | - "blockType": "response", |
98 | | - "truncated": true, |
99 | | - "@odata.type": "microsoft.graph.networkaccess.policy" |
100 | | -} |
101 | | ---> |
102 | | -```http |
103 | | -HTTP/1.1 204 No Content |
104 | | -Content-Type: application/json |
105 | | -
|
106 | | -{ |
107 | | - "@odata.type": "#microsoft.graph.networkaccess.threatIntelligencePolicy", |
108 | | - "id": "a8352c78-90c6-4edd-aaca-9dc4292e7750", |
109 | | - "name": "Threat Intel Policy", |
110 | | - "description": "", |
111 | | - "version": "1.0.0", |
112 | | - "lastModifiedDateTime": "2025-06-18T17:34:25.8207682Z", |
113 | | - "settings": { |
114 | | - "defaultAction": "allow" |
115 | | - } |
116 | | -} |
117 | | -``` |
118 | | - |
| 1 | +--- |
| 2 | +title: "Add policy to filteringProfile" |
| 3 | +description: "Add a Global Secure Access network policy to a filteringProfile" |
| 4 | +author: "fgomulka" |
| 5 | +ms.date: 06/05/2025 |
| 6 | +ms.localizationpriority: medium |
| 7 | +ms.subservice: "entra-global-secure-access" |
| 8 | +doc_type: apiPageType |
| 9 | +--- |
| 10 | + |
| 11 | +# Add policy to filteringProfile |
| 12 | + |
| 13 | +Namespace: microsoft.graph.networkaccess |
| 14 | + |
| 15 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 16 | + |
| 17 | +Add a Global Secure Access network policy to a [filteringProfile](../resources/networkaccess-filteringprofile.md). The policy can be one of the following types: |
| 18 | + |
| 19 | +- [filteringPolicy](../resources/networkaccess-filteringpolicy.md) |
| 20 | +- [threatIntelligencePolicy](../resources/networkaccess-threatintelligencepolicy.md) |
| 21 | + |
| 22 | +## Permissions |
| 23 | + |
| 24 | +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](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference). |
| 25 | + |
| 26 | +<!-- { |
| 27 | + "blockType": "permissions", |
| 28 | + "name": "networkaccess-filteringpolicylink-post-permissions" |
| 29 | +} |
| 30 | +--> |
| 31 | +[!INCLUDE [permissions-table](../includes/permissions/networkaccess-filteringpolicylink-post-permissions.md)] |
| 32 | + |
| 33 | +[!INCLUDE [rbac-global-secure-access-apis-write](../includes/rbac-for-apis/rbac-global-secure-access-apis-write.md)] |
| 34 | + |
| 35 | +## HTTP request |
| 36 | + |
| 37 | +<!-- { |
| 38 | + "blockType": "ignored" |
| 39 | +} |
| 40 | +--> |
| 41 | +```http |
| 42 | +POST /networkAccess/filteringProfiles/{filteringProfileId}/policies/{policyLinkId}/policy |
| 43 | +``` |
| 44 | + |
| 45 | +## Request headers |
| 46 | + |
| 47 | +|Name|Description| |
| 48 | +|:---|:---| |
| 49 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 50 | +|Content-Type|application/json. Required.| |
| 51 | + |
| 52 | +## Request body |
| 53 | + |
| 54 | +In the request body, supply a JSON representation of the [microsoft.graph.networkaccess.policy](../resources/networkaccess-policy.md) object. |
| 55 | + |
| 56 | +You can specify the following properties when creating a **policy**. |
| 57 | + |
| 58 | +|Property|Type|Description| |
| 59 | +|:---|:---|:---| |
| 60 | +|name|String|The display name of the policy. Required.| |
| 61 | +|description|String|A description of the policy. Optional.| |
| 62 | +|version|String|The version of the policy, used for tracking changes. Required.| |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +## Response |
| 67 | + |
| 68 | +If successful, this method returns a `204 No Content` response code and a [microsoft.graph.networkaccess.policy](../resources/networkaccess-policy.md) object in the response body. |
| 69 | + |
| 70 | +## Examples |
| 71 | + |
| 72 | +### Request |
| 73 | + |
| 74 | +The following example shows a request. |
| 75 | +<!-- { |
| 76 | + "blockType": "request", |
| 77 | + "name": "create_policy_from_" |
| 78 | +} |
| 79 | +--> |
| 80 | +```http |
| 81 | +POST https://graph.microsoft.com/beta/networkAccess/filteringProfiles/{filteringProfileId}/policies/{policyLinkId}/policy |
| 82 | +Content-Type: application/json |
| 83 | +
|
| 84 | +{ |
| 85 | + "@odata.type": "#microsoft.graph.networkaccess.threatIntelligencePolicy", |
| 86 | + "name": "Threat Intel Policy", |
| 87 | + "description": "", |
| 88 | + "version": "1.0.0", |
| 89 | + "settings": { |
| 90 | + "defaultAction": "allow" |
| 91 | + } |
| 92 | +} |
| 93 | +``` |
| 94 | + |
| 95 | + |
| 96 | +### Response |
| 97 | + |
| 98 | +The following example shows the response. |
| 99 | +<!-- { |
| 100 | + "blockType": "response", |
| 101 | + "truncated": true, |
| 102 | + "@odata.type": "microsoft.graph.networkaccess.policy" |
| 103 | +} |
| 104 | +--> |
| 105 | +```http |
| 106 | +HTTP/1.1 204 No Content |
| 107 | +Content-Type: application/json |
| 108 | +
|
| 109 | +{ |
| 110 | + "@odata.type": "#microsoft.graph.networkaccess.threatIntelligencePolicy", |
| 111 | + "id": "a8352c78-90c6-4edd-aaca-9dc4292e7750", |
| 112 | + "name": "Threat Intel Policy", |
| 113 | + "description": "", |
| 114 | + "version": "1.0.0", |
| 115 | + "lastModifiedDateTime": "2025-06-18T17:34:25.8207682Z", |
| 116 | + "settings": { |
| 117 | + "defaultAction": "allow" |
| 118 | + } |
| 119 | +} |
| 120 | +``` |
| 121 | + |
0 commit comments