Class ExecuteParameters
- Namespace
- Cloudflare.NET.Security.Rulesets.Models
- Assembly
- Cloudflare.NET.dll
Action parameters for an 'execute' rule, used to deploy another ruleset, such as a Managed WAF Ruleset.
This is primarily used to add a rule to the entrypoint of the http_request_firewall_managed phase to
enable a Cloudflare-provided or a custom ruleset.
public record ExecuteParameters : IEquatable<ExecuteParameters>
- Inheritance
-
ExecuteParameters
- Implements
- Inherited Members
Constructors
ExecuteParameters(string, string, ExecuteOverrides?)
Action parameters for an 'execute' rule, used to deploy another ruleset, such as a Managed WAF Ruleset.
This is primarily used to add a rule to the entrypoint of the http_request_firewall_managed phase to
enable a Cloudflare-provided or a custom ruleset.
public ExecuteParameters(string Id, string Version, ExecuteOverrides? Overrides = null)
Parameters
IdstringThe ID of the ruleset to execute.
VersionstringThe version of the ruleset to execute. For Cloudflare Managed Rulesets, it is common practice to use
"latest"to ensure rules are kept up-to-date.OverridesExecuteOverridesOptional overrides for the executed ruleset.
Properties
Id
The ID of the ruleset to execute.
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
Overrides
Optional overrides for the executed ruleset.
[JsonPropertyName("overrides")]
public ExecuteOverrides? Overrides { get; init; }
Property Value
Version
The version of the ruleset to execute. For Cloudflare Managed Rulesets, it is common practice to
use "latest" to ensure rules are kept up-to-date.
[JsonPropertyName("version")]
public string Version { get; init; }