Skip to content

Commit 7ce1a68

Browse files
committed
Update partial parameters
1 parent c729eff commit 7ce1a68

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,8 @@ Use the different operations in the [Rulesets API](/ruleset-engine/rulesets-api/
8080

8181
<Render
8282
file="rules-next-steps-table"
83-
params={{ one: "custom rules", two: "http_request_firewall_custom" }}
83+
params={{
84+
rulesType: "custom rules",
85+
phaseName: "http_request_firewall_custom",
86+
}}
8487
/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,5 @@ Use the different operations in the [Rulesets API](/ruleset-engine/rulesets-api/
166166

167167
<Render
168168
file="rules-next-steps-table"
169-
params={{ one: "rate limiting rules", two: "http_ratelimit" }}
169+
params={{ rulesType: "rate limiting rules", phaseName: "http_ratelimit" }}
170170
/>
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
---
2-
inputParameters: rulesName;;phaseName
3-
2+
params:
3+
- rulesType
4+
- phaseName
45
---
56

7+
import { Markdown } from "~/components";
68

9+
| Task | Procedure |
10+
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11+
| List all rules in ruleset | <p>Use the [Get a zone entry point ruleset](/api/operations/getZoneEntrypointRuleset) operation with the <code>{props.phaseName}</code> phase name to obtain the list of configured {props.rulesType} and their IDs.</p><p>For more information, refer to [View a specific ruleset](/ruleset-engine/rulesets-api/view/#view-a-specific-ruleset).</p> |
12+
| Update a rule | <p>Use the [Update a zone ruleset rule](/api/operations/updateZoneRulesetRule) operation.</p><p>You will need to provide the ruleset ID and the rule ID. To obtain these IDs, you can use the [Get a zone entry point ruleset](/api/operations/getZoneEntrypointRuleset) operation with the <code>{props.phaseName}</code> phase name.</p><p>For more information, refer to [Update a rule in a ruleset](/ruleset-engine/rulesets-api/update-rule/).</p> |
13+
| Delete a rule | <p>Use the [Delete a zone ruleset rule](/api/operations/deleteZoneRulesetRule) operation.</p><p>You will need to provide the ruleset ID and the rule ID. To obtain these IDs, you can use the [Get a zone entry point ruleset](/api/operations/getZoneEntrypointRuleset) operation with the <code>{props.phaseName}</code> phase name.</p><p>For more information, refer to [Delete a rule in a ruleset](/ruleset-engine/rulesets-api/delete-rule/).</p> |
714

8-
import { Markdown } from "~/components"
9-
10-
| Task | Procedure |
11-
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
12-
| List all rules in ruleset | <p>Use the [Get a zone entry point ruleset](/api/operations/getZoneEntrypointRuleset) operation with the <code>{props.two}</code> phase name to obtain the list of configured {props.one} and their IDs.</p><p>For more information, refer to [View a specific ruleset](/ruleset-engine/rulesets-api/view/#view-a-specific-ruleset).</p> |
13-
| Update a rule | <p>Use the [Update a zone ruleset rule](/api/operations/updateZoneRulesetRule) operation.</p><p>You will need to provide the ruleset ID and the rule ID. To obtain these IDs, you can use the [Get a zone entry point ruleset](/api/operations/getZoneEntrypointRuleset) operation with the <code>{props.two}</code> phase name.</p><p>For more information, refer to [Update a rule in a ruleset](/ruleset-engine/rulesets-api/update-rule/).</p> |
14-
| Delete a rule | <p>Use the [Delete a zone ruleset rule](/api/operations/deleteZoneRulesetRule) operation.</p><p>You will need to provide the ruleset ID and the rule ID. To obtain these IDs, you can use the [Get a zone entry point ruleset](/api/operations/getZoneEntrypointRuleset) operation with the <code>{props.two}</code> phase name.</p><p>For more information, refer to [Delete a rule in a ruleset](/ruleset-engine/rulesets-api/delete-rule/).</p> |
15-
16-
17-
18-
These operations are covered in the Ruleset Engine documentation. The Ruleset Engine powers different Cloudflare products, including {props.one}.
15+
These operations are covered in the Ruleset Engine documentation. The Ruleset Engine powers different Cloudflare products, including {props.rulesType}.

0 commit comments

Comments
 (0)