Table of Contents

Class AuditLogResource

Namespace
Cloudflare.NET.AuditLogs.Models
Assembly
Cloudflare.NET.dll

Resource details for an audit log entry.

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

Constructors

AuditLogResource(string?, string?, JsonElement?, JsonElement?, string?, string?)

Resource details for an audit log entry.

public AuditLogResource(string? Id = null, string? Product = null, JsonElement? Request = null, JsonElement? Response = null, string? Scope = null, string? Type = null)

Parameters

Id string

Resource identifier.

Product string

Cloudflare product the resource belongs to.

Request JsonElement?

Request payload (may be redacted).

Response JsonElement?

Response payload (may be redacted).

Scope string

Scope of the resource (e.g., "account", "zone").

Type string

Type of resource (e.g., "dns_record", "firewall_rule").

Properties

Id

Resource identifier.

[JsonPropertyName("id")]
public string? Id { get; init; }

Property Value

string

Product

Cloudflare product the resource belongs to.

[JsonPropertyName("product")]
public string? Product { get; init; }

Property Value

string

Request

Request payload (may be redacted).

[JsonPropertyName("request")]
public JsonElement? Request { get; init; }

Property Value

JsonElement?

Response

Response payload (may be redacted).

[JsonPropertyName("response")]
public JsonElement? Response { get; init; }

Property Value

JsonElement?

Scope

Scope of the resource (e.g., "account", "zone").

[JsonPropertyName("scope")]
public string? Scope { get; init; }

Property Value

string

Type

Type of resource (e.g., "dns_record", "firewall_rule").

[JsonPropertyName("type")]
public string? Type { get; init; }

Property Value

string