Apigen.Hetzner 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Apigen.Hetzner --version 1.0.2
                    
NuGet\Install-Package Apigen.Hetzner -Version 1.0.2
                    
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="Apigen.Hetzner" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Apigen.Hetzner" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Apigen.Hetzner" />
                    
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 Apigen.Hetzner --version 1.0.2
                    
#r "nuget: Apigen.Hetzner, 1.0.2"
                    
#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 Apigen.Hetzner@1.0.2
                    
#: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=Apigen.Hetzner&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Apigen.Hetzner&version=1.0.2
                    
Install as a Cake Tool

Apigen.Hetzner

One NuGet package, three generated C# clients for Hetzner's public REST APIs.

dotnet add package Apigen.Hetzner

What's inside

Client Endpoint Auth Credential source
Apigen.Hetzner.Cloud api.hetzner.cloud/v1 Bearer token Cloud Console → Project → API tokens
Apigen.Hetzner.Api api.hetzner.com/v1 Bearer token Hetzner Console → Security → API tokens
Apigen.Hetzner.Robot robot-ws.your-server.de HTTP Basic Robot panel → Settings → Web service user

The three APIs are unrelated services with different base URLs, different credentials and different documentation. Tokens are not shared between them.

Usage

using Apigen.Hetzner.Cloud;
using Apigen.Hetzner.Api;
using Apigen.Hetzner.Robot;

var cloud = HetznerCloudClient.WithBearer("hcloud-token");
var api   = HetznerApiClient.WithBearer("hetzner-account-token");
var robot = HetznerRobotClient.WithBasic("#ws+user", "ws-password");

var cloudServers     = await cloud.Servers.ListServersAsync();
var dnsZones         = await api.Zones.ListAsync();
var dedicatedServers = await robot.Server.GetAllAsync();
var serverDetail     = (await robot.Server.GetAsync("321")).Server;
Console.WriteLine(serverDetail.ServerIp);

Versioning

major.minor tracks the upstream Hetzner API generation; patch is the client revision.

Source

License

MIT

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.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 82 5/15/2026
1.0.5 77 5/13/2026
1.0.4 76 5/12/2026
1.0.3 84 5/12/2026
1.0.2 78 5/12/2026
1.0.1 83 5/12/2026
1.0.0 87 5/12/2026