Skip to content

Commit 546c8a6

Browse files
committed
Add API endpoint names
1 parent cd3f0cc commit 546c8a6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/content/docs/cloudflare-one/policies/gateway/dns-policies/timed-policies.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Policies with a set duration will retain their duration through activation. For
2525

2626
## Scheduled policies
2727

28-
You can use the [Gateway Rules API](/api/operations/zero-trust-gateway-rules-create-zero-trust-gateway-rule) to create a new DNS policy with a schedule or add a schedule to an existing policy. To schedule a policy, send a [`POST`](/api/operations/zero-trust-gateway-rules-create-zero-trust-gateway-rule) or [`PUT`](/api/operations/zero-trust-gateway-rules-update-zero-trust-gateway-rule) request with the `schedule` parameter set to your desired days of the week, times of day, and an optional time zone. The schedule will appear in Zero Trust under **Gateway** > **Firewall policies** > **DNS** when you expand the row for the policy.
28+
You can use the Gateway API to create a new DNS policy with a schedule or add a schedule to an existing policy. To schedule a policy, use the [Create a Zero Trust Gateway rule endpoint](/api/operations/zero-trust-gateway-rules-create-zero-trust-gateway-rule) or [Update a Zero Trust Gateway rule endpoint](/api/operations/zero-trust-gateway-rules-update-zero-trust-gateway-rule) with the `schedule` parameter set to your desired days of the week, times of day, and an optional time zone. The schedule will appear in Zero Trust under **Gateway** > **Firewall policies** > **DNS** when you select the policy.
2929

3030
### How Gateway determines time zone
3131

@@ -58,11 +58,11 @@ curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway/rules"
5858
}'
5959
```
6060

61-
Refer to [this table](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) for a list of all time zones.
61+
Refer to [this table](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List) for a list of all time zone identifiers.
6262

6363
#### Example: User's time zone
6464

65-
The following command creates a DNS policy to block `clockin.com` only on weekends, in the time zone where the user is currently located.
65+
The following command creates a DNS policy to block `clockin.com` only on weekends in the time zone where the user is currently located.
6666

6767
```bash
6868
curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway/rules" \
@@ -82,6 +82,5 @@ curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway/rules"
8282
```
8383

8484
:::note
85-
8685
Gateway will not change the policy's `enabled` status when inside or outside of the time period specified. When enabled, Gateway activates or deactivates the policy according to its schedule. When disabled, the policy is always deactivated.
8786
:::

0 commit comments

Comments
 (0)