Table of Contents

Class UpdateAccessRuleRequest

Namespace
Cloudflare.NET.Security.Firewall.Models
Assembly
Cloudflare.NET.dll

Defines the request payload for updating an existing IP Access Rule. All properties are optional.

public record UpdateAccessRuleRequest : IEquatable<UpdateAccessRuleRequest>
Inheritance
UpdateAccessRuleRequest
Implements
Inherited Members

Constructors

UpdateAccessRuleRequest(AccessRuleMode?, string?)

Defines the request payload for updating an existing IP Access Rule. All properties are optional.

public UpdateAccessRuleRequest(AccessRuleMode? Mode = null, string? Notes = null)

Parameters

Mode AccessRuleMode?

The new action to take. If null, the mode is not changed.

Notes string

The new note for the rule. If null, the note is not changed. To clear a note, provide an empty string.

Properties

Mode

The new action to take. If null, the mode is not changed.

[JsonPropertyName("mode")]
public AccessRuleMode? Mode { get; init; }

Property Value

AccessRuleMode?

Notes

The new note for the rule. If null, the note is not changed. To clear a note, provide an empty string.

[JsonPropertyName("notes")]
public string? Notes { get; init; }

Property Value

string