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
IdstringAccount identifier tag (32 hexadecimal characters).
NamestringThe name of the account, typically the company or organization name.
TypeAccountTypeThe type of account (e.g., standard, enterprise).
CreatedOnDateTimeWhen the account was created.
ManagedByAccountManagedByParent organization information for managed accounts. Null for standalone accounts that are not part of an organizational hierarchy.
SettingsAccountSettingsAccount 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
Id
Account identifier tag (32 hexadecimal characters).
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
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
Name
The name of the account, typically the company or organization name.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
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
Type
The type of account (e.g., standard, enterprise).
[JsonPropertyName("type")]
public AccountType Type { get; init; }