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
UrlsIReadOnlyList<string>ConfigurationsIReadOnlyList<LockdownConfiguration>IdstringPausedbool?Descriptionstring
Properties
Configurations
[JsonPropertyName("configurations")]
public IReadOnlyList<LockdownConfiguration> Configurations { get; init; }
Property Value
Description
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
Id
[JsonPropertyName("id")]
public string? Id { get; init; }
Property Value
Paused
[JsonPropertyName("paused")]
public bool? Paused { get; init; }
Property Value
- bool?
Urls
[JsonPropertyName("urls")]
public IReadOnlyList<string> Urls { get; init; }