Class ListAuditLogsFilters
- Namespace
- Cloudflare.NET.AuditLogs.Models
- Assembly
- Cloudflare.NET.dll
Filtering and pagination options for listing audit logs.
All filter arrays support both inclusion and exclusion. Use the main array
for inclusion, and the corresponding Not array for exclusion.
public record ListAuditLogsFilters : IEquatable<ListAuditLogsFilters>
- Inheritance
-
ListAuditLogsFilters
- Implements
- Inherited Members
Examples
// Get logs for specific action types, excluding failures
var filters = new ListAuditLogsFilters(
ActionTypes: new[] { "create", "update" },
ActionResultsNot: new[] { "failure" }
);
Constructors
ListAuditLogsFilters(string?, int?, ListOrderDirection?, DateTime?, DateTime?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<int>?, IReadOnlyList<int>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?, IReadOnlyList<string>?)
Filtering and pagination options for listing audit logs.
All filter arrays support both inclusion and exclusion. Use the main array
for inclusion, and the corresponding Not array for exclusion.
public ListAuditLogsFilters(string? Cursor = null, int? Limit = null, ListOrderDirection? Direction = null, DateTime? Before = null, DateTime? Since = null, IReadOnlyList<string>? Ids = null, IReadOnlyList<string>? IdsNot = null, IReadOnlyList<string>? ActorEmails = null, IReadOnlyList<string>? ActorEmailsNot = null, IReadOnlyList<string>? ActorIds = null, IReadOnlyList<string>? ActorIdsNot = null, IReadOnlyList<string>? ActorIpAddresses = null, IReadOnlyList<string>? ActorIpAddressesNot = null, IReadOnlyList<string>? ActorTokenIds = null, IReadOnlyList<string>? ActorTokenIdsNot = null, IReadOnlyList<string>? ActorTokenNames = null, IReadOnlyList<string>? ActorTokenNamesNot = null, IReadOnlyList<string>? ActorContexts = null, IReadOnlyList<string>? ActorContextsNot = null, IReadOnlyList<string>? ActorTypes = null, IReadOnlyList<string>? ActorTypesNot = null, IReadOnlyList<string>? ActionTypes = null, IReadOnlyList<string>? ActionTypesNot = null, IReadOnlyList<string>? ActionResults = null, IReadOnlyList<string>? ActionResultsNot = null, IReadOnlyList<string>? ResourceIds = null, IReadOnlyList<string>? ResourceIdsNot = null, IReadOnlyList<string>? ResourceProducts = null, IReadOnlyList<string>? ResourceProductsNot = null, IReadOnlyList<string>? ResourceTypes = null, IReadOnlyList<string>? ResourceTypesNot = null, IReadOnlyList<string>? ResourceScopes = null, IReadOnlyList<string>? ResourceScopesNot = null, IReadOnlyList<string>? ZoneIds = null, IReadOnlyList<string>? ZoneIdsNot = null, IReadOnlyList<string>? ZoneNames = null, IReadOnlyList<string>? ZoneNamesNot = null, IReadOnlyList<string>? RawCfRayIds = null, IReadOnlyList<string>? RawCfRayIdsNot = null, IReadOnlyList<string>? RawMethods = null, IReadOnlyList<string>? RawMethodsNot = null, IReadOnlyList<int>? RawStatusCodes = null, IReadOnlyList<int>? RawStatusCodesNot = null, IReadOnlyList<string>? RawUris = null, IReadOnlyList<string>? RawUrisNot = null, IReadOnlyList<string>? AccountNames = null, IReadOnlyList<string>? AccountNamesNot = null)
Parameters
CursorstringPagination cursor from previous response.
Limitint?Maximum results per request (1-1000, default 100).
DirectionListOrderDirection?Sort direction.
BeforeDateTime?Return logs from before this date (RFC3339).
SinceDateTime?Return logs from after this date (RFC3339).
IdsIReadOnlyList<string>Filter by specific audit log IDs.
IdsNotIReadOnlyList<string>Exclude specific audit log IDs.
ActorEmailsIReadOnlyList<string>Filter by actor email addresses.
ActorEmailsNotIReadOnlyList<string>Exclude specific actor email addresses.
ActorIdsIReadOnlyList<string>Filter by actor IDs.
ActorIdsNotIReadOnlyList<string>Exclude specific actor IDs.
ActorIpAddressesIReadOnlyList<string>Filter by actor IP addresses.
ActorIpAddressesNotIReadOnlyList<string>Exclude specific actor IP addresses.
ActorTokenIdsIReadOnlyList<string>Filter by actor token IDs.
ActorTokenIdsNotIReadOnlyList<string>Exclude specific actor token IDs.
ActorTokenNamesIReadOnlyList<string>Filter by actor token names.
ActorTokenNamesNotIReadOnlyList<string>Exclude specific actor token names.
ActorContextsIReadOnlyList<string>Filter by actor contexts (e.g., "dashboard", "api").
ActorContextsNotIReadOnlyList<string>Exclude specific actor contexts.
ActorTypesIReadOnlyList<string>Filter by actor types (e.g., "user", "system").
ActorTypesNotIReadOnlyList<string>Exclude specific actor types.
ActionTypesIReadOnlyList<string>Filter by action types (e.g., "create", "update", "delete").
ActionTypesNotIReadOnlyList<string>Exclude specific action types.
ActionResultsIReadOnlyList<string>Filter by action results (e.g., "success", "failure").
ActionResultsNotIReadOnlyList<string>Exclude specific action results.
ResourceIdsIReadOnlyList<string>Filter by resource IDs.
ResourceIdsNotIReadOnlyList<string>Exclude specific resource IDs.
ResourceProductsIReadOnlyList<string>Filter by resource products.
ResourceProductsNotIReadOnlyList<string>Exclude specific resource products.
ResourceTypesIReadOnlyList<string>Filter by resource types.
ResourceTypesNotIReadOnlyList<string>Exclude specific resource types.
ResourceScopesIReadOnlyList<string>Filter by resource scopes.
ResourceScopesNotIReadOnlyList<string>Exclude specific resource scopes.
ZoneIdsIReadOnlyList<string>Filter by zone IDs.
ZoneIdsNotIReadOnlyList<string>Exclude specific zone IDs.
ZoneNamesIReadOnlyList<string>Filter by zone names.
ZoneNamesNotIReadOnlyList<string>Exclude specific zone names.
RawCfRayIdsIReadOnlyList<string>Filter by Cloudflare Ray IDs.
RawCfRayIdsNotIReadOnlyList<string>Exclude specific Cloudflare Ray IDs.
RawMethodsIReadOnlyList<string>Filter by HTTP methods.
RawMethodsNotIReadOnlyList<string>Exclude specific HTTP methods.
RawStatusCodesIReadOnlyList<int>Filter by HTTP status codes.
RawStatusCodesNotIReadOnlyList<int>Exclude specific HTTP status codes.
RawUrisIReadOnlyList<string>Filter by request URIs.
RawUrisNotIReadOnlyList<string>Exclude specific request URIs.
AccountNamesIReadOnlyList<string>Filter by account names.
AccountNamesNotIReadOnlyList<string>Exclude specific account names.
Examples
// Get logs for specific action types, excluding failures
var filters = new ListAuditLogsFilters(
ActionTypes: new[] { "create", "update" },
ActionResultsNot: new[] { "failure" }
);
Properties
AccountNames
Filter by account names.
public IReadOnlyList<string>? AccountNames { get; init; }
Property Value
AccountNamesNot
Exclude specific account names.
public IReadOnlyList<string>? AccountNamesNot { get; init; }
Property Value
ActionResults
Filter by action results (e.g., "success", "failure").
public IReadOnlyList<string>? ActionResults { get; init; }
Property Value
ActionResultsNot
Exclude specific action results.
public IReadOnlyList<string>? ActionResultsNot { get; init; }
Property Value
ActionTypes
Filter by action types (e.g., "create", "update", "delete").
public IReadOnlyList<string>? ActionTypes { get; init; }
Property Value
ActionTypesNot
Exclude specific action types.
public IReadOnlyList<string>? ActionTypesNot { get; init; }
Property Value
ActorContexts
Filter by actor contexts (e.g., "dashboard", "api").
public IReadOnlyList<string>? ActorContexts { get; init; }
Property Value
ActorContextsNot
Exclude specific actor contexts.
public IReadOnlyList<string>? ActorContextsNot { get; init; }
Property Value
ActorEmails
Filter by actor email addresses.
public IReadOnlyList<string>? ActorEmails { get; init; }
Property Value
ActorEmailsNot
Exclude specific actor email addresses.
public IReadOnlyList<string>? ActorEmailsNot { get; init; }
Property Value
ActorIds
Filter by actor IDs.
public IReadOnlyList<string>? ActorIds { get; init; }
Property Value
ActorIdsNot
Exclude specific actor IDs.
public IReadOnlyList<string>? ActorIdsNot { get; init; }
Property Value
ActorIpAddresses
Filter by actor IP addresses.
public IReadOnlyList<string>? ActorIpAddresses { get; init; }
Property Value
ActorIpAddressesNot
Exclude specific actor IP addresses.
public IReadOnlyList<string>? ActorIpAddressesNot { get; init; }
Property Value
ActorTokenIds
Filter by actor token IDs.
public IReadOnlyList<string>? ActorTokenIds { get; init; }
Property Value
ActorTokenIdsNot
Exclude specific actor token IDs.
public IReadOnlyList<string>? ActorTokenIdsNot { get; init; }
Property Value
ActorTokenNames
Filter by actor token names.
public IReadOnlyList<string>? ActorTokenNames { get; init; }
Property Value
ActorTokenNamesNot
Exclude specific actor token names.
public IReadOnlyList<string>? ActorTokenNamesNot { get; init; }
Property Value
ActorTypes
Filter by actor types (e.g., "user", "system").
public IReadOnlyList<string>? ActorTypes { get; init; }
Property Value
ActorTypesNot
Exclude specific actor types.
public IReadOnlyList<string>? ActorTypesNot { get; init; }
Property Value
Before
Return logs from before this date (RFC3339).
public DateTime? Before { get; init; }
Property Value
Cursor
Pagination cursor from previous response.
public string? Cursor { get; init; }
Property Value
Direction
Sort direction.
public ListOrderDirection? Direction { get; init; }
Property Value
Ids
Filter by specific audit log IDs.
public IReadOnlyList<string>? Ids { get; init; }
Property Value
IdsNot
Exclude specific audit log IDs.
public IReadOnlyList<string>? IdsNot { get; init; }
Property Value
Limit
Maximum results per request (1-1000, default 100).
public int? Limit { get; init; }
Property Value
- int?
RawCfRayIds
Filter by Cloudflare Ray IDs.
public IReadOnlyList<string>? RawCfRayIds { get; init; }
Property Value
RawCfRayIdsNot
Exclude specific Cloudflare Ray IDs.
public IReadOnlyList<string>? RawCfRayIdsNot { get; init; }
Property Value
RawMethods
Filter by HTTP methods.
public IReadOnlyList<string>? RawMethods { get; init; }
Property Value
RawMethodsNot
Exclude specific HTTP methods.
public IReadOnlyList<string>? RawMethodsNot { get; init; }
Property Value
RawStatusCodes
Filter by HTTP status codes.
public IReadOnlyList<int>? RawStatusCodes { get; init; }
Property Value
RawStatusCodesNot
Exclude specific HTTP status codes.
public IReadOnlyList<int>? RawStatusCodesNot { get; init; }
Property Value
RawUris
Filter by request URIs.
public IReadOnlyList<string>? RawUris { get; init; }
Property Value
RawUrisNot
Exclude specific request URIs.
public IReadOnlyList<string>? RawUrisNot { get; init; }
Property Value
ResourceIds
Filter by resource IDs.
public IReadOnlyList<string>? ResourceIds { get; init; }
Property Value
ResourceIdsNot
Exclude specific resource IDs.
public IReadOnlyList<string>? ResourceIdsNot { get; init; }
Property Value
ResourceProducts
Filter by resource products.
public IReadOnlyList<string>? ResourceProducts { get; init; }
Property Value
ResourceProductsNot
Exclude specific resource products.
public IReadOnlyList<string>? ResourceProductsNot { get; init; }
Property Value
ResourceScopes
Filter by resource scopes.
public IReadOnlyList<string>? ResourceScopes { get; init; }
Property Value
ResourceScopesNot
Exclude specific resource scopes.
public IReadOnlyList<string>? ResourceScopesNot { get; init; }
Property Value
ResourceTypes
Filter by resource types.
public IReadOnlyList<string>? ResourceTypes { get; init; }
Property Value
ResourceTypesNot
Exclude specific resource types.
public IReadOnlyList<string>? ResourceTypesNot { get; init; }
Property Value
Since
Return logs from after this date (RFC3339).
public DateTime? Since { get; init; }
Property Value
ZoneIds
Filter by zone IDs.
public IReadOnlyList<string>? ZoneIds { get; init; }
Property Value
ZoneIdsNot
Exclude specific zone IDs.
public IReadOnlyList<string>? ZoneIdsNot { get; init; }
Property Value
ZoneNames
Filter by zone names.
public IReadOnlyList<string>? ZoneNames { get; init; }
Property Value
ZoneNamesNot
Exclude specific zone names.
public IReadOnlyList<string>? ZoneNamesNot { get; init; }