---
title: Create an account or zone ruleset rule
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

[Rulesets](https://developers.cloudflare.com/api/python/resources/rulesets)

[Rules](https://developers.cloudflare.com/api/python/resources/rulesets/subresources/rules)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Create an account or zone ruleset rule

rulesets.rules.create(strruleset\_id, RuleCreateParams\*\*kwargs) -> [RuleCreateResponse](<https://developers.cloudflare.com/api/python/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)>)

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/rulesets/{ruleset\_id}/rules

Adds a new rule to an account or zone ruleset. The rule will be added to the end of the existing list of rules in the ruleset by default.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Mass URL Redirects Write``Magic Firewall Write``L4 DDoS Managed Ruleset Write``Transform Rules Write``Select Configuration Write``Account WAF Write``Account Rulesets Write``Logs Write`

##### ParametersExpand Collapse

ruleset\_id: str

The unique ID of the ruleset.

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ruleset_id%20%3E%20(schema)>)

account\_id: Optional\[str]

The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20account_id%20%3E%20(schema)>)

zone\_id: Optional\[str]

The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20zone_id%20%3E%20(schema)>)

dry\_run: Optional\[[bool](<https://developers.cloudflare.com/api/python/resources/rulesets/subresources/rules/methods/create#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20dry_run%20%3E%20(schema)>)]

Validates the request without persisting changes when set to `true`. Responses that normally return 200 return `result: null`; endpoints that normally return 204 continue to return 204.

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20dry_run%20%3E%20(schema)>)

id: Optional\[str]

The unique ID of the rule.

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20id%20%3E%20(schema)>)

action: Optional\[Literal\["block"]]

The action to perform when the rule matches.

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20action%20%3E%20(schema)>)

<details>

<summary>

action\_parameters: Optional\[<a href="https://developers.cloudflare.com/api/python/resources/rulesets/subresources/rules/methods/create#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20action_parameters%20%3E%20(schema)">BlockRuleActionParameters</a>]

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

response: Optional\[BlockRuleActionParametersResponse]

The response to show when the block is applied.

</summary>

content: str

The content to return.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20action_parameters%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20content">Link to this property</a>

content\_type: str

The type of the content to return.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20action_parameters%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20content_type">Link to this property</a>

status\_code: int

The status code to return.

maximum499

minimum400

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20action_parameters%20%3E%20(schema)%20%3E%20(property)%20response%20%3E%20(property)%20status_code">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20action_parameters%20%3E%20(schema)%20%3E%20(property)%20response">Link to this property</a>

</details>

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20action_parameters%20%3E%20(schema)>)

description: Optional\[str]

An informative description of the rule.

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20description%20%3E%20(schema)>)

enabled: Optional\[[bool](<https://developers.cloudflare.com/api/python/resources/rulesets/subresources/rules/methods/create#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20enabled%20%3E%20(schema)>)]

Whether the rule should be executed.

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20enabled%20%3E%20(schema)>)

<details>

<summary>

exposed\_credential\_check: Optional\[<a href="https://developers.cloudflare.com/api/python/resources/rulesets/subresources/rules/methods/create#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20exposed_credential_check%20%3E%20(schema)">BlockRuleExposedCredentialCheck</a>]

Configuration for exposed credential checking.

</summary>

password\_expression: str

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20exposed_credential_check%20%3E%20(schema)%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: str

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20exposed_credential_check%20%3E%20(schema)%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20exposed_credential_check%20%3E%20(schema)>)

expression: Optional\[str]

The expression defining which traffic will match the rule.

minLength1

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20expression%20%3E%20(schema)>)

<details>

<summary>

logging: Optional\[<a href="https://developers.cloudflare.com/api/python/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">LoggingParam</a>]

An object configuring the rule’s logging behavior.

</summary>

enabled: bool

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20logging%20%3E%20(schema)%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20logging%20%3E%20(schema)>)

<details>

<summary>

position: Optional\[<a href="https://developers.cloudflare.com/api/python/resources/rulesets/subresources/rules/methods/create#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20position%20%3E%20(schema)">BlockRulePosition</a>]

An object configuring where the rule will be placed.

</summary>

One of the following:

<details>

<summary>

class BlockRulePositionBeforePosition: …

An object configuring where the rule will be placed.

</summary>

before: Optional\[str]

The ID of another rule to place the rule before. An empty value causes the rule to be placed at the top.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20position%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20before">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20position%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class BlockRulePositionAfterPosition: …

An object configuring where the rule will be placed.

</summary>

after: Optional\[str]

The ID of another rule to place the rule after. An empty value causes the rule to be placed at the bottom.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20position%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20after">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20position%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class BlockRulePositionIndexPosition: …

An object configuring where the rule will be placed.

</summary>

index: Optional\[int]

An index at which to place the rule, where index 1 is the first rule.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20position%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20index">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20position%20%3E%20(schema)%20%3E%20(variant)%202">Link to this property</a>

</details>

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20position%20%3E%20(schema)>)

<details>

<summary>

ratelimit: Optional\[<a href="https://developers.cloudflare.com/api/python/resources/rulesets/subresources/rules/methods/create#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ratelimit%20%3E%20(schema)">BlockRuleRatelimit</a>]

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: Sequence\[str]

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ratelimit%20%3E%20(schema)%20%3E%20(property)%20characteristics">Link to this property</a>

period: int

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ratelimit%20%3E%20(schema)%20%3E%20(property)%20period">Link to this property</a>

counting\_expression: Optional\[str]

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ratelimit%20%3E%20(schema)%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout: Optional\[int]

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ratelimit%20%3E%20(schema)%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period: Optional\[int]

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ratelimit%20%3E%20(schema)%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin: Optional\[bool]

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ratelimit%20%3E%20(schema)%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period: Optional\[int]

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ratelimit%20%3E%20(schema)%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name: Optional\[str]

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ratelimit%20%3E%20(schema)%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ratelimit%20%3E%20(schema)>)

ref: Optional\[str]

The reference of the rule (the rule’s ID by default).

minLength1

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20ref%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

<a href="https://developers.cloudflare.com/api/python/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)">RuleCreateResponse</a>

A result.

</summary>

One of the following:

<details>

<summary>

class Ruleset: …

A ruleset object.

</summary>

id: str

The unique ID of the ruleset.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

kind: <a href="https://developers.cloudflare.com/api/python/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)">Kind</a>

The kind of the ruleset.

</summary>

One of the following:

"managed"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"custom"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"root"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"zone"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20kind%20%2B%20(resource)%20rulesets%20%3E%20(model)%20kind%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20kind">Link to this property</a>

last\_updated: datetime

The timestamp of when the ruleset was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20last_updated">Link to this property</a>

name: str

The human-readable name of the ruleset.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

phase: <a href="https://developers.cloudflare.com/api/python/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a>

The phase of the ruleset.

</summary>

One of the following:

"ddos\_l4"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"ddos\_l7"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"http\_config\_settings"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"http\_custom\_errors"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"http\_log\_custom\_fields"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"http\_ratelimit"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

"http\_request\_cache\_settings"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

"http\_request\_dynamic\_redirect"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

"http\_request\_firewall\_custom"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%208">Link to this property</a>

"http\_request\_firewall\_managed"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%209">Link to this property</a>

"http\_request\_late\_transform"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2010">Link to this property</a>

"http\_request\_origin"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2011">Link to this property</a>

"http\_request\_redirect"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2012">Link to this property</a>

"http\_request\_sanitize"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2013">Link to this property</a>

"http\_request\_sbfm"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2014">Link to this property</a>

"http\_request\_transform"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2015">Link to this property</a>

"http\_response\_cache\_settings"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2016">Link to this property</a>

"http\_response\_compression"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2017">Link to this property</a>

"http\_response\_firewall\_managed"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2018">Link to this property</a>

"http\_response\_headers\_transform"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2019">Link to this property</a>

"magic\_transit"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2020">Link to this property</a>

"magic\_transit\_ids\_managed"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2021">Link to this property</a>

"magic\_transit\_managed"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2022">Link to this property</a>

"magic\_transit\_ratelimit"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase%20%2B%20(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2023">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20phase">Link to this property</a>

<details>

<summary>

rules: List\[RulesetRule]

The list of rules in the ruleset.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleBlockRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleChallengeRule: …

</summary>

id: str

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

action: Literal\["challenge"]

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20expression">Link to this property</a>

last\_updated: datetime

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20last_updated">Link to this property</a>

ref: str

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ref">Link to this property</a>

version: str

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20version">Link to this property</a>

action\_parameters: Optional\[object]

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20action_parameters">Link to this property</a>

categories: Optional\[List\[str]]

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20categories">Link to this property</a>

description: Optional\[str]

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

exposed\_credential\_check: Optional\[RulesetRuleChallengeRuleExposedCredentialCheck]

Configuration for exposed credential checking.

</summary>

password\_expression: str

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: str

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

<details>

<summary>

logging: Optional\[Logging]

An object configuring the rule’s logging behavior.

</summary>

enabled: bool

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit: Optional\[RulesetRuleChallengeRuleRatelimit]

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: List\[str]

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: int

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression: Optional\[str]

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout: Optional\[int]

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period: Optional\[int]

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin: Optional\[bool]

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period: Optional\[int]

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name: Optional\[str]

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class RulesetRuleResponseCompressionRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

class RulesetRuleDDoSDynamicRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

class RulesetRuleExecuteRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

class RulesetRuleForceConnectionCloseRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

class RulesetRuleJavaScriptChallengeRule: …

</summary>

id: str

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20id">Link to this property</a>

action: Literal\["js\_challenge"]

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

Whether the rule should be executed.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20expression">Link to this property</a>

last\_updated: datetime

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20last_updated">Link to this property</a>

ref: str

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ref">Link to this property</a>

version: str

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20version">Link to this property</a>

action\_parameters: Optional\[object]

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20action_parameters">Link to this property</a>

categories: Optional\[List\[str]]

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20categories">Link to this property</a>

description: Optional\[str]

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

exposed\_credential\_check: Optional\[RulesetRuleJavaScriptChallengeRuleExposedCredentialCheck]

Configuration for exposed credential checking.

</summary>

password\_expression: str

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: str

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

<details>

<summary>

logging: Optional\[Logging]

An object configuring the rule’s logging behavior.

</summary>

enabled: bool

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit: Optional\[RulesetRuleJavaScriptChallengeRuleRatelimit]

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: List\[str]

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: int

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression: Optional\[str]

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout: Optional\[int]

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period: Optional\[int]

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin: Optional\[bool]

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period: Optional\[int]

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name: Optional\[str]

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

class RulesetRuleLogRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

class RulesetRuleLogCustomFieldRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%208">Link to this property</a>

<details>

<summary>

class RulesetRuleManagedChallengeRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%209">Link to this property</a>

<details>

<summary>

class RulesetRuleRedirectRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2010">Link to this property</a>

<details>

<summary>

class RulesetRuleRewriteRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2011">Link to this property</a>

<details>

<summary>

class RulesetRuleRouteRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2012">Link to this property</a>

<details>

<summary>

class RulesetRuleScoreRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2013">Link to this property</a>

<details>

<summary>

class RulesetRuleServeErrorRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2014">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRule: …

</summary>

id: str

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20id">Link to this property</a>

action: Literal\["set\_cache\_control"]

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20expression">Link to this property</a>

last\_updated: datetime

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20last_updated">Link to this property</a>

ref: str

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ref">Link to this property</a>

version: str

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20version">Link to this property</a>

<details>

<summary>

action\_parameters: Optional\[RulesetRuleSetCacheControlRuleActionParameters]

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

immutable: Optional\[RulesetRuleSetCacheControlRuleActionParametersImmutable]

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersImmutableSetDirective: …

Set the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersImmutableRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20immutable">Link to this property</a>

<details>

<summary>

max\_age: Optional\[RulesetRuleSetCacheControlRuleActionParametersMaxAge]

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersMaxAgeSetDirective: …

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: int

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersMaxAgeRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20max-age">Link to this property</a>

<details>

<summary>

must\_revalidate: Optional\[RulesetRuleSetCacheControlRuleActionParametersMustRevalidate]

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersMustRevalidateSetDirective: …

Set the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersMustRevalidateRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-revalidate">Link to this property</a>

<details>

<summary>

must\_understand: Optional\[RulesetRuleSetCacheControlRuleActionParametersMustUnderstand]

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersMustUnderstandSetDirective: …

Set the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersMustUnderstandRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20must-understand">Link to this property</a>

<details>

<summary>

no\_cache: Optional\[RulesetRuleSetCacheControlRuleActionParametersNoCache]

A cache-control directive configuration that accepts optional qualifiers (header names).

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersNoCacheSetDirective: …

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

qualifiers: Optional\[List\[str]]

Optional list of header names to qualify the directive (e.g., for “private” or “no-cache” directives).

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200%20%3E%20(property)%20qualifiers">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersNoCacheRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-cache">Link to this property</a>

<details>

<summary>

no\_store: Optional\[RulesetRuleSetCacheControlRuleActionParametersNoStore]

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersNoStoreSetDirective: …

Set the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersNoStoreRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-store">Link to this property</a>

<details>

<summary>

no\_transform: Optional\[RulesetRuleSetCacheControlRuleActionParametersNoTransform]

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersNoTransformSetDirective: …

Set the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersNoTransformRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20no-transform">Link to this property</a>

<details>

<summary>

private: Optional\[RulesetRuleSetCacheControlRuleActionParametersPrivate]

A cache-control directive configuration that accepts optional qualifiers (header names).

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersPrivateSetDirective: …

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

qualifiers: Optional\[List\[str]]

Optional list of header names to qualify the directive (e.g., for “private” or “no-cache” directives).

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200%20%3E%20(property)%20qualifiers">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersPrivateRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20private">Link to this property</a>

<details>

<summary>

proxy\_revalidate: Optional\[RulesetRuleSetCacheControlRuleActionParametersProxyRevalidate]

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersProxyRevalidateSetDirective: …

Set the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20proxy-revalidate">Link to this property</a>

<details>

<summary>

public: Optional\[RulesetRuleSetCacheControlRuleActionParametersPublic]

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersPublicSetDirective: …

Set the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersPublicRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20public">Link to this property</a>

<details>

<summary>

s\_maxage: Optional\[RulesetRuleSetCacheControlRuleActionParametersSMaxage]

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersSMaxageSetDirective: …

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: int

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersSMaxageRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20s-maxage">Link to this property</a>

<details>

<summary>

stale\_if\_error: Optional\[RulesetRuleSetCacheControlRuleActionParametersStaleIfError]

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersStaleIfErrorSetDirective: …

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: int

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-if-error">Link to this property</a>

<details>

<summary>

stale\_while\_revalidate: Optional\[RulesetRuleSetCacheControlRuleActionParametersStaleWhileRevalidate]

A cache-control directive configuration that accepts a duration value in seconds.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective: …

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

value: int

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20value">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective: …

Remove the directive.

</summary>

<details>

<summary>

operation: Literal\["set", "remove"]

The operation to perform on the cache-control directive.

</summary>

One of the following:

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

cloudflare\_only: Optional\[bool]

Whether the directive should only be applied to the Cloudflare CDN cache.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201%20%3E%20(property)%20cloudflare_only">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters%20%3E%20(property)%20stale-while-revalidate">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action_parameters">Link to this property</a>

categories: Optional\[List\[str]]

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20categories">Link to this property</a>

description: Optional\[str]

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

exposed\_credential\_check: Optional\[RulesetRuleSetCacheControlRuleExposedCredentialCheck]

Configuration for exposed credential checking.

</summary>

password\_expression: str

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: str

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

<details>

<summary>

logging: Optional\[Logging]

An object configuring the rule’s logging behavior.

</summary>

enabled: bool

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit: Optional\[RulesetRuleSetCacheControlRuleRatelimit]

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: List\[str]

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: int

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression: Optional\[str]

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout: Optional\[int]

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period: Optional\[int]

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin: Optional\[bool]

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period: Optional\[int]

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name: Optional\[str]

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2015">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheSettingsRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2016">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheTagsRule: …

</summary>

id: str

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20id">Link to this property</a>

action: Literal\["set\_cache\_tags"]

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20expression">Link to this property</a>

last\_updated: datetime

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20last_updated">Link to this property</a>

ref: str

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ref">Link to this property</a>

version: str

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20version">Link to this property</a>

<details>

<summary>

action\_parameters: Optional\[RulesetRuleSetCacheTagsRuleActionParameters]

The parameters configuring the rule’s action.

</summary>

One of the following:

<details>

<summary>

class RulesetRuleSetCacheTagsRuleActionParametersAddCacheTagsValues: …

Add cache tags using a list of values.

</summary>

<details>

<summary>

operation: Literal\["add", "remove", "set"]

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20operation">Link to this property</a>

values: List\[str]

A list of cache tag values.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheTagsRuleActionParametersAddCacheTagsExpression: …

Add cache tags using an expression.

</summary>

expression: str

An expression that evaluates to an array of cache tag values.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

operation: Literal\["add", "remove", "set"]

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheTagsRuleActionParametersRemoveCacheTagsValues: …

Remove cache tags using a list of values.

</summary>

<details>

<summary>

operation: Literal\["add", "remove", "set"]

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20operation">Link to this property</a>

values: List\[str]

A list of cache tag values.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheTagsRuleActionParametersRemoveCacheTagsExpression: …

Remove cache tags using an expression.

</summary>

expression: str

An expression that evaluates to an array of cache tag values.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

operation: Literal\["add", "remove", "set"]

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheTagsRuleActionParametersSetCacheTagsValues: …

Set cache tags using a list of values.

</summary>

<details>

<summary>

operation: Literal\["add", "remove", "set"]

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20operation">Link to this property</a>

values: List\[str]

A list of cache tag values.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204%20%3E%20(property)%20values">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

class RulesetRuleSetCacheTagsRuleActionParametersSetCacheTagsExpression: …

Set cache tags using an expression.

</summary>

expression: str

An expression that evaluates to an array of cache tag values.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20expression">Link to this property</a>

<details>

<summary>

operation: Literal\["add", "remove", "set"]

The operation to perform on the cache tags.

</summary>

One of the following:

"add"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation%20%3E%20(member)%200">Link to this property</a>

"remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation%20%3E%20(member)%201">Link to this property</a>

"set"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205%20%3E%20(property)%20operation">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters%20%3E%20(variant)%205">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action_parameters">Link to this property</a>

categories: Optional\[List\[str]]

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20categories">Link to this property</a>

description: Optional\[str]

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

exposed\_credential\_check: Optional\[RulesetRuleSetCacheTagsRuleExposedCredentialCheck]

Configuration for exposed credential checking.

</summary>

password\_expression: str

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: str

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

<details>

<summary>

logging: Optional\[Logging]

An object configuring the rule’s logging behavior.

</summary>

enabled: bool

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit: Optional\[RulesetRuleSetCacheTagsRuleRatelimit]

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: List\[str]

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: int

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression: Optional\[str]

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout: Optional\[int]

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period: Optional\[int]

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin: Optional\[bool]

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period: Optional\[int]

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name: Optional\[str]

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2017">Link to this property</a>

<details>

<summary>

class RulesetRuleSetConfigurationRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2018">Link to this property</a>

<details>

<summary>

class RulesetRuleSkipRule: …

</summary>

id: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(entry)%201%20%3E%20(property)%20id">Link to this property</a>

action: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(entry)%201%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(entry)%201%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(entry)%201%20%3E%20(property)%20expression">Link to this property</a>

ref: str

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019%20%3E%20(entry)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2019">Link to this property</a>

<details>

<summary>

class RulesetRuleTransformResponseHTMLRule: …

</summary>

id: str

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20id">Link to this property</a>

action: Literal\["transform\_response\_html"]

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20action">Link to this property</a>

enabled: bool

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20enabled">Link to this property</a>

expression: str

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20expression">Link to this property</a>

last\_updated: datetime

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20last_updated">Link to this property</a>

ref: str

The reference of the rule (the rule’s ID by default).

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ref">Link to this property</a>

version: str

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20version">Link to this property</a>

<details>

<summary>

action\_parameters: Optional\[RulesetRuleTransformResponseHTMLRuleActionParameters]

The parameters configuring the rule’s action.

</summary>

link\_maze: object

Enables the link maze transformation on the response.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20action_parameters%20%3E%20(property)%20link_maze">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20action_parameters">Link to this property</a>

categories: Optional\[List\[str]]

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20categories">Link to this property</a>

description: Optional\[str]

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20description">Link to this property</a>

<details>

<summary>

exposed\_credential\_check: Optional\[RulesetRuleTransformResponseHTMLRuleExposedCredentialCheck]

Configuration for exposed credential checking.

</summary>

password\_expression: str

An expression that selects the password used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20password_expression">Link to this property</a>

username\_expression: str

An expression that selects the user ID used in the credentials check.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

<details>

<summary>

logging: Optional\[Logging]

An object configuring the rule’s logging behavior.

</summary>

enabled: bool

Whether to generate a log when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

ratelimit: Optional\[RulesetRuleTransformResponseHTMLRuleRatelimit]

An object configuring the rule’s rate limit behavior.

</summary>

characteristics: List\[str]

Characteristics of the request on which the rate limit counter will be incremented.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20characteristics">Link to this property</a>

period: int

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20period">Link to this property</a>

counting\_expression: Optional\[str]

An expression that defines when the rate limit counter should be incremented. It defaults to the same as the rule’s expression.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20counting_expression">Link to this property</a>

mitigation\_timeout: Optional\[int]

Period of time in seconds after which the action will be disabled following its first execution.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20mitigation_timeout">Link to this property</a>

requests\_per\_period: Optional\[int]

The threshold of requests per period after which the action will be executed for the first time.

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_per_period">Link to this property</a>

requests\_to\_origin: Optional\[bool]

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20requests_to_origin">Link to this property</a>

score\_per\_period: Optional\[int]

The score threshold per period for which the action will be executed the first time.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_per_period">Link to this property</a>

score\_response\_header\_name: Optional\[str]

A response header name provided by the origin, which contains the score to increment rate limit counter with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(variant)%2020">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20rules">Link to this property</a>

version: str

The version of the ruleset.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20version">Link to this property</a>

description: Optional\[str]

An informative description of the ruleset.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20description">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

Optional\[object]

Returned when dry\_run is true.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(model)%20rule_create_response%20%3E%20(schema)>)

### Create an account or zone ruleset rule

Python

HTTPTypeScriptPythonGoTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
rule = client.rulesets.rules.create(
    ruleset_id="2f2feab2026849078ba485f918791bdc",
    account_id="account_id",
)
print(rule)
```

200 example

```
{
  "errors": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "messages": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "result": {
    "id": "2f2feab2026849078ba485f918791bdc",
    "kind": "root",
    "last_updated": "2000-01-01T00:00:00Z",
    "name": "My ruleset",
    "phase": "http_request_firewall_custom",
    "rules": [
      {
        "last_updated": "2000-01-01T00:00:00Z",
        "version": "1",
        "id": "id",
        "action": "action",
        "action_parameters": {
          "response": {
            "content": "{\n  \"success\": false,\n  \"error\": \"you have been blocked\"\n}",
            "content_type": "application/json",
            "status_code": 400
          }
        },
        "categories": [
          "directory-traversal"
        ],
        "description": "Block the request.",
        "enabled": true,
        "exposed_credential_check": {
          "password_expression": "url_decode(http.request.body.form[\\\"password\\\"][0])",
          "username_expression": "url_decode(http.request.body.form[\\\"username\\\"][0])"
        },
        "expression": "expression",
        "logging": {
          "enabled": true
        },
        "ratelimit": {
          "characteristics": [
            "cf.colo.id"
          ],
          "period": 60,
          "counting_expression": "http.request.body.raw eq \"abcd\"",
          "mitigation_timeout": 600,
          "requests_per_period": 1000,
          "requests_to_origin": true,
          "score_per_period": 400,
          "score_response_header_name": "my-score"
        },
        "ref": "ref"
      }
    ],
    "version": "1",
    "description": "A description for my ruleset."
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "messages": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "result": {
    "id": "2f2feab2026849078ba485f918791bdc",
    "kind": "root",
    "last_updated": "2000-01-01T00:00:00Z",
    "name": "My ruleset",
    "phase": "http_request_firewall_custom",
    "rules": [
      {
        "last_updated": "2000-01-01T00:00:00Z",
        "version": "1",
        "id": "id",
        "action": "action",
        "action_parameters": {
          "response": {
            "content": "{\n  \"success\": false,\n  \"error\": \"you have been blocked\"\n}",
            "content_type": "application/json",
            "status_code": 400
          }
        },
        "categories": [
          "directory-traversal"
        ],
        "description": "Block the request.",
        "enabled": true,
        "exposed_credential_check": {
          "password_expression": "url_decode(http.request.body.form[\\\"password\\\"][0])",
          "username_expression": "url_decode(http.request.body.form[\\\"username\\\"][0])"
        },
        "expression": "expression",
        "logging": {
          "enabled": true
        },
        "ratelimit": {
          "characteristics": [
            "cf.colo.id"
          ],
          "period": 60,
          "counting_expression": "http.request.body.raw eq \"abcd\"",
          "mitigation_timeout": 600,
          "requests_per_period": 1000,
          "requests_to_origin": true,
          "score_per_period": 400,
          "score_response_header_name": "my-score"
        },
        "ref": "ref"
      }
    ],
    "version": "1",
    "description": "A description for my ruleset."
  },
  "success": true
}
```