Skip to content

Commit fa619d6

Browse files
committed
Restore API procedure
1 parent 71abd94 commit fa619d6

File tree

1 file changed

+26
-1
lines changed
  • src/content/docs/cloudflare-one/policies/gateway/egress-policies

1 file changed

+26
-1
lines changed

src/content/docs/cloudflare-one/policies/gateway/egress-policies/index.mdx

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,32 @@ When you use these selectors in an egress policy for traffic from a supported on
211211

212212
Gateway will overwrite the DNS response for all supported traffic, even if identity or device posture selectors are used to limit which users or devices should be affected by the policy. In these cases, while the DNS response is overwritten, the correct egress policy will still be applied.
213213

214-
To turn on the selectors for your account, enable the 'Host selector' toggle in **Settings > Network > Firewall**.
214+
To turn on the selectors for your account:
215+
216+
<Tabs syncKey="dashPlusAPI"> <TabItem label="Dashboard">
217+
218+
1. In [Zero Trust](https://one.dash.cloudflare.com/), go to **Settings** > **Network**.
219+
2. In **Firewall**, turn on **Host selector**.
220+
221+
</TabItem> <TabItem label="API">
222+
223+
Use the [Patch Zero Trust account configuration](/api/resources/zero_trust/subresources/gateway/subresources/configurations/methods/edit/) endpoint to update your Zero Trust configuration. For example:
224+
225+
```sh title="Turn on selectors for egress policies"
226+
curl --request PATCH \
227+
"https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/configuration" \
228+
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
229+
--header "Content-Type: application/json" \
230+
--data '{
231+
"settings": {
232+
"host_selector": {
233+
"enabled": true
234+
}
235+
}
236+
}'
237+
```
238+
239+
</TabItem> </Tabs>
215240

216241
Additionally, to use these selectors to filter traffic onboarded with WARP, you need to:
217242

0 commit comments

Comments
 (0)