Skip to content

Commit 99e9da8

Browse files
committed
Fix indentation
1 parent 6e8ae36 commit 99e9da8

File tree

3 files changed

+53
-54
lines changed

3 files changed

+53
-54
lines changed

src/content/partials/cloudflare-one/gateway/get-started/create-dns-policy.mdx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,24 @@ To create a new DNS policy:
3737
--header "Content-Type: application/json" \
3838
--header "Authorization: Bearer <API_TOKEN>" \
3939
--data '{
40-
"name": "Block security risks",
41-
"description": "Block all default Cloudflare DNS security categories",
42-
"precedence": 0,
43-
"enabled": true,
44-
"action": "block",
45-
"filters": [
46-
"dns"
47-
],
48-
"traffic": "any(dns.security_category[*] in {68 178 80 83 176 175 117 131 134 151 153})"
49-
"identity": "",
50-
"device_posture": ""
40+
"name": "Block security risks",
41+
"description": "Block all default Cloudflare DNS security categories",
42+
"precedence": 0,
43+
"enabled": true,
44+
"action": "block",
45+
"filters": [
46+
"dns"
47+
],
48+
"traffic": "any(dns.security_category[*] in {68 178 80 83 176 175 117 131 134 151 153})""identity": "",
49+
"device_posture": ""
5150
}'
5251
```
5352

5453
```sh output
5554
{
56-
"success": true,
57-
"errors": [],
58-
"messages": []
55+
"success": true,
56+
"errors": [],
57+
"messages": []
5958
}
6059
```
6160

src/content/partials/cloudflare-one/gateway/get-started/create-http-policy.mdx

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,25 @@ To create a new HTTP policy:
4646
--header "Content-Type: application/json" \
4747
--header "Authorization: Bearer <API_TOKEN>" \
4848
--data '{
49-
"name": "Do not inspect applications",
50-
"description": "Bypass TLS decryption for unsupported applications",
51-
"precedence": 0,
52-
"enabled": true,
53-
"action": "off",
54-
"filters": [
55-
"http"
56-
],
57-
"traffic": "any(app.type.ids[*] in {16})",
58-
"identity": "",
59-
"device_posture": ""
49+
"name": "Do not inspect applications",
50+
"description": "Bypass TLS decryption for unsupported applications",
51+
"precedence": 0,
52+
"enabled": true,
53+
"action": "off",
54+
"filters": [
55+
"http"
56+
],
57+
"traffic": "any(app.type.ids[*] in {16})",
58+
"identity": "",
59+
"device_posture": ""
6060
}'
6161
```
6262

6363
```sh output
6464
{
65-
"success": true,
66-
"errors": [],
67-
"messages": []
65+
"success": true,
66+
"errors": [],
67+
"messages": []
6868
}
6969
```
7070

@@ -75,19 +75,19 @@ To create a new HTTP policy:
7575
```bash title="Block known risks HTTP policy"
7676
curl https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway/rules \
7777
--header "Content-Type: application/json" \
78-
--header "Authorization: Bearer <API_Token>" \
78+
--header "Authorization: Bearer <API_TOKEN>" \
7979
--data '{
80-
"name": "Block known risks",
81-
"description": "Block all default Cloudflare HTTP security categories",
82-
"precedence": 0,
83-
"enabled": true,
84-
"action": "block",
85-
"filters": [
86-
"http"
87-
],
88-
"traffic": "any(http.request.uri.security_category[*] in {68 178 80 83 176 175 117 131 134 151 153})",
89-
"identity": "",
90-
"device_posture": ""
80+
"name": "Block known risks",
81+
"description": "Block all default Cloudflare HTTP security categories",
82+
"precedence": 0,
83+
"enabled": true,
84+
"action": "block",
85+
"filters": [
86+
"http"
87+
],
88+
"traffic": "any(http.request.uri.security_category[*] in {68 178 80 83 176 175 117 131 134 151 153})",
89+
"identity": "",
90+
"device_posture": ""
9191
}'
9292
```
9393

src/content/partials/cloudflare-one/gateway/get-started/create-network-policy.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,25 @@ To create a new network policy:
3737
--header "Content-Type: application/json" \
3838
--header "Authorization: Bearer <API_TOKEN>" \
3939
--data '{
40-
"name": "Enforce device posture",
41-
"description": "Ensure only devices in Zero Trust organization can connect to application",
42-
"precedence": 0,
43-
"enabled": true,
44-
"action": "block",
45-
"filters": [
46-
"l4"
47-
],
48-
"traffic": "any(net.sni.domains[*] == \"internalapp.com\")",
49-
"identity": "",
50-
"device_posture": "not(any(device_posture.checks.passed[*] in {\"<LIST_UUID>\"}))"
40+
"name": "Enforce device posture",
41+
"description": "Ensure only devices in Zero Trust organization can connect to application",
42+
"precedence": 0,
43+
"enabled": true,
44+
"action": "block",
45+
"filters": [
46+
"l4"
47+
],
48+
"traffic": "any(net.sni.domains[*] == \"internalapp.com\")",
49+
"identity": "",
50+
"device_posture": "not(any(device_posture.checks.passed[*] in {\"<LIST_UUID>\"}))"
5151
}'
5252
```
5353

5454
```sh output
5555
{
56-
"success": true,
57-
"errors": [],
58-
"messages": []
56+
"success": true,
57+
"errors": [],
58+
"messages": []
5959
}
6060
```
6161

0 commit comments

Comments
 (0)