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
1. Create a custom API token with the following permissions:
24
+
1.[Create an API token](/fundamentals/api/get-started/create-token/) with the following permissions:
25
25
26
-
|Scope| Application | Action|
27
-
| ------- | -----------| ------ |
28
-
| Account | Zero Trust | Edit |
26
+
|Type| Item | Permission|
27
+
| ------- | ---------- |---------- |
28
+
| Account | Zero Trust | Edit|
29
29
30
-
2. (Optional) Configure your API environment variables with your account ID, email address, and API token.
31
-
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:
30
+
2. (Optional) Configure your API environment variables to include your [account ID](/fundamentals/setup/find-account-and-zone-ids/), email address, and API token.
31
+
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, we recommend adding a policy to block all [security categories](/cloudflare-one/policies/gateway/domain-categories/#security-categories):
0 commit comments