Class CreateRulesetRequest
- Namespace
- Cloudflare.NET.Security.Rulesets.Models
- Assembly
- Cloudflare.NET.dll
Defines the request payload for creating a new ruleset.
public record CreateRulesetRequest : IEquatable<CreateRulesetRequest>
- Inheritance
-
CreateRulesetRequest
- Implements
- Inherited Members
Constructors
CreateRulesetRequest(string, string, string?, string?, IReadOnlyList<CreateRuleRequest>?)
Defines the request payload for creating a new ruleset.
public CreateRulesetRequest(string Name, string Kind, string? Description = null, string? Phase = null, IReadOnlyList<CreateRuleRequest>? Rules = null)
Parameters
NamestringThe name of the ruleset.
KindstringThe kind of ruleset (e.g., "root", "zone"). This is immutable.
DescriptionstringAn optional description for the ruleset.
PhasestringThe phase the ruleset belongs to.
RulesIReadOnlyList<CreateRuleRequest>An optional list of rules to include in the new ruleset.
Properties
Description
An optional description for the ruleset.
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
Kind
The kind of ruleset (e.g., "root", "zone"). This is immutable.
[JsonPropertyName("kind")]
public string Kind { get; init; }
Property Value
Name
The name of the ruleset.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Phase
The phase the ruleset belongs to.
[JsonPropertyName("phase")]
public string? Phase { get; init; }
Property Value
Rules
An optional list of rules to include in the new ruleset.
[JsonPropertyName("rules")]
public IReadOnlyList<CreateRuleRequest>? Rules { get; init; }