lk-code / hetzner-cloud-api-net Goto Github PK
View Code? Open in Web Editor NEWthe project is a .NET library to access the Hetzner Cloud
Home Page: https://lk-code.github.io/hetzner-cloud-api-net/
License: MIT License
the project is a .NET library to access the Hetzner Cloud
Home Page: https://lk-code.github.io/hetzner-cloud-api-net/
License: MIT License
Upgrade auf .NET 6 und Anpasung des Codes
implement logic for https://docs.hetzner.cloud/#servers-get-metrics-for-a-server
a Hetzner Cloud Token is only for one group, so you need to set multiple and switch on the fly
Ability to specify multiple API tokens (appsettings):
{
"HetznerCloud": {
"ApiTokens": [
{
"Key": "StagingLevelGroup",
"ApiToken": "....."
},
{
"Key": "DevelopmentGroup",
"ApiToken": "....."
}
]
}
}
IHetznerCloudService => void LoadApiToken(string key, string apiToken);
modify services to request with api tokens (selected one)
implement logic for https://docs.hetzner.cloud/#servers-update-a-server
Dient als Ziel-Branch für die neue Version. Wird nach Abschluss in den Main gemerged.
We couldn't get the server details from hetzners cloud server using hetzner cloud-api-net.
We are trying to get the servers since last week. But couldn't do it. Here I had attached the screenshots for your reference. I had followed by the below steps to get the server details. Finally, my request is terminated in one method without any response. Please give any suggestion or solution for me.
Step 1:
Step 2:
Above request is going to the GetAsync method in Server.cs. There is a call for SendRequest method in this method.
string responseContent = await ApiCore.SendRequest(url);
Step 3:
Finally, my request is terminated in the following highlighted code.
Above method didn't return any values. the request goes for the GetStringAsync method, at this time request was terminated. Please help me. I'm in a critical situation. Please check and find the solution for my issue.
Create Server action isn't present. (Unless I'm going blind)
The Server status is always unknown.
Hello..
When trying to perform a Server.GetAsync(serverId) or a GetAllAsync() I receive an error of the type "Message = "Object reference not set to an instance of an object."" It seems to me that something is happening with the token.
This is the code I am using. (I have deleted the token for security, but at the time of testing it was activated)
I will appreciate your help. Thanks.
added ServerActionsService and Fluent Extension Methods for Server
implement existing logic and implement empty interface methods for all other Server endpoints
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.