Table of Contents

Class TokenIpCondition

Namespace
Cloudflare.NET.ApiTokens.Models
Assembly
Cloudflare.NET.dll

IP address inclusion/exclusion rules for token access.

Supports both allowlist (in) and denylist (not_in) patterns using CIDR notation.

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

Constructors

TokenIpCondition(IReadOnlyList<string>?, IReadOnlyList<string>?)

IP address inclusion/exclusion rules for token access.

Supports both allowlist (in) and denylist (not_in) patterns using CIDR notation.

public TokenIpCondition(IReadOnlyList<string>? In = null, IReadOnlyList<string>? NotIn = null)

Parameters

In IReadOnlyList<string>

CIDR ranges from which the token can be used. Example: ["192.168.1.0/24", "10.0.0.0/8"]

NotIn IReadOnlyList<string>

CIDR ranges from which the token cannot be used. Example: ["192.168.1.100/32"]

Properties

In

CIDR ranges from which the token can be used. Example: ["192.168.1.0/24", "10.0.0.0/8"]

[JsonPropertyName("in")]
public IReadOnlyList<string>? In { get; init; }

Property Value

IReadOnlyList<string>

NotIn

CIDR ranges from which the token cannot be used. Example: ["192.168.1.100/32"]

[JsonPropertyName("not_in")]
public IReadOnlyList<string>? NotIn { get; init; }

Property Value

IReadOnlyList<string>