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

[Skip to content](#_top)

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

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

[Rules](https://developers.cloudflare.com/api/go/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

client.Rulesets.Rules.New(ctx, rulesetID, params) (\*RuleNewResponseEnvelopeResult, error)

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

rulesetID string

The unique ID of the ruleset.

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

<details>

<summary>

params RuleNewParams

</summary>

AccountID param.Field\[string]Optional

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

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

ZoneID param.Field\[string]Optional

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

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

DryRun param.Field\[bool]Optional

Query param: Validates the request without persisting changes when set to <code>true</code>. Responses that normally return 200 return <code>result: null</code>; endpoints that normally return 204 continue to return 204.

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

ID param.Field\[string]Optional

Body param: The unique ID of the rule.

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

<details>

<summary>

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

Body param: The action to perform when the rule matches.

</summary>

const RuleNewParamsBlockRuleActionBlock <a href="https://developers.cloudflare.com/api/go/resources/rulesets/subresources/rules/methods/create#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20action%20%3E%20(schema)">RuleNewParamsBlockRuleAction</a> = "block"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20action%20%3E%20(schema)%20%3E%20(member)%200">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">Link to this property</a>

<details>

<summary>

ActionParameters param.Field\[<a href="https://developers.cloudflare.com/api/go/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)">RuleNewParamsBlockRuleActionParameters</a>]Optional

Body param: The parameters configuring the rule’s action.

</summary>

<details>

<summary>

Response RuleNewParamsBlockRuleActionParametersResponseOptional

The response to show when the block is applied.

</summary>

Content string

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>

ContentType string

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>

StatusCode int64

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>

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

Description param.Field\[string]Optional

Body param: An informative description of the rule.

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

Enabled param.Field\[bool]Optional

Body param: Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck param.Field\[<a href="https://developers.cloudflare.com/api/go/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)">RuleNewParamsBlockRuleExposedCredentialCheck</a>]Optional

Body param: Configuration for exposed credential checking.

</summary>

PasswordExpression string

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>

UsernameExpression string

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>

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

Expression param.Field\[string]Optional

Body param: The expression defining which traffic will match the rule.

minLength1

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

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

Body param: An object configuring the rule’s logging behavior.

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

<details>

<summary>

Position param.Field\[<a href="https://developers.cloudflare.com/api/go/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)">RuleNewParamsBlockRulePosition</a>]Optional

Body param: An object configuring where the rule will be placed.

</summary>

<details>

<summary>

RuleNewParamsBlockRulePositionBeforePosition

</summary>

Before stringOptional

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>

RuleNewParamsBlockRulePositionAfterPosition

</summary>

After stringOptional

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>

RuleNewParamsBlockRulePositionIndexPosition

</summary>

Index int64Optional

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>

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

<details>

<summary>

Ratelimit param.Field\[<a href="https://developers.cloudflare.com/api/go/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)">RuleNewParamsBlockRuleRatelimit</a>]Optional

Body param: An object configuring the rule’s rate limit behavior.

</summary>

Characteristics \[]string

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 int64

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>

CountingExpression stringOptional

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>

MitigationTimeout int64Optional

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>

RequestsPerPeriod int64Optional

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>

RequestsToOrigin boolOptional

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>

ScorePerPeriod int64Optional

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>

ScoreResponseHeaderName stringOptional

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>

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

Ref param.Field\[string]Optional

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

minLength1

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

</details>

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

##### ReturnsExpand Collapse

<details>

<summary>

type RuleNewResponseEnvelopeResult interface{…}

A result.

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResult struct{…}

A ruleset object.

</summary>

ID string

The unique ID of the ruleset.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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/go/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:

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%20%3E%20(property)%20kind">Link to this property</a>

LastUpdated Time

The timestamp of when the ruleset was last modified.

formatdate-time

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

Name string

The human-readable name of the ruleset.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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/go/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:

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPConfigSettings <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_config\_settings"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPCustomErrors <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_custom\_errors"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPLogCustomFields <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_log\_custom\_fields"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPRequestCacheSettings <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_request\_cache\_settings"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPRequestDynamicRedirect <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_request\_dynamic\_redirect"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPRequestFirewallCustom <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_request\_firewall\_custom"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPRequestFirewallManaged <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_request\_firewall\_managed"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPRequestLateTransform <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_request\_late\_transform"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPRequestOrigin <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_request\_origin"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPRequestRedirect <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_request\_redirect"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPRequestSanitize <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_request\_sanitize"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPRequestSBFM <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_request\_sbfm"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPRequestTransform <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_request\_transform"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPResponseCacheSettings <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_response\_cache\_settings"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPResponseCompression <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_response\_compression"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPResponseFirewallManaged <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_response\_firewall\_managed"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseHTTPResponseHeadersTransform <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "http\_response\_headers\_transform"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseMagicTransitIDsManaged <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "magic\_transit\_ids\_managed"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseMagicTransitManaged <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "magic\_transit\_managed"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const PhaseMagicTransitRatelimit <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets%20%3E%20(model)%20phase%20%3E%20(schema)">Phase</a> = "magic\_transit\_ratelimit"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%20%3E%20(property)%20phase">Link to this property</a>

<details>

<summary>

Rules \[]RuleNewResponseEnvelopeResultRules

The list of rules in the ruleset.

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesBlockRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesChallengeRule struct{…}

</summary>

ID string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesChallengeRuleAction

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

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

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ActionParameters unknownOptional

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 \[]stringOptional

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 stringOptional

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ExposedCredentialCheck RuleNewResponseEnvelopeResultRulesChallengeRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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(network%20schema)%20%3E%20(property)%20result%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>

UsernameExpression string

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a>Optional

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesChallengeRuleRatelimitOptional

An object configuring the rule’s rate limit behavior.

</summary>

Characteristics \[]string

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(network%20schema)%20%3E%20(property)%20result%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 int64

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CountingExpression stringOptional

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(network%20schema)%20%3E%20(property)%20result%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>

MitigationTimeout int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

RequestsPerPeriod int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

RequestsToOrigin boolOptional

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ScorePerPeriod int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

ScoreResponseHeaderName stringOptional

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesResponseCompressionRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesDDoSDynamicRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesExecuteRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesForceConnectionCloseRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesJavaScriptChallengeRule struct{…}

</summary>

ID string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesJavaScriptChallengeRuleAction

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

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

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ActionParameters unknownOptional

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 \[]stringOptional

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 stringOptional

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ExposedCredentialCheck RuleNewResponseEnvelopeResultRulesJavaScriptChallengeRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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(network%20schema)%20%3E%20(property)%20result%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>

UsernameExpression string

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a>Optional

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesJavaScriptChallengeRuleRatelimitOptional

An object configuring the rule’s rate limit behavior.

</summary>

Characteristics \[]string

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(network%20schema)%20%3E%20(property)%20result%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 int64

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CountingExpression stringOptional

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(network%20schema)%20%3E%20(property)%20result%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>

MitigationTimeout int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

RequestsPerPeriod int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

RequestsToOrigin boolOptional

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ScorePerPeriod int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

ScoreResponseHeaderName stringOptional

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesLogRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesLogCustomFieldRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesManagedChallengeRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesRedirectRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesRewriteRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesRouteRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesScoreRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesServeErrorRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRule struct{…}

</summary>

ID string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesSetCacheControlRuleAction

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

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

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ActionParameters RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

Immutable RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

MaxAge RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeOptional

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

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 int64

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

MustRevalidate RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

MustUnderstand RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

NoCache RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheOptional

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

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirective struct{…}

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 \[]stringOptional

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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

NoStore RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

NoTransform RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateOptional

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

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirective struct{…}

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 \[]stringOptional

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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ProxyRevalidate RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

SMaxage RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageOptional

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

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 int64

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

StaleIfError RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorOptional

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

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 int64

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

StaleWhileRevalidate RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateOptional

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

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 int64

The duration value in seconds for the directive.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CloudflareOnly boolOptional

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

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 \[]stringOptional

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 stringOptional

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ExposedCredentialCheck RuleNewResponseEnvelopeResultRulesSetCacheControlRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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(network%20schema)%20%3E%20(property)%20result%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>

UsernameExpression string

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a>Optional

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesSetCacheControlRuleRatelimitOptional

An object configuring the rule’s rate limit behavior.

</summary>

Characteristics \[]string

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(network%20schema)%20%3E%20(property)%20result%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 int64

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CountingExpression stringOptional

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(network%20schema)%20%3E%20(property)%20result%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>

MitigationTimeout int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

RequestsPerPeriod int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

RequestsToOrigin boolOptional

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ScorePerPeriod int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

ScoreResponseHeaderName stringOptional

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheSettingsRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheTagsRule struct{…}

</summary>

ID string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleAction

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

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

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ActionParameters RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

One of the following:

<details>

<summary>

type RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValues struct{…}

Add cache tags using a list of values.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 \[]string

A list of cache tag values.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpression struct{…}

Add cache tags using an expression.

</summary>

Expression string

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

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct{…}

Remove cache tags using a list of values.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 \[]string

A list of cache tag values.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpression struct{…}

Remove cache tags using an expression.

</summary>

Expression string

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

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValues struct{…}

Set cache tags using a list of values.

</summary>

<details>

<summary>

Operation RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 \[]string

A list of cache tag values.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpression struct{…}

Set cache tags using an expression.

</summary>

Expression string

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

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

const RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 \[]stringOptional

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 stringOptional

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ExposedCredentialCheck RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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(network%20schema)%20%3E%20(property)%20result%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>

UsernameExpression string

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a>Optional

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesSetCacheTagsRuleRatelimitOptional

An object configuring the rule’s rate limit behavior.

</summary>

Characteristics \[]string

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(network%20schema)%20%3E%20(property)%20result%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 int64

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CountingExpression stringOptional

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(network%20schema)%20%3E%20(property)%20result%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>

MitigationTimeout int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

RequestsPerPeriod int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

RequestsToOrigin boolOptional

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ScorePerPeriod int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

ScoreResponseHeaderName stringOptional

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSetConfigurationRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesSkipRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

type RuleNewResponseEnvelopeResultRulesTransformResponseHTMLRule struct{…}

</summary>

ID string

The unique ID of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesTransformResponseHTMLRuleAction

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

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

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 string

The version of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ActionParameters RuleNewResponseEnvelopeResultRulesTransformResponseHTMLRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

LinkMaze unknown

Enables the link maze transformation on the response.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 \[]stringOptional

The categories of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 stringOptional

An informative description of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ExposedCredentialCheck RuleNewResponseEnvelopeResultRulesTransformResponseHTMLRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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(network%20schema)%20%3E%20(property)%20result%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>

UsernameExpression string

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 <a href="https://developers.cloudflare.com/api/go/resources/rulesets#(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)">Logging</a>Optional

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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 RuleNewResponseEnvelopeResultRulesTransformResponseHTMLRuleRatelimitOptional

An object configuring the rule’s rate limit behavior.

</summary>

Characteristics \[]string

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(network%20schema)%20%3E%20(property)%20result%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 int64

Period in seconds over which the counter is being incremented.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

CountingExpression stringOptional

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(network%20schema)%20%3E%20(property)%20result%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>

MitigationTimeout int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

RequestsPerPeriod int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

RequestsToOrigin boolOptional

Whether counting is only performed when an origin is reached.

<a href="#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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>

ScorePerPeriod int64Optional

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(network%20schema)%20%3E%20(property)%20result%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>

ScoreResponseHeaderName stringOptional

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(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%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(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%20%3E%20(property)%20rules">Link to this property</a>

Version string

The version of the ruleset.

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

Description stringOptional

An informative description of the ruleset.

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

</details>

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

</details>

[Link to this property](<#(resource)%20rulesets.rules%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result>)

### Create an account or zone ruleset rule

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/rulesets"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  rule, err := client.Rulesets.Rules.New(
    context.TODO(),
    "2f2feab2026849078ba485f918791bdc",
    rulesets.RuleNewParams{
      Body: rulesets.RuleNewParamsBodyBlockRule(rulesets.RuleNewParamsBodyBlockRule{
        BlockRuleParam: rulesets.BlockRuleParam{

        },
      }),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", 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
}
```