Class CreateUaRuleRequest
- Namespace
- Cloudflare.NET.Security.Firewall.Models
- Assembly
- Cloudflare.NET.dll
Defines the request payload for creating a new User-Agent blocking rule.
public record CreateUaRuleRequest : IEquatable<CreateUaRuleRequest>
- Inheritance
-
CreateUaRuleRequest
- Implements
- Inherited Members
Constructors
CreateUaRuleRequest(UaRuleMode, UaRuleConfiguration, bool?, string?)
Defines the request payload for creating a new User-Agent blocking rule.
public CreateUaRuleRequest(UaRuleMode Mode, UaRuleConfiguration Configuration, bool? Paused = false, string? Description = null)
Parameters
ModeUaRuleModeConfigurationUaRuleConfigurationPausedbool?Descriptionstring
Properties
Configuration
[JsonPropertyName("configuration")]
public UaRuleConfiguration Configuration { get; init; }
Property Value
Description
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
Mode
[JsonPropertyName("mode")]
public UaRuleMode Mode { get; init; }
Property Value
Paused
[JsonPropertyName("paused")]
public bool? Paused { get; init; }
Property Value
- bool?