Table of Contents

Class Lockdown

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

Represents a Zone Lockdown rule returned by the Cloudflare API.

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

Constructors

Lockdown(string, IReadOnlyList<string>, IReadOnlyList<LockdownConfiguration>, bool, string?, DateTimeOffset, DateTimeOffset)

Represents a Zone Lockdown rule returned by the Cloudflare API.

public Lockdown(string Id, IReadOnlyList<string> Urls, IReadOnlyList<LockdownConfiguration> Configurations, bool Paused, string? Description, DateTimeOffset CreatedOn, DateTimeOffset ModifiedOn)

Parameters

Id string
Urls IReadOnlyList<string>
Configurations IReadOnlyList<LockdownConfiguration>
Paused bool
Description string
CreatedOn DateTimeOffset
ModifiedOn DateTimeOffset

Properties

Configurations

[JsonPropertyName("configurations")]
public IReadOnlyList<LockdownConfiguration> Configurations { get; init; }

Property Value

IReadOnlyList<LockdownConfiguration>

CreatedOn

[JsonPropertyName("created_on")]
public DateTimeOffset CreatedOn { get; init; }

Property Value

DateTimeOffset

Description

[JsonPropertyName("description")]
public string? Description { get; init; }

Property Value

string

Id

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

Property Value

string

ModifiedOn

[JsonPropertyName("modified_on")]
public DateTimeOffset ModifiedOn { get; init; }

Property Value

DateTimeOffset

Paused

[JsonPropertyName("paused")]
public bool Paused { get; init; }

Property Value

bool

Urls

[JsonPropertyName("urls")]
public IReadOnlyList<string> Urls { get; init; }

Property Value

IReadOnlyList<string>