hetznercloudapi 3.0.39-beta
dotnet add package hetznercloudapi --version 3.0.39-beta
NuGet\Install-Package hetznercloudapi -Version 3.0.39-beta
<PackageReference Include="hetznercloudapi" Version="3.0.39-beta" />
paket add hetznercloudapi --version 3.0.39-beta
#r "nuget: hetznercloudapi, 3.0.39-beta"
// Install hetznercloudapi as a Cake Addin #addin nuget:?package=hetznercloudapi&version=3.0.39-beta&prerelease // Install hetznercloudapi as a Cake Tool #tool nuget:?package=hetznercloudapi&version=3.0.39-beta&prerelease
Hetzner Cloud API for .NET
Here you can find a .NET library for the Hetzner Cloud API, with which all functions of the endpoints can be used.
The current version is provided as .NET Standard 2.0, currently I am working on a new version for .NET 6 (with features like dependency injection, etc.)
<a href="https://www.buymeacoffee.com/lk.code" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
Hetzner Cloud API Client for .NET
installation
see the getting started page here https://github.com/lk-code/hetzner-cloud-api-net/wiki/getting-started
demo
see the demo projects here https://github.com/lk-code/hetzner-cloud-api-net-demo
documentation
see the documentation on https://github.com/lk-code/hetzner-cloud-api-net/wiki
informations 😃
see the demo projects here https://github.com/lk-code/hetzner-cloud-api-net-demo
New Documentation for Hetzner Cloud API Client (based on v3-Client)
installation
The v3 client is currently only available as a prerelease. Accordingly, the "Include Prerelease" flag must be set in the NuGet search.
dotnet add package hetznercloudapi
usage
initialization
API Token via AppSettings
add the following block to your AppSettings:
{
"HetznerCloud": {
"ApiToken": "YOUR_API_TOKEN"
}
}
Load API Token dynamically
Alternatively, the API token can also be set dynamically:
IHetznerCloudService _hetznerCloudService = {get instance via DI};
...
_hetznerCloudService.LoadApiToken("{YOUR_API_TOKEN}");
Server
Access via IServerService
Get all servers
Definition:
Task<Page<Server>> GetAllAsync(int page = 1,
int itemsPerPage = 25,
List<IFilter>? filter = null,
Sorting<ServerSortField>? sorting = null,
CancellationToken cancellationToken = default);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Http (>= 8.0.0)
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 |
---|---|---|
3.0.39-beta | 344 | 12/21/2023 |
3.0.38-beta | 131 | 12/20/2023 |
3.0.37-beta | 130 | 12/20/2023 |
3.0.30-beta | 150 | 12/3/2023 |
3.0.29-beta | 140 | 12/3/2023 |
3.0.28-beta | 133 | 12/3/2023 |
3.0.27-beta | 122 | 12/3/2023 |
3.0.26-beta | 136 | 12/3/2023 |
3.0.25-beta | 130 | 12/3/2023 |
3.0.24-beta | 135 | 12/3/2023 |
3.0.23-beta | 125 | 12/3/2023 |
3.0.22-beta | 128 | 12/3/2023 |
3.0.21-beta | 132 | 12/2/2023 |
2.0.16 | 2,736 | 4/22/2023 |
2.0.15 | 265 | 3/20/2023 |
2.0.14 | 477 | 12/21/2022 |
2.0.12 | 345 | 12/21/2022 |
2.0.11 | 308 | 12/20/2022 |
2.0.10 | 378 | 12/1/2022 |
2.0.9 | 370 | 12/1/2022 |
2.0.8 | 417 | 11/6/2022 |
2.0.7 | 425 | 11/6/2022 |
2.0.6 | 418 | 11/4/2022 |
2.0.5 | 394 | 11/4/2022 |
2.0.4 | 412 | 11/4/2022 |
2.0.3 | 409 | 11/4/2022 |
1.0.30 | 795 | 1/30/2021 |
1.0.27 | 890 | 9/29/2018 |
1.0.26 | 813 | 9/3/2018 |
1.0.21 | 791 | 9/2/2018 |
1.0.20 | 842 | 8/29/2018 |
1.0.4 | 770 | 8/27/2018 |
1.0.3 | 827 | 8/25/2018 |
1.0.2 | 825 | 8/11/2018 |
1.0.1 | 883 | 8/9/2018 |