Table of Contents

Class Account

Namespace
Cloudflare.NET.Accounts.Models
Assembly
Cloudflare.NET.dll

Represents a Cloudflare account, the top-level container for zones and resources.

Accounts own zones, Workers, R2 buckets, and other Cloudflare resources. Multiple users can be members of the same account with different permission levels.

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

Remarks

Accounts can be managed within organizational hierarchies for enterprise customers. The ManagedBy property contains parent organization information for managed accounts.

Constructors

Account(string, string, AccountType, DateTime, AccountManagedBy?, AccountSettings?)

Represents a Cloudflare account, the top-level container for zones and resources.

Accounts own zones, Workers, R2 buckets, and other Cloudflare resources. Multiple users can be members of the same account with different permission levels.

public Account(string Id, string Name, AccountType Type, DateTime CreatedOn, AccountManagedBy? ManagedBy = null, AccountSettings? Settings = null)

Parameters

Id string

Account identifier tag (32 hexadecimal characters).

Name string

The name of the account, typically the company or organization name.

Type AccountType

The type of account (e.g., standard, enterprise).

CreatedOn DateTime

When the account was created.

ManagedBy AccountManagedBy

Parent organization information for managed accounts. Null for standalone accounts that are not part of an organizational hierarchy.

Settings AccountSettings

Account settings including security and administrative configurations. May be null if settings have not been configured or are not returned by the API.

Remarks

Accounts can be managed within organizational hierarchies for enterprise customers. The ManagedBy property contains parent organization information for managed accounts.

See Also

Properties

CreatedOn

When the account was created.

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

Property Value

DateTime

Id

Account identifier tag (32 hexadecimal characters).

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

Property Value

string

ManagedBy

Parent organization information for managed accounts. Null for standalone accounts that are not part of an organizational hierarchy.

[JsonPropertyName("managed_by")]
public AccountManagedBy? ManagedBy { get; init; }

Property Value

AccountManagedBy

Name

The name of the account, typically the company or organization name.

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string

Settings

Account settings including security and administrative configurations. May be null if settings have not been configured or are not returned by the API.

[JsonPropertyName("settings")]
public AccountSettings? Settings { get; init; }

Property Value

AccountSettings

Type

The type of account (e.g., standard, enterprise).

[JsonPropertyName("type")]
public AccountType Type { get; init; }

Property Value

AccountType

See Also