Table of Contents

Class CreateLockdownRequest

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

Defines the request payload for creating a new Zone Lockdown rule.

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

Constructors

CreateLockdownRequest(IReadOnlyList<string>, IReadOnlyList<LockdownConfiguration>, string?, bool?, string?)

Defines the request payload for creating a new Zone Lockdown rule.

public CreateLockdownRequest(IReadOnlyList<string> Urls, IReadOnlyList<LockdownConfiguration> Configurations, string? Id = null, bool? Paused = false, string? Description = null)

Parameters

Urls IReadOnlyList<string>
Configurations IReadOnlyList<LockdownConfiguration>
Id string
Paused bool?
Description string

Properties

Configurations

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

Property Value

IReadOnlyList<LockdownConfiguration>

Description

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

Property Value

string

Id

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

Property Value

string

Paused

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

Property Value

bool?

Urls

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

Property Value

IReadOnlyList<string>