Skip to content

Commit a6c1077

Browse files
committed
Add content categories partial
1 parent dc3ea97 commit a6c1077

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,11 +407,10 @@ When using Terraform to create a policy with the [Do Not Inspect](#do-not-inspec
407407

408408
### Content Categories
409409

410-
| UI name | API example |
411-
| ------------------ | ------------------------------------------------ |
412-
| Content Categories | `not(any(http.conn.content_category[*] in {1}))` |
413-
414-
For more information, refer to our list of [content categories](/cloudflare-one/policies/gateway/domain-categories/#content-categories).
410+
<Render
411+
file="gateway/selectors/net-http-content-categories"
412+
params={{ one: "http.conn" }}
413+
/>
415414

416415
### Destination Continent
417416

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,10 @@ Gateway matches network traffic against the following selectors, or criteria.
232232

233233
### Content Categories
234234

235-
| UI name | API example |
236-
| ------------------ | ------------------------------------------ |
237-
| Content Categories | `any(net.fqdn.content_category[*] in {1})` |
238-
239-
For more information, refer to our list of [content categories](/cloudflare-one/policies/gateway/domain-categories/#content-categories).
235+
<Render
236+
file="gateway/selectors/net-http-content-categories"
237+
params={{ one: "net.fqdn" }}
238+
/>
240239

241240
### Destination Continent
242241

src/content/partials/cloudflare-one/gateway/selectors/dns-content-categories.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
{}
3-
43
---
54

65
Use this selector to filter domains belonging to specific [content categories](/cloudflare-one/policies/gateway/domain-categories/#content-categories).
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
inputParameters: APIpolicyType
3+
---
4+
5+
import { Markdown } from "~/components";
6+
7+
| UI name | API example |
8+
| ------------------ | --------------------------------------------------------------- |
9+
| Content Categories | <code>not(any({props.one}.content_category[*] in \{1\}))</code> |
10+
11+
For more information, refer to the list of [content categories](/cloudflare-one/policies/gateway/domain-categories/#content-categories).

0 commit comments

Comments
 (0)