net3000.cloudflare
1.0.0
dotnet add package net3000.cloudflare --version 1.0.0
NuGet\Install-Package net3000.cloudflare -Version 1.0.0
<PackageReference Include="net3000.cloudflare" Version="1.0.0" />
<PackageVersion Include="net3000.cloudflare" Version="1.0.0" />
<PackageReference Include="net3000.cloudflare" />
paket add net3000.cloudflare --version 1.0.0
#r "nuget: net3000.cloudflare, 1.0.0"
#:package net3000.cloudflare@1.0.0
#addin nuget:?package=net3000.cloudflare&version=1.0.0
#tool nuget:?package=net3000.cloudflare&version=1.0.0
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 zonesGetZoneAsync()- Get specific zone informationCreateZoneAsync()- Create a new zoneUpdateZoneAsync()- Update zone settingsDeleteZoneAsync()- Delete a zoneGetDnsRecordsAsync()- Get DNS records for a zoneCreateDnsRecordAsync()- Create a new DNS recordUpdateDnsRecordAsync()- Update DNS recordDeleteDnsRecordAsync()- Delete DNS recordGetZoneAnalyticsAsync()- Get zone analytics dataGetDnsAnalyticsAsync()- Get DNS analytics data
Models
Zone- Cloudflare zone informationDnsRecord- DNS record data structureZoneAnalytics- Zone analytics dataDnsAnalytics- DNS analytics dataCloudflareResponse- 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 | Versions 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. |
-
net10.0
- System.IdentityModel.Tokens.Jwt (>= 8.17.0)
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.