You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -17,4 +19,37 @@ To create a new network policy:
17
19
/>
18
20
6. Select **Create policy**.
19
21
22
+
</TabItem>
23
+
24
+
<TabItemlabel="API">
25
+
26
+
1.[Create an API token](/fundamentals/api/get-started/create-token/) with the following permissions:
27
+
28
+
| Type | Item | Permission |
29
+
| ------- | ---------- | ---------- |
30
+
| Account | Zero Trust | Edit |
31
+
32
+
2. (Optional) Configure your API environment variables to include your [account ID](/fundamentals/setup/find-account-and-zone-ids/), email address, and API token.
33
+
3. Send a `POST` request to the [Create a Zero Trust Gateway rule](/api/operations/zero-trust-gateway-rules-create-zero-trust-gateway-rule) endpoint. For example, you can use a list of [device serial numbers](/cloudflare-one/identity/devices/warp-client-checks/corp-device/) to ensure users can only access an application if they connect with the WARP client from a company device:
Copy file name to clipboardExpand all lines: src/content/partials/cloudflare-one/gateway/policies/enforce-device-posture.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
{}
3
3
---
4
4
5
-
In the following example, you can use a list of [device serial numbers](/cloudflare-one/identity/devices/warp-client-checks/corp-device/) to ensure users can only access an application if they connect with the WARP client from a company device:
5
+
For example, you can use a list of [device serial numbers](/cloudflare-one/identity/devices/warp-client-checks/corp-device/) to ensure users can only access an application if they connect with the WARP client from a company device:
0 commit comments