Skip to content

Commit e118a7e

Browse files
authored
[WAF] Update partial (#19961)
1 parent d76f4fa commit e118a7e

File tree

5 files changed

+27
-10
lines changed

5 files changed

+27
-10
lines changed

src/content/docs/waf/account/custom-rulesets/create-dashboard.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,9 @@ Deployed custom rulesets will only apply to incoming traffic of Enterprise domai
8484

8585
<Render
8686
file="custom-response-blocked-requests"
87-
params={{ one: "WAF block", two: "403", three: "2 KB" }}
87+
params={{
88+
responseType: "WAF block",
89+
defaultStatusCode: "403",
90+
maxBodySize: "2 KB",
91+
}}
8892
/>

src/content/docs/waf/account/rate-limiting-rulesets/create-dashboard.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,9 @@ The **Deployed custom rate limiting rulesets** list will show a rule for each de
8585

8686
<Render
8787
file="custom-response-blocked-requests"
88-
params={{ one: "rate limiting", two: "429", three: "30 KB" }}
88+
params={{
89+
responseType: "rate limiting",
90+
defaultStatusCode: "429",
91+
maxBodySize: "30 KB",
92+
}}
8993
/>

src/content/docs/waf/custom-rules/create-dashboard.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@ import { Render } from "~/components";
3434

3535
<Render
3636
file="custom-response-blocked-requests"
37-
params={{ one: "WAF block", two: "403", three: "2 KB" }}
37+
params={{
38+
responseType: "WAF block",
39+
defaultStatusCode: "403",
40+
maxBodySize: "2 KB",
41+
}}
3842
/>

src/content/docs/waf/rate-limiting-rules/create-zone-dashboard.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,9 @@ import { Render } from "~/components";
4646

4747
<Render
4848
file="custom-response-blocked-requests"
49-
params={{ one: "rate limiting", two: "429", three: "30 KB" }}
49+
params={{
50+
responseType: "rate limiting",
51+
defaultStatusCode: "429",
52+
maxBodySize: "30 KB",
53+
}}
5054
/>
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
inputParameters: responseType;;defaultStatusCode;maxBodySize
2+
params:
3+
- responseType
4+
- defaultStatusCode
5+
- maxBodySize
36
---
47

5-
import { Markdown } from "~/components";
6-
78
When you select the _Block_ action in a rule you can optionally define a custom response.
89

910
The custom response has three settings:
1011

11-
- **With response type**: Choose a content type or the default {props.one} response from the list. The available custom response types are the following:
12+
- **With response type**: Choose a content type or the default {props.responseType} response from the list. The available custom response types are the following:
1213

1314
| Dashboard value | API value |
1415
| --------------- | -------------------- |
@@ -17,6 +18,6 @@ The custom response has three settings:
1718
| Custom JSON | `"application/json"` |
1819
| Custom XML | `"text/xml"` |
1920

20-
- **With response code**: Choose an HTTP status code for the response, in the range 400-499. The default response code is {props.two}.
21+
- **With response code**: Choose an HTTP status code for the response, in the range 400-499. The default response code is {props.defaultStatusCode}.
2122

22-
- **Response body**: The body of the response. Configure a valid body according to the response type you selected. The maximum field size is {props.three}.
23+
- **Response body**: The body of the response. Configure a valid body according to the response type you selected. The maximum field size is {props.maxBodySize}.

0 commit comments

Comments
 (0)