Skip to content

Commit db579b1

Browse files
committed
Update domain selector partial
1 parent 21bbd3a commit db579b1

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,10 @@ Use this selector to filter DNS responses by their `TXT` records.
347347

348348
### Domain
349349

350-
<Render file="gateway/selectors/domain" />
350+
<Render
351+
file="gateway/selectors/domain"
352+
params={{ APIendpoint: "dns.domains" }}
353+
/>
351354

352355
### Host
353356

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ Gateway matches egress traffic against the following selectors, or criteria:
101101

102102
### Domain <Badge text="Beta" variant="caution"/>
103103

104-
<Render file="gateway/selectors/domain" />
104+
<Render
105+
file="gateway/selectors/domain"
106+
params={{ APIendpoint: "net.fqdn.domains" }}
107+
/>
105108

106109
<Render file="gateway/selectors/egress-selector-limitation" />
107110

src/content/docs/cloudflare-one/policies/gateway/resolver-policies.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ For more information on creating a DNS policy, refer to [DNS policies](/cloudfla
105105

106106
### Domain
107107

108-
<Render file="gateway/selectors/domain" />
108+
<Render
109+
file="gateway/selectors/domain"
110+
params={{ APIendpoint: "dns.domains" }}
111+
/>
109112

110113
### Host
111114

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2-
{}
2+
params:
3+
- APIendpoint
34
---
45

56
Use this selector to match against a domain and all subdomains. For example, you can match `example.com` and its subdomains, such as `www.example.com`.
67

7-
| UI name | API example | Evaluation phase |
8-
| ------- | -------------------------------------- | --------------------- |
9-
| Domain | `any(dns.domains[*] == "example.com")` | Before DNS resolution |
8+
| UI name | API example | Evaluation phase |
9+
| ------- | ------------------------------------------------- | --------------------- |
10+
| Domain | <code>any({props.APIendpoint}[*] in \{1\})</code> | Before DNS resolution |

0 commit comments

Comments
 (0)