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

[Skip to content](#_top)

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

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

[Phases](https://developers.cloudflare.com/api/go/resources/rulesets/subresources/phases)

Copy Markdown

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

---

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

# Update an account or zone entry point ruleset

client.Rulesets.Phases.Update(ctx, rulesetPhase, params) (\*PhaseUpdateResponseEnvelopeResult, error)

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

Updates an account or zone entry point 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

<details>

<summary>

RulesetPhase <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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default%20%3E%20(param)%20ruleset_phase%20%3E%20(schema)%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>

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

<details>

<summary>

params PhaseUpdateParams

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

Name param.Field\[string]Optional

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

minLength1

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

<details>

<summary>

Rules param.Field\[\[]PhaseUpdateParamsRule]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 PhaseUpdateParamsRulesRulesetsChallengeRule struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsChallengeRuleActionOptional

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsChallengeRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsChallengeRuleRatelimitOptional

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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsJSChallengeRule struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsJSChallengeRuleActionOptional

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsJSChallengeRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsJSChallengeRuleRatelimitOptional

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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRule struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionOptional

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

Immutable PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirective struct{…}

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirective struct{…}

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheControlRuleRatelimitOptional

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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRule struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionOptional

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValues struct{…}

Add cache tags using a list of values.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpression 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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValues struct{…}

Remove cache tags using a list of values.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpression 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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValues struct{…}

Set cache tags using a list of values.

</summary>

<details>

<summary>

Operation PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpression 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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationRemove PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationSet PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsSetCacheTagsRuleRatelimitOptional

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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRule struct{…}

</summary>

LastUpdated Time

The timestamp of when the rule was last modified.

formatdate-time

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionOptional

The action to perform when the rule matches.

<a href="#(resource)%20rulesets.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleActionParametersOptional

The parameters configuring the rule’s action.

</summary>

LinkMaze unknown

Enables the link maze transformation on the response.

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

<a href="#(resource)%20rulesets.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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 PhaseUpdateParamsRulesRulesetsTransformResponseHTMLRuleRatelimitOptional

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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%20%3E%20(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.phases%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.phases%20%3E%20(method)%20update%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type PhaseUpdateResponseEnvelopeResult interface{…}

A result.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResult struct{…}

A ruleset object.

</summary>

ID string

The unique ID of the ruleset.

<a href="#(resource)%20rulesets.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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.phases%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 \[]PhaseUpdateResponseEnvelopeResultRules

The list of rules in the ruleset.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesBlockRule struct{…}

</summary>

ID string

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

</summary>

ID string

The unique ID of the rule.

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

The action to perform when the rule matches.

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

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

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

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

</summary>

ID string

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

</summary>

ID string

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

</summary>

ID string

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

</summary>

ID string

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

</summary>

ID string

The unique ID of the rule.

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

The action to perform when the rule matches.

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

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

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

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

</summary>

ID string

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

</summary>

ID string

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

</summary>

ID string

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

</summary>

ID string

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

</summary>

ID string

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

</summary>

ID string

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

</summary>

ID string

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

</summary>

ID string

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

</summary>

ID string

The unique ID of the rule.

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

The action to perform when the rule matches.

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

The parameters configuring the rule’s action.

</summary>

<details>

<summary>

Immutable PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersImmutableRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMaxAgeRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersMustUnderstandRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirective struct{…}

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoCacheRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoStoreRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersNoTransformRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirective struct{…}

Set the directive with optional qualifiers.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPrivateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersProxyRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicOptional

A cache-control directive configuration.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirective struct{…}

Set the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersPublicRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersSMaxageRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleIfErrorRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateOptional

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

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirective struct{…}

Set the directive with a duration value in seconds.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateSetDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirective struct{…}

Remove the directive.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation

The operation to perform on the cache-control directive.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationSet PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "set"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperationRemove PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleActionParametersStaleWhileRevalidateRemoveDirectiveOperation = "remove"

<a href="#(resource)%20rulesets.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%3E%20(variant)%200%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheControlRuleExposedCredentialCheckOptional

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

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

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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%20%3E%20(property)%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.phases%20%3E%20(method)%20update%20%3E%20(network%20schema)%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 PhaseUpdateResponseEnvelopeResultRulesSetCacheSettingsRule struct{…}

</summary>

ID string

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

</summary>

ID string

The unique ID of the rule.

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

The action to perform when the rule matches.

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

The parameters configuring the rule’s action.

</summary>

One of the following:

<details>

<summary>

type PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValues struct{…}

Add cache tags using a list of values.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperationAdd PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsValuesOperation = "add"

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

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

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

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperationAdd PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersAddCacheTagsExpressionOperation = "add"

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

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

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

Remove cache tags using a list of values.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperationAdd PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsValuesOperation = "add"

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

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

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

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperationAdd PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersRemoveCacheTagsExpressionOperation = "add"

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

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

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

Set cache tags using a list of values.

</summary>

<details>

<summary>

Operation PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperationAdd PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsValuesOperation = "add"

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

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

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

The operation to perform on the cache tags.

</summary>

One of the following:

const PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperationAdd PhaseUpdateResponseEnvelopeResultRulesSetCacheTagsRuleActionParametersSetCacheTagsExpressionOperation = "add"

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

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

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

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

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

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

</summary>

ID string

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

</summary>

ID string

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

</summary>

ID string

The unique ID of the rule.

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

The action to perform when the rule matches.

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

The parameters configuring the rule’s action.

</summary>

LinkMaze unknown

Enables the link maze transformation on the response.

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

Configuration for exposed credential checking.

</summary>

PasswordExpression string

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

minLength1

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

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

### Update an account or zone entry point 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"),
  )
  phase, err := client.Rulesets.Phases.Update(
    context.TODO(),
    rulesets.PhaseHTTPRequestFirewallCustom,
    rulesets.PhaseUpdateParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", phase)
}
```

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
}
```