---
title: Update an account or zone ruleset
---

[Skip to content](#_top)

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

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

Copy Markdown

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

---

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

# Update an account or zone ruleset

client.Rulesets.Update(ctx, rulesetID, params) (\*RulesetUpdateResponseEnvelopeResult, error)

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

Updates an account or zone ruleset, creating a new version.

##### 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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_id%20%3E%20(schema)>)

<details>

<summary>

params RulesetUpdateParams

</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%20%3E%20(method)%20update%20%3E%20(params)%20default%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%20%3E%20(method)%20update%20%3E%20(params)%20default%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20dry_run">Link to this property</a>

Description param.Field\[string]Optional

Body param: An informative description of the ruleset.

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

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

Body param: The kind of the ruleset.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20kind">Link to this property</a>

Name param.Field\[string]Optional

Body param: The human-readable name of the ruleset.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20name">Link to this property</a>

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

Body param: The phase of the ruleset.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20phase">Link to this property</a>

<details>

<summary>

Rules param.Field\[\[]RulesetUpdateParamsRule]Optional

Body param: The list of rules in the ruleset.

</summary>

<details>

<summary>

type BlockRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action BlockRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters BlockRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

Response BlockRuleActionParametersResponseOptional

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(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%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(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%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(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%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(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%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(model)%20block_rule%20%3E%20(schema)%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(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck BlockRuleExposedCredentialCheckOptional

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(model)%20block_rule%20%3E%20(schema)%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(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit BlockRuleRatelimitOptional

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(model)%20block_rule%20%3E%20(schema)%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(model)%20block_rule%20%3E%20(schema)%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(model)%20block_rule%20%3E%20(schema)%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(model)%20block_rule%20%3E%20(schema)%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(model)%20block_rule%20%3E%20(schema)%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(model)%20block_rule%20%3E%20(schema)%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(model)%20block_rule%20%3E%20(schema)%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(model)%20block_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsChallengeRule struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20last_updated">Link to this property</a>

Version string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20version">Link to this property</a>

ID stringOptional

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

Action RulesetUpdateParamsRulesRulesetsChallengeRuleActionOptional

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20action">Link to this property</a>

ActionParameters unknownOptional

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

ExposedCredentialCheck RulesetUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20expression">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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

Ratelimit RulesetUpdateParamsRulesRulesetsChallengeRuleRatelimitOptional

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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ratelimit">Link to this property</a>

Ref stringOptional

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

type CompressResponseRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action CompressResponseRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters CompressResponseRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

Algorithms \[]CompressResponseRuleActionParametersAlgorithm

Custom order for compression algorithms.

</summary>

<details>

<summary>

Name CompressResponseRuleActionParametersAlgorithmsNameOptional

Name of the compression algorithm to enable.

</summary>

One of the following:

const CompressResponseRuleActionParametersAlgorithmsNameNone CompressResponseRuleActionParametersAlgorithmsName = "none"

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

const CompressResponseRuleActionParametersAlgorithmsNameAuto CompressResponseRuleActionParametersAlgorithmsName = "auto"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name%20%3E%20(member)%201">Link to this property</a>

const CompressResponseRuleActionParametersAlgorithmsNameDefault CompressResponseRuleActionParametersAlgorithmsName = "default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name%20%3E%20(member)%202">Link to this property</a>

const CompressResponseRuleActionParametersAlgorithmsNameGzip CompressResponseRuleActionParametersAlgorithmsName = "gzip"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name%20%3E%20(member)%203">Link to this property</a>

const CompressResponseRuleActionParametersAlgorithmsNameBrotli CompressResponseRuleActionParametersAlgorithmsName = "brotli"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name%20%3E%20(member)%204">Link to this property</a>

const CompressResponseRuleActionParametersAlgorithmsNameZstd CompressResponseRuleActionParametersAlgorithmsName = "zstd"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20algorithms%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

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

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%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(model)%20compress_response_rule%20%3E%20(schema)%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(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck CompressResponseRuleExposedCredentialCheckOptional

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(model)%20compress_response_rule%20%3E%20(schema)%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(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit CompressResponseRuleRatelimitOptional

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(model)%20compress_response_rule%20%3E%20(schema)%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(model)%20compress_response_rule%20%3E%20(schema)%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(model)%20compress_response_rule%20%3E%20(schema)%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(model)%20compress_response_rule%20%3E%20(schema)%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(model)%20compress_response_rule%20%3E%20(schema)%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(model)%20compress_response_rule%20%3E%20(schema)%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(model)%20compress_response_rule%20%3E%20(schema)%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(model)%20compress_response_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type DDoSDynamicRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action DDoSDynamicRuleActionOptional

The action to perform when the rule matches.

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

ActionParameters unknownOptional

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%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(model)%20ddos_dynamic_rule%20%3E%20(schema)%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(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck DDoSDynamicRuleExposedCredentialCheckOptional

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(model)%20ddos_dynamic_rule%20%3E%20(schema)%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(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit DDoSDynamicRuleRatelimitOptional

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(model)%20ddos_dynamic_rule%20%3E%20(schema)%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(model)%20ddos_dynamic_rule%20%3E%20(schema)%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(model)%20ddos_dynamic_rule%20%3E%20(schema)%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(model)%20ddos_dynamic_rule%20%3E%20(schema)%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(model)%20ddos_dynamic_rule%20%3E%20(schema)%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(model)%20ddos_dynamic_rule%20%3E%20(schema)%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(model)%20ddos_dynamic_rule%20%3E%20(schema)%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(model)%20ddos_dynamic_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type ExecuteRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action ExecuteRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters ExecuteRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

ID string

The ID of the ruleset to execute.

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

<details>

<summary>

MatchedData ExecuteRuleActionParametersMatchedDataOptional

The configuration to use for matched data logging.

</summary>

PublicKey string

The public key to encrypt matched data logs with.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20matched_data%20%3E%20(property)%20public_key">Link to this property</a>

</details>

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

<details>

<summary>

Overrides ExecuteRuleActionParametersOverridesOptional

A set of overrides to apply to the target ruleset.

</summary>

Action stringOptional

An action to override all rules with. This option has lower precedence than rule and category overrides.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

Categories \[]ExecuteRuleActionParametersOverridesCategoryOptional

A list of category-level overrides. This option has the second-highest precedence after rule-level overrides.

</summary>

Category string

The name of the category to override.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20category">Link to this property</a>

Action stringOptional

The action to override rules in the category with.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20action">Link to this property</a>

Enabled boolOptional

Whether to enable execution of rules in the category.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

SensitivityLevel ExecuteRuleActionParametersOverridesCategoriesSensitivityLevelOptional

The sensitivity level to use for rules in the category. This option is only applicable for DDoS phases.

</summary>

One of the following:

const ExecuteRuleActionParametersOverridesCategoriesSensitivityLevelDefault ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel = "default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%200">Link to this property</a>

const ExecuteRuleActionParametersOverridesCategoriesSensitivityLevelMedium ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel = "medium"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%201">Link to this property</a>

const ExecuteRuleActionParametersOverridesCategoriesSensitivityLevelLow ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel = "low"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%202">Link to this property</a>

const ExecuteRuleActionParametersOverridesCategoriesSensitivityLevelEoff ExecuteRuleActionParametersOverridesCategoriesSensitivityLevel = "eoff"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories%20%3E%20(items)%20%3E%20(property)%20sensitivity_level">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20categories">Link to this property</a>

Enabled boolOptional

Whether to enable execution of all rules. This option has lower precedence than rule and category overrides.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

Rules \[]ExecuteRuleActionParametersOverridesRuleOptional

A list of rule-level overrides. This option has the highest precedence.

</summary>

ID string

The ID of the rule to override.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

Action stringOptional

The action to override the rule with.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20action">Link to this property</a>

Enabled boolOptional

Whether to enable execution of the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20enabled">Link to this property</a>

ScoreThreshold int64Optional

The score threshold to use for the rule.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20score_threshold">Link to this property</a>

<details>

<summary>

SensitivityLevel ExecuteRuleActionParametersOverridesRulesSensitivityLevelOptional

The sensitivity level to use for the rule. This option is only applicable for DDoS phases.

</summary>

One of the following:

const ExecuteRuleActionParametersOverridesRulesSensitivityLevelDefault ExecuteRuleActionParametersOverridesRulesSensitivityLevel = "default"

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

const ExecuteRuleActionParametersOverridesRulesSensitivityLevelMedium ExecuteRuleActionParametersOverridesRulesSensitivityLevel = "medium"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%201">Link to this property</a>

const ExecuteRuleActionParametersOverridesRulesSensitivityLevelLow ExecuteRuleActionParametersOverridesRulesSensitivityLevel = "low"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%202">Link to this property</a>

const ExecuteRuleActionParametersOverridesRulesSensitivityLevelEoff ExecuteRuleActionParametersOverridesRulesSensitivityLevel = "eoff"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20rules%20%3E%20(items)%20%3E%20(property)%20sensitivity_level">Link to this property</a>

</details>

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

<details>

<summary>

SensitivityLevel ExecuteRuleActionParametersOverridesSensitivityLevelOptional

A sensitivity level to set for all rules. This option has lower precedence than rule and category overrides and is only applicable for DDoS phases.

</summary>

One of the following:

const ExecuteRuleActionParametersOverridesSensitivityLevelDefault ExecuteRuleActionParametersOverridesSensitivityLevel = "default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%200">Link to this property</a>

const ExecuteRuleActionParametersOverridesSensitivityLevelMedium ExecuteRuleActionParametersOverridesSensitivityLevel = "medium"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%201">Link to this property</a>

const ExecuteRuleActionParametersOverridesSensitivityLevelLow ExecuteRuleActionParametersOverridesSensitivityLevel = "low"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%202">Link to this property</a>

const ExecuteRuleActionParametersOverridesSensitivityLevelEoff ExecuteRuleActionParametersOverridesSensitivityLevel = "eoff"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20sensitivity_level%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20overrides%20%3E%20(property)%20sensitivity_level">Link to this property</a>

</details>

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

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%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(model)%20execute_rule%20%3E%20(schema)%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(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck ExecuteRuleExposedCredentialCheckOptional

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(model)%20execute_rule%20%3E%20(schema)%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(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit ExecuteRuleRatelimitOptional

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(model)%20execute_rule%20%3E%20(schema)%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(model)%20execute_rule%20%3E%20(schema)%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(model)%20execute_rule%20%3E%20(schema)%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(model)%20execute_rule%20%3E%20(schema)%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(model)%20execute_rule%20%3E%20(schema)%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(model)%20execute_rule%20%3E%20(schema)%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(model)%20execute_rule%20%3E%20(schema)%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(model)%20execute_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type ForceConnectionCloseRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action ForceConnectionCloseRuleActionOptional

The action to perform when the rule matches.

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

ActionParameters unknownOptional

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%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(model)%20force_connection_close_rule%20%3E%20(schema)%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(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck ForceConnectionCloseRuleExposedCredentialCheckOptional

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(model)%20force_connection_close_rule%20%3E%20(schema)%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(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit ForceConnectionCloseRuleRatelimitOptional

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(model)%20force_connection_close_rule%20%3E%20(schema)%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(model)%20force_connection_close_rule%20%3E%20(schema)%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(model)%20force_connection_close_rule%20%3E%20(schema)%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(model)%20force_connection_close_rule%20%3E%20(schema)%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(model)%20force_connection_close_rule%20%3E%20(schema)%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(model)%20force_connection_close_rule%20%3E%20(schema)%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(model)%20force_connection_close_rule%20%3E%20(schema)%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(model)%20force_connection_close_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsJSChallengeRule struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20last_updated">Link to this property</a>

Version string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20version">Link to this property</a>

ID stringOptional

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20id">Link to this property</a>

Action RulesetUpdateParamsRulesRulesetsJSChallengeRuleActionOptional

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20action">Link to this property</a>

ActionParameters unknownOptional

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

ExposedCredentialCheck RulesetUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20expression">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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

Ratelimit RulesetUpdateParamsRulesRulesetsJSChallengeRuleRatelimitOptional

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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ratelimit">Link to this property</a>

Ref stringOptional

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

type LogRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action LogRuleActionOptional

The action to perform when the rule matches.

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

ActionParameters unknownOptional

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%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(model)%20log_rule%20%3E%20(schema)%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(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck LogRuleExposedCredentialCheckOptional

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(model)%20log_rule%20%3E%20(schema)%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(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit LogRuleRatelimitOptional

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(model)%20log_rule%20%3E%20(schema)%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(model)%20log_rule%20%3E%20(schema)%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(model)%20log_rule%20%3E%20(schema)%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(model)%20log_rule%20%3E%20(schema)%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(model)%20log_rule%20%3E%20(schema)%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(model)%20log_rule%20%3E%20(schema)%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(model)%20log_rule%20%3E%20(schema)%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(model)%20log_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type LogCustomFieldRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action LogCustomFieldRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters LogCustomFieldRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

CookieFields \[]LogCustomFieldRuleActionParametersCookieFieldOptional

The cookie fields to log.

</summary>

Name string

The name of the cookie.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cookie_fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

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

<details>

<summary>

RawResponseFields \[]LogCustomFieldRuleActionParametersRawResponseFieldOptional

The raw response fields to log.

</summary>

Name string

The name of the response header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20raw_response_fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

PreserveDuplicates boolOptional

Whether to log duplicate values of the same header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20raw_response_fields%20%3E%20(items)%20%3E%20(property)%20preserve_duplicates">Link to this property</a>

</details>

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

<details>

<summary>

RequestFields \[]LogCustomFieldRuleActionParametersRequestFieldOptional

The raw request fields to log.

</summary>

Name string

The name of the header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20request_fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

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

<details>

<summary>

ResponseFields \[]LogCustomFieldRuleActionParametersResponseFieldOptional

The transformed response fields to log.

</summary>

Name string

The name of the response header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response_fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

PreserveDuplicates boolOptional

Whether to log duplicate values of the same header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20response_fields%20%3E%20(items)%20%3E%20(property)%20preserve_duplicates">Link to this property</a>

</details>

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

<details>

<summary>

TransformedRequestFields \[]LogCustomFieldRuleActionParametersTransformedRequestFieldOptional

The transformed request fields to log.

</summary>

Name string

The name of the header.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20transformed_request_fields%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

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

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%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(model)%20log_custom_field_rule%20%3E%20(schema)%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(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck LogCustomFieldRuleExposedCredentialCheckOptional

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(model)%20log_custom_field_rule%20%3E%20(schema)%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(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit LogCustomFieldRuleRatelimitOptional

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(model)%20log_custom_field_rule%20%3E%20(schema)%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(model)%20log_custom_field_rule%20%3E%20(schema)%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(model)%20log_custom_field_rule%20%3E%20(schema)%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(model)%20log_custom_field_rule%20%3E%20(schema)%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(model)%20log_custom_field_rule%20%3E%20(schema)%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(model)%20log_custom_field_rule%20%3E%20(schema)%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(model)%20log_custom_field_rule%20%3E%20(schema)%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(model)%20log_custom_field_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type ManagedChallengeRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action ManagedChallengeRuleActionOptional

The action to perform when the rule matches.

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

ActionParameters unknownOptional

The parameters configuring the rule’s action.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%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(model)%20managed_challenge_rule%20%3E%20(schema)%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(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck ManagedChallengeRuleExposedCredentialCheckOptional

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(model)%20managed_challenge_rule%20%3E%20(schema)%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(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit ManagedChallengeRuleRatelimitOptional

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(model)%20managed_challenge_rule%20%3E%20(schema)%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(model)%20managed_challenge_rule%20%3E%20(schema)%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(model)%20managed_challenge_rule%20%3E%20(schema)%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(model)%20managed_challenge_rule%20%3E%20(schema)%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(model)%20managed_challenge_rule%20%3E%20(schema)%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(model)%20managed_challenge_rule%20%3E%20(schema)%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(model)%20managed_challenge_rule%20%3E%20(schema)%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(model)%20managed_challenge_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type RedirectRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action RedirectRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters RedirectRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

FromList RedirectRuleActionParametersFromListOptional

A redirect based on a bulk list lookup.

</summary>

Key string

An expression that evaluates to the list lookup key.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_list%20%3E%20(property)%20key">Link to this property</a>

Name string

The name of the list to match against.

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

</details>

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

<details>

<summary>

FromValue RedirectRuleActionParametersFromValueOptional

A redirect based on the request properties.

</summary>

<details>

<summary>

TargetURL RedirectRuleActionParametersFromValueTargetURL

A URL to redirect the request to.

</summary>

Expression stringOptional

An expression that evaluates to a URL to redirect the request to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20target_url%20%3E%20(property)%20expression">Link to this property</a>

Value stringOptional

A URL to redirect the request to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20target_url%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20target_url">Link to this property</a>

PreserveQueryString boolOptional

Whether to keep the query string of the original request.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20preserve_query_string">Link to this property</a>

<details>

<summary>

StatusCode RedirectRuleActionParametersFromValueStatusCodeOptional

The status code to use for the redirect.

</summary>

One of the following:

const RedirectRuleActionParametersFromValueStatusCode301 RedirectRuleActionParametersFromValueStatusCode = 301

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code%20%3E%20(member)%200">Link to this property</a>

const RedirectRuleActionParametersFromValueStatusCode302 RedirectRuleActionParametersFromValueStatusCode = 302

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code%20%3E%20(member)%201">Link to this property</a>

const RedirectRuleActionParametersFromValueStatusCode303 RedirectRuleActionParametersFromValueStatusCode = 303

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code%20%3E%20(member)%202">Link to this property</a>

const RedirectRuleActionParametersFromValueStatusCode307 RedirectRuleActionParametersFromValueStatusCode = 307

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code%20%3E%20(member)%203">Link to this property</a>

const RedirectRuleActionParametersFromValueStatusCode308 RedirectRuleActionParametersFromValueStatusCode = 308

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20from_value%20%3E%20(property)%20status_code">Link to this property</a>

</details>

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

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%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(model)%20redirect_rule%20%3E%20(schema)%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(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck RedirectRuleExposedCredentialCheckOptional

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(model)%20redirect_rule%20%3E%20(schema)%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(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit RedirectRuleRatelimitOptional

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(model)%20redirect_rule%20%3E%20(schema)%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(model)%20redirect_rule%20%3E%20(schema)%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(model)%20redirect_rule%20%3E%20(schema)%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(model)%20redirect_rule%20%3E%20(schema)%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(model)%20redirect_rule%20%3E%20(schema)%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(model)%20redirect_rule%20%3E%20(schema)%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(model)%20redirect_rule%20%3E%20(schema)%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(model)%20redirect_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type RewriteRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action RewriteRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters RewriteRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

Headers map\[string, RewriteRuleActionParametersHeader]Optional

A map of headers to rewrite.

</summary>

One of the following:

<details>

<summary>

type RewriteRuleActionParametersHeadersAddStaticHeaderParam struct{…}

A header with a static value to add.

</summary>

Operation RewriteRuleActionParametersHeadersAddStaticHeaderOperation

The operation to perform on the header.

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

Value string

A static value for the header.

minLength1

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

</details>

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

<details>

<summary>

type RewriteRuleActionParametersHeadersAddDynamicHeaderParam struct{…}

A header with a dynamic value to add.

</summary>

Expression string

An expression that evaluates to a value for the header.

minLength1

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

Operation RewriteRuleActionParametersHeadersAddDynamicHeaderOperation

The operation to perform on the header.

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

</details>

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

<details>

<summary>

type RewriteRuleActionParametersHeadersSetStaticHeaderParam struct{…}

A header with a static value to set.

</summary>

Operation RewriteRuleActionParametersHeadersSetStaticHeaderOperation

The operation to perform on the header.

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

Value string

A static value for the header.

minLength1

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

</details>

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

<details>

<summary>

type RewriteRuleActionParametersHeadersSetDynamicHeaderParam struct{…}

A header with a dynamic value to set.

</summary>

Expression string

An expression that evaluates to a value for the header.

minLength1

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

Operation RewriteRuleActionParametersHeadersSetDynamicHeaderOperation

The operation to perform on the header.

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

</details>

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

<details>

<summary>

type RewriteRuleActionParametersHeadersRemoveHeaderParam struct{…}

A header to remove.

</summary>

Operation RewriteRuleActionParametersHeadersRemoveHeaderOperation

The operation to perform on the header.

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

</details>

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

</details>

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

<details>

<summary>

URI RewriteRuleActionParametersURIOptional

A URI path rewrite.

</summary>

One of the following:

<details>

<summary>

type RewriteRuleActionParametersURIURIPathParam struct{…}

A URI path rewrite.

</summary>

<details>

<summary>

Path RewriteRuleActionParametersURIURIPathPath

A URI path rewrite.

</summary>

Expression stringOptional

An expression that evaluates to a value to rewrite the URI path to.

minLength1

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

Value stringOptional

A value to rewrite the URI path to.

minLength1

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

</details>

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

Origin boolOptional

Whether to propagate the rewritten URI to origin.

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

</details>

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

<details>

<summary>

type RewriteRuleActionParametersURIURIQueryParam struct{…}

A URI query rewrite.

</summary>

<details>

<summary>

Query RewriteRuleActionParametersURIURIQueryQuery

A URI query rewrite.

</summary>

Expression stringOptional

An expression that evaluates to a value to rewrite the URI query to.

minLength1

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

Value stringOptional

A value to rewrite the URI query to.

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

</details>

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

Origin boolOptional

Whether to propagate the rewritten URI to origin.

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

</details>

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

</details>

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

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%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(model)%20rewrite_rule%20%3E%20(schema)%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(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck RewriteRuleExposedCredentialCheckOptional

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(model)%20rewrite_rule%20%3E%20(schema)%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(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit RewriteRuleRatelimitOptional

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(model)%20rewrite_rule%20%3E%20(schema)%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(model)%20rewrite_rule%20%3E%20(schema)%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(model)%20rewrite_rule%20%3E%20(schema)%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(model)%20rewrite_rule%20%3E%20(schema)%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(model)%20rewrite_rule%20%3E%20(schema)%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(model)%20rewrite_rule%20%3E%20(schema)%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(model)%20rewrite_rule%20%3E%20(schema)%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(model)%20rewrite_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type RouteRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action RouteRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters RouteRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

HostHeader stringOptional

A value to rewrite the HTTP host header to.

minLength1

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

<details>

<summary>

Origin RouteRuleActionParametersOriginOptional

An origin to route to.

</summary>

Host stringOptional

A resolved host to route to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin%20%3E%20(property)%20host">Link to this property</a>

Port int64Optional

A destination port to route to.

maximum65535

minimum1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin%20%3E%20(property)%20port">Link to this property</a>

</details>

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

<details>

<summary>

SNI RouteRuleActionParametersSNIOptional

A Server Name Indication (SNI) override.

</summary>

Value string

A value to override the SNI to.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20sni%20%3E%20(property)%20value">Link to this property</a>

</details>

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

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%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(model)%20route_rule%20%3E%20(schema)%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(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether the rule should be executed.

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

<details>

<summary>

ExposedCredentialCheck RouteRuleExposedCredentialCheckOptional

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(model)%20route_rule%20%3E%20(schema)%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(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit RouteRuleRatelimitOptional

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(model)%20route_rule%20%3E%20(schema)%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(model)%20route_rule%20%3E%20(schema)%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(model)%20route_rule%20%3E%20(schema)%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(model)%20route_rule%20%3E%20(schema)%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(model)%20route_rule%20%3E%20(schema)%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(model)%20route_rule%20%3E%20(schema)%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(model)%20route_rule%20%3E%20(schema)%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(model)%20route_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type ScoreRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action ScoreRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters ScoreRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

Increment int64

A delta to change the score by, which can be either positive or negative.

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

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%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(model)%20score_rule%20%3E%20(schema)%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(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

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

<details>

<summary>

ExposedCredentialCheck ScoreRuleExposedCredentialCheckOptional

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(model)%20score_rule%20%3E%20(schema)%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(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit ScoreRuleRatelimitOptional

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(model)%20score_rule%20%3E%20(schema)%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(model)%20score_rule%20%3E%20(schema)%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(model)%20score_rule%20%3E%20(schema)%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(model)%20score_rule%20%3E%20(schema)%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(model)%20score_rule%20%3E%20(schema)%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(model)%20score_rule%20%3E%20(schema)%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(model)%20score_rule%20%3E%20(schema)%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(model)%20score_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type ServeErrorRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action ServeErrorRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters ServeErrorRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

One of the following:

<details>

<summary>

type ServeErrorRuleActionParametersActionParametersContentParam struct{…}

</summary>

Content string

The response content.

minLength1

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

<details>

<summary>

ContentType ServeErrorRuleActionParametersActionParametersContentContentTypeOptional

The content type header to set with the error response.

</summary>

One of the following:

const ServeErrorRuleActionParametersActionParametersContentContentTypeApplicationJson ServeErrorRuleActionParametersActionParametersContentContentType = "application/json"

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

const ServeErrorRuleActionParametersActionParametersContentContentTypeTextHTML ServeErrorRuleActionParametersActionParametersContentContentType = "text/html"

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

const ServeErrorRuleActionParametersActionParametersContentContentTypeTextPlain ServeErrorRuleActionParametersActionParametersContentContentType = "text/plain"

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

const ServeErrorRuleActionParametersActionParametersContentContentTypeTextXml ServeErrorRuleActionParametersActionParametersContentContentType = "text/xml"

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

</details>

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

StatusCode int64Optional

The status code to use for the error.

maximum999

minimum400

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

</details>

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

<details>

<summary>

type ServeErrorRuleActionParametersActionParametersAssetParam struct{…}

</summary>

AssetName string

The name of a custom asset to serve as the error response.

minLength1

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

<details>

<summary>

ContentType ServeErrorRuleActionParametersActionParametersAssetContentTypeOptional

The content type header to set with the error response.

</summary>

One of the following:

const ServeErrorRuleActionParametersActionParametersAssetContentTypeApplicationJson ServeErrorRuleActionParametersActionParametersAssetContentType = "application/json"

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

const ServeErrorRuleActionParametersActionParametersAssetContentTypeTextHTML ServeErrorRuleActionParametersActionParametersAssetContentType = "text/html"

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

const ServeErrorRuleActionParametersActionParametersAssetContentTypeTextPlain ServeErrorRuleActionParametersActionParametersAssetContentType = "text/plain"

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

const ServeErrorRuleActionParametersActionParametersAssetContentTypeTextXml ServeErrorRuleActionParametersActionParametersAssetContentType = "text/xml"

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

</details>

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

StatusCode int64Optional

The status code to use for the error.

maximum999

minimum400

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

</details>

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

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%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(model)%20serve_error_rule%20%3E%20(schema)%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(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

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

<details>

<summary>

ExposedCredentialCheck ServeErrorRuleExposedCredentialCheckOptional

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(model)%20serve_error_rule%20%3E%20(schema)%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(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit ServeErrorRuleRatelimitOptional

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(model)%20serve_error_rule%20%3E%20(schema)%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(model)%20serve_error_rule%20%3E%20(schema)%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(model)%20serve_error_rule%20%3E%20(schema)%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(model)%20serve_error_rule%20%3E%20(schema)%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(model)%20serve_error_rule%20%3E%20(schema)%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(model)%20serve_error_rule%20%3E%20(schema)%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(model)%20serve_error_rule%20%3E%20(schema)%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(model)%20serve_error_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRule struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20last_updated">Link to this property</a>

Version string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20version">Link to this property</a>

ID stringOptional

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20id">Link to this property</a>

Action RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionOptional

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

ActionParameters RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

Immutable RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct{…}

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct{…}

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

ExposedCredentialCheck RulesetUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20expression">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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

Ratelimit RulesetUpdateParamsRulesRulesetsSetCacheControlRuleRatelimitOptional

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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ratelimit">Link to this property</a>

Ref stringOptional

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2015">Link to this property</a>

<details>

<summary>

type SetCacheSettingsRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action SetCacheSettingsRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters SetCacheSettingsRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

AdditionalCacheablePorts \[]int64Optional

A list of additional ports that caching should be enabled on.

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

<details>

<summary>

BrowserTTL SetCacheSettingsRuleActionParametersBrowserTTLOptional

How long client browsers should cache the response. Cloudflare cache purge will not purge content cached on client browsers, so high browser TTLs may lead to stale content.

</summary>

<details>

<summary>

Mode SetCacheSettingsRuleActionParametersBrowserTTLMode

The browser TTL mode.

</summary>

One of the following:

const SetCacheSettingsRuleActionParametersBrowserTTLModeRespectOrigin SetCacheSettingsRuleActionParametersBrowserTTLMode = "respect\_origin"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20mode%20%3E%20(member)%200">Link to this property</a>

const SetCacheSettingsRuleActionParametersBrowserTTLModeBypassByDefault SetCacheSettingsRuleActionParametersBrowserTTLMode = "bypass\_by\_default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20mode%20%3E%20(member)%201">Link to this property</a>

const SetCacheSettingsRuleActionParametersBrowserTTLModeOverrideOrigin SetCacheSettingsRuleActionParametersBrowserTTLMode = "override\_origin"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20mode%20%3E%20(member)%202">Link to this property</a>

const SetCacheSettingsRuleActionParametersBrowserTTLModeBypass SetCacheSettingsRuleActionParametersBrowserTTLMode = "bypass"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20mode%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20mode">Link to this property</a>

Default int64Optional

The browser TTL (in seconds) if you choose the “override\_origin” mode.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20browser_ttl%20%3E%20(property)%20default">Link to this property</a>

</details>

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

Cache boolOptional

Whether the request’s response from the origin is eligible for caching. Caching itself will still depend on the cache control header and your other caching configurations.

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

<details>

<summary>

CacheKey SetCacheSettingsRuleActionParametersCacheKeyOptional

Which components of the request are included in or excluded from the cache key Cloudflare uses to store the response in cache.

</summary>

CacheByDeviceType boolOptional

Whether to separate cached content based on the visitor’s device type.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20cache_by_device_type">Link to this property</a>

CacheDeceptionArmor boolOptional

Whether to protect from web cache deception attacks, while allowing static assets to be cached.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20cache_deception_armor">Link to this property</a>

<details>

<summary>

CustomKey SetCacheSettingsRuleActionParametersCacheKeyCustomKeyOptional

Which components of the request are included or excluded from the cache key.

</summary>

<details>

<summary>

Cookie SetCacheSettingsRuleActionParametersCacheKeyCustomKeyCookieOptional

Which cookies to include in the cache key.

</summary>

CheckPresence \[]stringOptional

A list of cookies to check for the presence of. The presence of these cookies is included in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20cookie%20%3E%20(property)%20check_presence">Link to this property</a>

Include \[]stringOptional

A list of cookies to include in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20cookie%20%3E%20(property)%20include">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20cookie">Link to this property</a>

<details>

<summary>

Header SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHeaderOptional

Which headers to include in the cache key.

</summary>

CheckPresence \[]stringOptional

A list of headers to check for the presence of. The presence of these headers is included in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20header%20%3E%20(property)%20check_presence">Link to this property</a>

Contains map\[string, \[]string]Optional

A mapping of header names to a list of values. If a header is present in the request and contains any of the values provided, its value is included in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20header%20%3E%20(property)%20contains">Link to this property</a>

ExcludeOrigin boolOptional

Whether to exclude the origin header in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20header%20%3E%20(property)%20exclude_origin">Link to this property</a>

Include \[]stringOptional

A list of headers to include in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20header%20%3E%20(property)%20include">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20header">Link to this property</a>

<details>

<summary>

Host SetCacheSettingsRuleActionParametersCacheKeyCustomKeyHostOptional

How to use the host in the cache key.

</summary>

Resolved boolOptional

Whether to use the resolved host in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20host%20%3E%20(property)%20resolved">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20host">Link to this property</a>

<details>

<summary>

QueryString SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringOptional

Which query string parameters to include in or exclude from the cache key.

</summary>

<details>

<summary>

Exclude SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeOptional

Which query string parameters to exclude from the cache key.

</summary>

All SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringExcludeAllOptional

Whether to exclude all query string parameters from the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20exclude%20%3E%20(property)%20all">Link to this property</a>

List \[]stringOptional

A list of query string parameters to exclude from the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20exclude%20%3E%20(property)%20list">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20exclude">Link to this property</a>

<details>

<summary>

Include SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeOptional

Which query string parameters to include in the cache key.

</summary>

All SetCacheSettingsRuleActionParametersCacheKeyCustomKeyQueryStringIncludeAllOptional

Whether to include all query string parameters in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20include%20%3E%20(property)%20all">Link to this property</a>

List \[]stringOptional

A list of query string parameters to include in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20include%20%3E%20(property)%20list">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string%20%3E%20(property)%20include">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20query_string">Link to this property</a>

<details>

<summary>

User SetCacheSettingsRuleActionParametersCacheKeyCustomKeyUserOptional

How to use characteristics of the request user agent in the cache key.

</summary>

DeviceType boolOptional

Whether to use the user agent’s device type in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20user%20%3E%20(property)%20device_type">Link to this property</a>

Geo boolOptional

Whether to use the user agents’s country in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20user%20%3E%20(property)%20geo">Link to this property</a>

Lang boolOptional

Whether to use the user agent’s language in the cache key.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20user%20%3E%20(property)%20lang">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20custom_key">Link to this property</a>

IgnoreQueryStringsOrder boolOptional

Whether to treat requests with the same query parameters the same, regardless of the order those query parameters are in.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_key%20%3E%20(property)%20ignore_query_strings_order">Link to this property</a>

</details>

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

<details>

<summary>

CacheReserve SetCacheSettingsRuleActionParametersCacheReserveOptional

Settings to determine whether the request’s response from origin is eligible for Cache Reserve (requires a Cache Reserve add-on plan).

</summary>

Eligible bool

Whether Cache Reserve is enabled. If this is true and a request meets eligibility criteria, Cloudflare will write the resource to Cache Reserve.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_reserve%20%3E%20(property)%20eligible">Link to this property</a>

MinimumFileSize int64Optional

The minimum file size eligible for storage in Cache Reserve.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20cache_reserve%20%3E%20(property)%20minimum_file_size">Link to this property</a>

</details>

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

<details>

<summary>

EdgeTTL SetCacheSettingsRuleActionParametersEdgeTTLOptional

How long the Cloudflare edge network should cache the response.

</summary>

<details>

<summary>

Mode SetCacheSettingsRuleActionParametersEdgeTTLMode

The edge TTL mode.

</summary>

One of the following:

const SetCacheSettingsRuleActionParametersEdgeTTLModeRespectOrigin SetCacheSettingsRuleActionParametersEdgeTTLMode = "respect\_origin"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20mode%20%3E%20(member)%200">Link to this property</a>

const SetCacheSettingsRuleActionParametersEdgeTTLModeBypassByDefault SetCacheSettingsRuleActionParametersEdgeTTLMode = "bypass\_by\_default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20mode%20%3E%20(member)%201">Link to this property</a>

const SetCacheSettingsRuleActionParametersEdgeTTLModeOverrideOrigin SetCacheSettingsRuleActionParametersEdgeTTLMode = "override\_origin"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20mode%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20mode">Link to this property</a>

Default int64Optional

The edge TTL (in seconds) if you choose the “override\_origin” mode.

minimum0

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20default">Link to this property</a>

<details>

<summary>

StatusCodeTTL \[]SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLOptional

A list of TTLs to apply to specific status codes or status code ranges.

</summary>

Value int64

The time to cache the response for (in seconds). A value of 0 is equivalent to setting the cache control header with the value “no-cache”. A value of -1 is equivalent to setting the cache control header with the value of “no-store”.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl%20%3E%20(items)%20%3E%20(property)%20value">Link to this property</a>

StatusCode int64Optional

A single status code to apply the TTL to.

maximum999

minimum100

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl%20%3E%20(items)%20%3E%20(property)%20status_code">Link to this property</a>

<details>

<summary>

StatusCodeRange SetCacheSettingsRuleActionParametersEdgeTTLStatusCodeTTLStatusCodeRangeOptional

A range of status codes to apply the TTL to.

</summary>

From int64Optional

The lower bound of the range.

maximum999

minimum100

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl%20%3E%20(items)%20%3E%20(property)%20status_code_range%20%3E%20(property)%20from">Link to this property</a>

To int64Optional

The upper bound of the range.

maximum999

minimum100

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl%20%3E%20(items)%20%3E%20(property)%20status_code_range%20%3E%20(property)%20to">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl%20%3E%20(items)%20%3E%20(property)%20status_code_range">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20edge_ttl%20%3E%20(property)%20status_code_ttl">Link to this property</a>

</details>

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

OriginCacheControl boolOptional

Whether Cloudflare will aim to strictly adhere to RFC 7234.

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

OriginErrorPagePassthru boolOptional

Whether to generate Cloudflare error pages for issues from the origin server.

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

<details>

<summary>

OriginRangeRequests SetCacheSettingsRuleActionParametersOriginRangeRequestsOptional

Controls whether Cloudflare fetches a large asset from the origin as a series of range requests instead of one whole-body request.

</summary>

<details>

<summary>

Mode SetCacheSettingsRuleActionParametersOriginRangeRequestsMode

Whether to use range requests. <code>default</code> is the behaviour the zone gets without this rule.

</summary>

One of the following:

const SetCacheSettingsRuleActionParametersOriginRangeRequestsModeOn SetCacheSettingsRuleActionParametersOriginRangeRequestsMode = "on"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin_range_requests%20%3E%20(property)%20mode%20%3E%20(member)%200">Link to this property</a>

const SetCacheSettingsRuleActionParametersOriginRangeRequestsModeOff SetCacheSettingsRuleActionParametersOriginRangeRequestsMode = "off"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin_range_requests%20%3E%20(property)%20mode%20%3E%20(member)%201">Link to this property</a>

const SetCacheSettingsRuleActionParametersOriginRangeRequestsModeDefault SetCacheSettingsRuleActionParametersOriginRangeRequestsMode = "default"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin_range_requests%20%3E%20(property)%20mode%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20origin_range_requests%20%3E%20(property)%20mode">Link to this property</a>

</details>

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

ReadTimeout int64Optional

A timeout value between two successive read operations to use for your origin server. Historically, the timeout value between two read options from Cloudflare to an origin server is 100 seconds. If you are attempting to reduce HTTP 524 errors because of timeouts from an origin server, try increasing this timeout value.

maximum6000

minimum100

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

RespectStrongEtags boolOptional

Whether Cloudflare should respect strong ETag (entity tag) headers. If false, Cloudflare converts strong ETag headers to weak ETag headers.

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

<details>

<summary>

ServeStale SetCacheSettingsRuleActionParametersServeStaleOptional

When to serve stale content from cache.

</summary>

DisableStaleWhileUpdating boolOptional

Whether Cloudflare should disable serving stale content while getting the latest content from the origin.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20serve_stale%20%3E%20(property)%20disable_stale_while_updating">Link to this property</a>

</details>

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

<details>

<summary>

SharedDictionary SetCacheSettingsRuleActionParametersSharedDictionaryOptional

Configuration for shared dictionary compression. When set, Cloudflare injects Use-As-Dictionary headers on matching cacheable responses.

</summary>

MatchPattern string

URL pattern for the Use-As-Dictionary match field. This pattern specifies which URLs can use this response as a dictionary.

maxLength1024

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20shared_dictionary%20%3E%20(property)%20match_pattern">Link to this property</a>

</details>

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

StripEtags boolOptional

Whether to strip ETag headers from the origin response before caching.

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

StripLastModified boolOptional

Whether to strip Last-Modified headers from the origin response before caching.

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

StripSetCookie boolOptional

Whether to strip Set-Cookie headers from the origin response before caching.

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

<details>

<summary>

Vary SetCacheSettingsRuleActionParametersVaryOptional

Controls how cached responses vary based on request headers. <code>default</code> is required by the API and applies to any Vary response header that does not have a per-header override.

</summary>

<details>

<summary>

Default SetCacheSettingsRuleActionParametersVaryDefaultOptional

Controls how response Vary headers without a per-header override contribute to the cache key.

</summary>

<details>

<summary>

Action SetCacheSettingsRuleActionParametersVaryDefaultAction

How the header value is treated when building the cache key.

</summary>

One of the following:

const SetCacheSettingsRuleActionParametersVaryDefaultActionBypass SetCacheSettingsRuleActionParametersVaryDefaultAction = "bypass"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20default%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

const SetCacheSettingsRuleActionParametersVaryDefaultActionPassthrough SetCacheSettingsRuleActionParametersVaryDefaultAction = "passthrough"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20default%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

const SetCacheSettingsRuleActionParametersVaryDefaultActionNormalize SetCacheSettingsRuleActionParametersVaryDefaultAction = "normalize"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20default%20%3E%20(property)%20action%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20default%20%3E%20(property)%20action">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20default">Link to this property</a>

<details>

<summary>

Headers map\[string, SetCacheSettingsRuleActionParametersVaryHeader]Optional

A mapping of lowercase request header names to their vary configuration.

</summary>

<details>

<summary>

Action SetCacheSettingsRuleActionParametersVaryHeadersAction

How the header value is treated when building the cache key.

</summary>

One of the following:

const SetCacheSettingsRuleActionParametersVaryHeadersActionBypass SetCacheSettingsRuleActionParametersVaryHeadersAction = "bypass"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(member)%200">Link to this property</a>

const SetCacheSettingsRuleActionParametersVaryHeadersActionPassthrough SetCacheSettingsRuleActionParametersVaryHeadersAction = "passthrough"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(member)%201">Link to this property</a>

const SetCacheSettingsRuleActionParametersVaryHeadersActionNormalize SetCacheSettingsRuleActionParametersVaryHeadersAction = "normalize"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20action">Link to this property</a>

Languages \[]stringOptional

The set of languages to normalize against. Only valid for the <code>accept-language</code> header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20languages">Link to this property</a>

MediaTypes \[]stringOptional

The set of media types to normalize against. Only valid for the <code>accept</code> header.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers%20%3E%20(items)%20%3E%20(property)%20media_types">Link to this property</a>

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20vary%20%3E%20(property)%20headers">Link to this property</a>

</details>

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

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%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(model)%20set_cache_settings_rule%20%3E%20(schema)%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(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

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

<details>

<summary>

ExposedCredentialCheck SetCacheSettingsRuleExposedCredentialCheckOptional

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(model)%20set_cache_settings_rule%20%3E%20(schema)%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(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit SetCacheSettingsRuleRatelimitOptional

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(model)%20set_cache_settings_rule%20%3E%20(schema)%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(model)%20set_cache_settings_rule%20%3E%20(schema)%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(model)%20set_cache_settings_rule%20%3E%20(schema)%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(model)%20set_cache_settings_rule%20%3E%20(schema)%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(model)%20set_cache_settings_rule%20%3E%20(schema)%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(model)%20set_cache_settings_rule%20%3E%20(schema)%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(model)%20set_cache_settings_rule%20%3E%20(schema)%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(model)%20set_cache_settings_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheTagsRule struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20last_updated">Link to this property</a>

Version string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20version">Link to this property</a>

ID stringOptional

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20id">Link to this property</a>

Action RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionOptional

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

ActionParameters RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct{…}

Add cache tags using a list of values.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression 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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct{…}

Remove cache tags using a list of values.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression 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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct{…}

Set cache tags using a list of values.

</summary>

<details>

<summary>

Operation RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression 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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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 RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

ExposedCredentialCheck RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20expression">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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

Ratelimit RulesetUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimitOptional

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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ratelimit">Link to this property</a>

Ref stringOptional

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2017">Link to this property</a>

<details>

<summary>

type SetConfigRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action SetConfigRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters SetConfigRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

AutomaticHTTPSRewrites boolOptional

Whether to enable Automatic HTTPS Rewrites.

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

<details>

<summary>

Autominify SetConfigRuleActionParametersAutominifyOptional

Which file extensions to minify automatically.

</summary>

CSS boolOptional

Whether to minify CSS files.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20autominify%20%3E%20(property)%20css">Link to this property</a>

HTML boolOptional

Whether to minify HTML files.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20autominify%20%3E%20(property)%20html">Link to this property</a>

JS boolOptional

Whether to minify JavaScript files.

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20autominify%20%3E%20(property)%20js">Link to this property</a>

</details>

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

BIC boolOptional

Whether to enable Browser Integrity Check (BIC).

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

ContentConverter boolOptional

Whether to enable content conversion (e.g., HTML to Markdown).

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

DeprecatedDisableApps SetConfigRuleActionParametersDisableAppsOptional

Cloudflare Apps are deprected.

Whether to disable Cloudflare Apps.

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

DisablePayPerCrawl SetConfigRuleActionParametersDisablePayPerCrawlOptional

Whether to disable Pay Per Crawl.

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

DisableRUM SetConfigRuleActionParametersDisableRUMOptional

Whether to disable Real User Monitoring (RUM).

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

DisableZaraz SetConfigRuleActionParametersDisableZarazOptional

Whether to disable Zaraz.

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

EmailObfuscation boolOptional

Whether to enable Email Obfuscation.

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

Fonts boolOptional

Whether to enable Cloudflare Fonts.

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

HotlinkProtection boolOptional

Whether to enable Hotlink Protection.

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

DeprecatedMirage boolOptional

Mirage is deprecated. More information at <a href="https://developers.cloudflare.com/speed/optimization/images/mirage/">https://developers.cloudflare.com/speed/optimization/images/mirage/</a>.

Whether to enable Mirage.

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

OpportunisticEncryption boolOptional

Whether to enable Opportunistic Encryption.

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

<details>

<summary>

Polish SetConfigRuleActionParametersPolishOptional

The Polish level to configure.

</summary>

One of the following:

const SetConfigRuleActionParametersPolishOff SetConfigRuleActionParametersPolish = "off"

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

const SetConfigRuleActionParametersPolishLossless SetConfigRuleActionParametersPolish = "lossless"

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

const SetConfigRuleActionParametersPolishLossy SetConfigRuleActionParametersPolish = "lossy"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20polish%20%3E%20(member)%202">Link to this property</a>

const SetConfigRuleActionParametersPolishWebP SetConfigRuleActionParametersPolish = "webp"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20polish%20%3E%20(member)%203">Link to this property</a>

</details>

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

RedirectsForAITraining boolOptional

Whether to redirect verified AI training crawlers to canonical URLs found in the HTML response.

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

<details>

<summary>

RequestBodyBuffering SetConfigRuleActionParametersRequestBodyBufferingOptional

The request body buffering mode.

</summary>

One of the following:

const SetConfigRuleActionParametersRequestBodyBufferingNone SetConfigRuleActionParametersRequestBodyBuffering = "none"

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

const SetConfigRuleActionParametersRequestBodyBufferingStandard SetConfigRuleActionParametersRequestBodyBuffering = "standard"

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

const SetConfigRuleActionParametersRequestBodyBufferingFull SetConfigRuleActionParametersRequestBodyBuffering = "full"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20request_body_buffering%20%3E%20(member)%202">Link to this property</a>

</details>

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

<details>

<summary>

ResponseBodyBuffering SetConfigRuleActionParametersResponseBodyBufferingOptional

The response body buffering mode.

</summary>

One of the following:

const SetConfigRuleActionParametersResponseBodyBufferingNone SetConfigRuleActionParametersResponseBodyBuffering = "none"

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

const SetConfigRuleActionParametersResponseBodyBufferingStandard SetConfigRuleActionParametersResponseBodyBuffering = "standard"

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

</details>

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

RocketLoader boolOptional

Whether to enable Rocket Loader.

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

<details>

<summary>

SecurityLevel SetConfigRuleActionParametersSecurityLevelOptional

The Security Level to configure.

</summary>

One of the following:

const SetConfigRuleActionParametersSecurityLevelOff SetConfigRuleActionParametersSecurityLevel = "off"

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

const SetConfigRuleActionParametersSecurityLevelEssentiallyOff SetConfigRuleActionParametersSecurityLevel = "essentially\_off"

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

const SetConfigRuleActionParametersSecurityLevelLow SetConfigRuleActionParametersSecurityLevel = "low"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20security_level%20%3E%20(member)%202">Link to this property</a>

const SetConfigRuleActionParametersSecurityLevelMedium SetConfigRuleActionParametersSecurityLevel = "medium"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20security_level%20%3E%20(member)%203">Link to this property</a>

const SetConfigRuleActionParametersSecurityLevelHigh SetConfigRuleActionParametersSecurityLevel = "high"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20security_level%20%3E%20(member)%204">Link to this property</a>

const SetConfigRuleActionParametersSecurityLevelUnderAttack SetConfigRuleActionParametersSecurityLevel = "under\_attack"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20security_level%20%3E%20(member)%205">Link to this property</a>

</details>

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

ServerSideExcludes boolOptional

Whether to enable Server-Side Excludes.

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

<details>

<summary>

SSL SetConfigRuleActionParametersSSLOptional

The SSL level to configure.

</summary>

One of the following:

const SetConfigRuleActionParametersSSLOff SetConfigRuleActionParametersSSL = "off"

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

const SetConfigRuleActionParametersSSLFlexible SetConfigRuleActionParametersSSL = "flexible"

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

const SetConfigRuleActionParametersSSLFull SetConfigRuleActionParametersSSL = "full"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20ssl%20%3E%20(member)%202">Link to this property</a>

const SetConfigRuleActionParametersSSLStrict SetConfigRuleActionParametersSSL = "strict"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20ssl%20%3E%20(member)%203">Link to this property</a>

const SetConfigRuleActionParametersSSLOriginPull SetConfigRuleActionParametersSSL = "origin\_pull"

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20action_parameters%20%3E%20(property)%20ssl%20%3E%20(member)%204">Link to this property</a>

</details>

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

DeprecatedSXG boolOptional

Signed Exchanges (SXG) is deprecated.

Whether to enable Signed Exchanges (SXG).

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

WebmcpEnabled boolOptional

Whether to serve the WebMCP bridge script, which exposes the page’s tools to browser AI agents.

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

WebmcpPacks \[]stringOptional

Bundled WebMCP tool packs to activate for matching requests. An empty array disables all packs. Omitting this parameter leaves the pack selection unchanged. Does not enable the WebMCP bridge itself. Non-empty selections require the WebMCP Configuration Rules entitlement.

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

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%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(model)%20set_config_rule%20%3E%20(schema)%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(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

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

<details>

<summary>

ExposedCredentialCheck SetConfigRuleExposedCredentialCheckOptional

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(model)%20set_config_rule%20%3E%20(schema)%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(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit SetConfigRuleRatelimitOptional

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(model)%20set_config_rule%20%3E%20(schema)%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(model)%20set_config_rule%20%3E%20(schema)%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(model)%20set_config_rule%20%3E%20(schema)%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(model)%20set_config_rule%20%3E%20(schema)%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(model)%20set_config_rule%20%3E%20(schema)%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(model)%20set_config_rule%20%3E%20(schema)%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(model)%20set_config_rule%20%3E%20(schema)%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(model)%20set_config_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type SkipRuleParam struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

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

Version string

The version of the rule.

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

ID stringOptional

The unique ID of the rule.

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

Action SkipRuleActionOptional

The action to perform when the rule matches.

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

<details>

<summary>

ActionParameters SkipRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

Phase SkipRuleActionParametersPhaseOptional

A phase to skip the execution of. This option is only compatible with the products option.

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

<details>

<summary>

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

A list of phases to skip the execution of. This option is incompatible with the rulesets option.

</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%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%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%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%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%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%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%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%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%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%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%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%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%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%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%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%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%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%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%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%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%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%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%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%20%3E%20(model)%20phase%20%3E%20(schema)%20%3E%20(member)%2023">Link to this property</a>

</details>

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

<details>

<summary>

Products \[]SkipRuleActionParametersProductOptional

A list of legacy security products to skip the execution of.

</summary>

One of the following:

const SkipRuleActionParametersProductBIC SkipRuleActionParametersProduct = "bic"

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

const SkipRuleActionParametersProductHot SkipRuleActionParametersProduct = "hot"

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

const SkipRuleActionParametersProductRateLimit SkipRuleActionParametersProduct = "rateLimit"

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

const SkipRuleActionParametersProductSecurityLevel SkipRuleActionParametersProduct = "securityLevel"

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

const SkipRuleActionParametersProductUABlock SkipRuleActionParametersProduct = "uaBlock"

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

const SkipRuleActionParametersProductWAF SkipRuleActionParametersProduct = "waf"

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

const SkipRuleActionParametersProductZoneLockdown SkipRuleActionParametersProduct = "zoneLockdown"

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

</details>

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

Rules map\[string, \[]string]Optional

A mapping of ruleset IDs to a list of rule IDs in that ruleset to skip the execution of. This option is incompatible with the ruleset option.

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

Ruleset SkipRuleActionParametersRulesetOptional

A ruleset to skip the execution of. This option is incompatible with the rulesets option.

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

Rulesets \[]stringOptional

A list of ruleset IDs to skip the execution of. This option is incompatible with the ruleset and phases options.

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

</details>

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%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(model)%20skip_rule%20%3E%20(schema)%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(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

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

<details>

<summary>

ExposedCredentialCheck SkipRuleExposedCredentialCheckOptional

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(model)%20skip_rule%20%3E%20(schema)%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(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20exposed_credential_check%20%3E%20(property)%20username_expression">Link to this property</a>

</details>

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

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets.rules%20%3E%20(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20expression">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(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20logging%20%2B%20(resource)%20rulesets.rules%20%3E%20(model)%20logging%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

</details>

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

<details>

<summary>

Ratelimit SkipRuleRatelimitOptional

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(model)%20skip_rule%20%3E%20(schema)%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(model)%20skip_rule%20%3E%20(schema)%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(model)%20skip_rule%20%3E%20(schema)%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(model)%20skip_rule%20%3E%20(schema)%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(model)%20skip_rule%20%3E%20(schema)%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(model)%20skip_rule%20%3E%20(schema)%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(model)%20skip_rule%20%3E%20(schema)%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(model)%20skip_rule%20%3E%20(schema)%20%3E%20(property)%20ratelimit%20%3E%20(property)%20score_response_header_name">Link to this property</a>

</details>

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

Ref stringOptional

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

minLength1

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

</details>

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

<details>

<summary>

type RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRule struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20last_updated">Link to this property</a>

Version string

The version of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20version">Link to this property</a>

ID stringOptional

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20id">Link to this property</a>

Action RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionOptional

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

ActionParameters RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

LinkMaze unknown

Enables the link maze transformation on the response.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20enabled">Link to this property</a>

<details>

<summary>

ExposedCredentialCheck RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20exposed_credential_check">Link to this property</a>

Expression stringOptional

The expression defining which traffic will match the rule.

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20expression">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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20logging">Link to this property</a>

<details>

<summary>

Ratelimit RulesetUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimitOptional

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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%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%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ratelimit">Link to this property</a>

Ref stringOptional

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020%20%3E%20(property)%20ref">Link to this property</a>

</details>

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20rules%20%3E%20(schema)%20%3E%20(items)%20%3E%20(variant)%2020">Link to this property</a>

</details>

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

</details>

[Link to this property](<#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type RulesetUpdateResponseEnvelopeResult interface{…}

A result.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResult struct{…}

A ruleset object.

</summary>

ID string

The unique ID of the ruleset.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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%20%3E%20(method)%20update%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 \[]RulesetUpdateResponseEnvelopeResultRules

The list of rules in the ruleset.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesBlockRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesChallengeRule struct{…}

</summary>

ID string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesChallengeRuleAction

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesChallengeRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesChallengeRuleRatelimitOptional

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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesResponseCompressionRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesDDoSDynamicRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesExecuteRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesForceConnectionCloseRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesJavaScriptChallengeRule struct{…}

</summary>

ID string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesJavaScriptChallengeRuleAction

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesJavaScriptChallengeRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesJavaScriptChallengeRuleRatelimitOptional

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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesLogRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesLogCustomFieldRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesManagedChallengeRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesRedirectRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesRewriteRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesRouteRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesScoreRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesServeErrorRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRule struct{…}

</summary>

ID string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleAction

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

Immutable RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirective struct{…}

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirective struct{…}

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateOptional

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

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheControlRuleRatelimitOptional

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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheSettingsRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRule struct{…}

</summary>

ID string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleAction

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

One of the following:

<details>

<summary>

type RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValues struct{…}

Add cache tags using a list of values.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpression 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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct{…}

Remove cache tags using a list of values.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpression 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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValues struct{…}

Set cache tags using a list of values.

</summary>

<details>

<summary>

Operation RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpression 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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetCacheTagsRuleRatelimitOptional

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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSetConfigurationRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesSkipRule struct{…}

</summary>

ID string

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesTransformResponseHTMLRule struct{…}

</summary>

ID string

The unique ID of the rule.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesTransformResponseHTMLRuleAction

The action to perform when the rule matches.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesTransformResponseHTMLRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

LinkMaze unknown

Enables the link maze transformation on the response.

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesTransformResponseHTMLRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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%20%3E%20(method)%20update%20%3E%20(network%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 RulesetUpdateResponseEnvelopeResultRulesTransformResponseHTMLRuleRatelimitOptional

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

### Update an account or zone ruleset

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"),
  )
  ruleset, err := client.Rulesets.Update(
    context.TODO(),
    "2f2feab2026849078ba485f918791bdc",
    rulesets.RulesetUpdateParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", ruleset)
}
```

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
}
```