Soenneker.Cloudflare.OpenApiClient
4.0.570
Prefix Reserved
dotnet add package Soenneker.Cloudflare.OpenApiClient --version 4.0.570
NuGet\Install-Package Soenneker.Cloudflare.OpenApiClient -Version 4.0.570
<PackageReference Include="Soenneker.Cloudflare.OpenApiClient" Version="4.0.570" />
<PackageVersion Include="Soenneker.Cloudflare.OpenApiClient" Version="4.0.570" />
<PackageReference Include="Soenneker.Cloudflare.OpenApiClient" />
paket add Soenneker.Cloudflare.OpenApiClient --version 4.0.570
#r "nuget: Soenneker.Cloudflare.OpenApiClient, 4.0.570"
#:package Soenneker.Cloudflare.OpenApiClient@4.0.570
#addin nuget:?package=Soenneker.Cloudflare.OpenApiClient&version=4.0.570
#tool nuget:?package=Soenneker.Cloudflare.OpenApiClient&version=4.0.570
Soenneker.Cloudflare.OpenApiClient
A Kiota-generated .NET client for Cloudflare's v4 API.
Installation
dotnet add package Soenneker.Cloudflare.OpenApiClient
Recommended setup
For dependency injection, bearer-token configuration, and managed HTTP-client reuse, install Soenneker.Cloudflare.Utils.Client and register its client utility.
dotnet add package Soenneker.Cloudflare.Utils.Client
using Soenneker.Cloudflare.Utils.Client.Registrars;
services.AddCloudflareClientUtilAsSingleton();
Direct construction
using System.Net.Http.Headers;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Cloudflare.OpenApiClient;
using Soenneker.Cloudflare.OpenApiClient.Models;
var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", "your-api-token");
var adapter = new HttpClientRequestAdapter(
new AnonymousAuthenticationProvider(),
httpClient: httpClient);
var cloudflare = new CloudflareOpenApiClient(adapter);
Zones0Get200? response = await cloudflare.Zones[zoneId].GetAsync(
cancellationToken: cancellationToken);
Keep the HttpClient, adapter, and generated client long-lived. Do not attach Cloudflare credentials to an HTTP client that can send requests to unrelated hosts.
Generated surface
The root client mirrors Cloudflare's account-, zone-, user-, and certificate-level API paths. The generated API is very large, and names can reflect schema wording rather than idiomatic C# conventions. Endpoint methods typically accept a request-configuration callback and cancellation token.
Models, request builders, and nullable response shapes can change when Cloudflare's OpenAPI document changes. Review package upgrades when your code depends on generated names. Keep custom behavior outside the generated source tree.
| 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
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.1.0)
- Microsoft.Kiota.Serialization.Form (>= 2.1.0)
- Microsoft.Kiota.Serialization.Json (>= 2.1.0)
- Microsoft.Kiota.Serialization.Multipart (>= 2.1.0)
- Microsoft.Kiota.Serialization.Text (>= 2.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Cloudflare.OpenApiClient:
| Package | Downloads |
|---|---|
|
Soenneker.Cloudflare.Utils.Client
An async thread-safe singleton for the Cloudflare OpenApiClient |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.570 | 35 | 9/3/2026 |
| 4.0.568 | 80 | 9/2/2026 |
| 4.0.565 | 107 | 8/31/2026 |
| 4.0.564 | 10,026 | 7/28/2026 |
| 4.0.563 | 3,545 | 7/16/2026 |
| 4.0.562 | 6,576 | 6/18/2026 |
| 4.0.561 | 4,969 | 6/5/2026 |
| 4.0.560 | 2,577 | 5/18/2026 |
| 4.0.559 | 575 | 5/16/2026 |
| 4.0.558 | 561 | 5/15/2026 |
| 4.0.557 | 514 | 5/14/2026 |
| 4.0.556 | 397 | 5/13/2026 |
| 4.0.555 | 1,517 | 5/8/2026 |
| 4.0.553 | 5,766 | 4/10/2026 |
| 4.0.552 | 528 | 4/9/2026 |
| 4.0.551 | 502 | 4/8/2026 |
| 4.0.550 | 597 | 4/7/2026 |
| 4.0.549 | 543 | 4/6/2026 |
| 4.0.548 | 645 | 4/5/2026 |
| 4.0.547 | 689 | 4/4/2026 |
Update dependency Microsoft.Kiota.Serialization.Multipart to 2.1.0 (#697)