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
IdstringResource identifier.
ProductstringCloudflare product the resource belongs to.
RequestJsonElement?Request payload (may be redacted).
ResponseJsonElement?Response payload (may be redacted).
ScopestringScope of the resource (e.g., "account", "zone").
TypestringType of resource (e.g., "dns_record", "firewall_rule").
Properties
Id
Resource identifier.
[JsonPropertyName("id")]
public string? Id { get; init; }
Property Value
Product
Cloudflare product the resource belongs to.
[JsonPropertyName("product")]
public string? Product { get; init; }
Property Value
Request
Request payload (may be redacted).
[JsonPropertyName("request")]
public JsonElement? Request { get; init; }
Property Value
Response
Response payload (may be redacted).
[JsonPropertyName("response")]
public JsonElement? Response { get; init; }
Property Value
Scope
Scope of the resource (e.g., "account", "zone").
[JsonPropertyName("scope")]
public string? Scope { get; init; }
Property Value
Type
Type of resource (e.g., "dns_record", "firewall_rule").
[JsonPropertyName("type")]
public string? Type { get; init; }