net3000.cloudflare 1.0.0

dotnet add package net3000.cloudflare --version 1.0.0
                    
NuGet\Install-Package net3000.cloudflare -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="net3000.cloudflare" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="net3000.cloudflare" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="net3000.cloudflare" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add net3000.cloudflare --version 1.0.0
                    
#r "nuget: net3000.cloudflare, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package net3000.cloudflare@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=net3000.cloudflare&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=net3000.cloudflare&version=1.0.0
                    
Install as a Cake Tool

Net3000.Cloudflare

Overview

The Net3000.Cloudflare library provides comprehensive integration with Cloudflare's API for Net3000 solutions. This library enables DNS management, zone configuration, analytics tracking, and CDN management using Cloudflare's robust cloud infrastructure platform.

Features

  • DNS Management: Create, update, and manage DNS records
  • Zone Management: Configure and manage Cloudflare zones
  • Analytics: Access zone analytics and performance data
  • Security Settings: Manage security features and firewall rules
  • CDN Configuration: Configure caching and CDN settings
  • SSL/TLS Management: Handle SSL certificates and security settings

Installation

dotnet add package net3000.cloudflare

Dependencies

  • System.IdentityModel.Tokens.Jwt (v8.14.0)

Configuration

Add your Cloudflare credentials to your configuration:

{
  "Cloudflare": {
    "ApiToken": "your-cloudflare-api-token",
    "AccountId": "your-account-id",
    "BaseUrl": "https://api.cloudflare.com/client/v4"
  }
}

Usage

Basic Setup

using Net3000.Cloudflare;

// Initialize the Cloudflare service
var cloudflareService = new CloudflareService(configuration);

DNS Management

// Create a DNS record
var dnsRecord = await cloudflareService.CreateDnsRecordAsync(
    zoneId: "your-zone-id",
    name: "www.example.com",
    type: "A",
    content: "192.168.1.1",
    ttl: 3600
);

// Update DNS record
await cloudflareService.UpdateDnsRecordAsync(
    zoneId: "your-zone-id",
    recordId: "record-id",
    content: "192.168.1.2"
);

// Delete DNS record
await cloudflareService.DeleteDnsRecordAsync(
    zoneId: "your-zone-id",
    recordId: "record-id"
);

Zone Management

// Get zone information
var zone = await cloudflareService.GetZoneAsync("your-zone-id");

// Get all zones
var zones = await cloudflareService.GetZonesAsync();

// Create a new zone
var newZone = await cloudflareService.CreateZoneAsync(
    name: "example.com",
    accountId: "your-account-id"
);

Analytics

// Get zone analytics
var analytics = await cloudflareService.GetZoneAnalyticsAsync(
    zoneId: "your-zone-id",
    since: DateTime.Now.AddDays(-30),
    until: DateTime.Now
);

// Get DNS analytics
var dnsAnalytics = await cloudflareService.GetDnsAnalyticsAsync(
    zoneId: "your-zone-id",
    startDate: DateTime.Now.AddDays(-7),
    endDate: DateTime.Now
);

API Reference

CloudflareService Class

Main service class for Cloudflare API integration.

Methods
  • GetZonesAsync() - Retrieve all zones
  • GetZoneAsync() - Get specific zone information
  • CreateZoneAsync() - Create a new zone
  • UpdateZoneAsync() - Update zone settings
  • DeleteZoneAsync() - Delete a zone
  • GetDnsRecordsAsync() - Get DNS records for a zone
  • CreateDnsRecordAsync() - Create a new DNS record
  • UpdateDnsRecordAsync() - Update DNS record
  • DeleteDnsRecordAsync() - Delete DNS record
  • GetZoneAnalyticsAsync() - Get zone analytics data
  • GetDnsAnalyticsAsync() - Get DNS analytics data

Models

  • Zone - Cloudflare zone information
  • DnsRecord - DNS record data structure
  • ZoneAnalytics - Zone analytics data
  • DnsAnalytics - DNS analytics data
  • CloudflareResponse - API response wrapper

Error Handling

Comprehensive error handling with detailed error messages from Cloudflare API. All methods include proper exception handling and return standardized response objects.

Rate Limiting

The library respects Cloudflare API rate limits and includes built-in retry logic for handling temporary rate limit exceeded responses.

Security Features

  • API token authentication
  • Secure credential storage
  • Request signing and validation
  • SSL/TLS certificate management

Analytics and Monitoring

  • Real-time zone performance data
  • DNS query analytics
  • Security event monitoring
  • Bandwidth and traffic statistics

Testing

Use Cloudflare's test environment for development:

  • Test API token from Cloudflare dashboard
  • Test zones for development purposes
  • Sandbox environment for testing

License

This library is proprietary to Net3000. Usage is restricted to Net3000.ca solutions and authorized affiliates. Redistribution, sublicensing, or integration with third-party products outside the Net3000 ecosystem is prohibited without written consent from Net3000.

Support

For support and questions, contact the Net3000 development team or visit net3000.ca.

Changelog

v1.0.0

  • Initial release with Cloudflare API integration
  • DNS and zone management capabilities
  • Analytics and performance monitoring
  • Security settings and SSL management
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on net3000.cloudflare:

Package Downloads
net3000.servicecoordinator

Service coordination library for Net3000 solutions. Provides API connection management and service orchestration capabilities.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 172 7/9/2026

Initial release of Net3000 Cloudflare library with zone management and analytics capabilities.