Comments (2)
I was in hurry to look for a way to get some info from Hetzner using command-line. I don't want PHP so I tried this library. Sadly the documentation is really lacking. I put my notes here, hope that it could save some time and frustration for people in similar situation.
# install:
pip3 install hetzner
# create a minimal config file:
cat <<EOT > ~/.hetznerrc
[login]
username = abc
password = def
EOT
# list all my servers:
hetznerctl list
# show details of one server:
hetznerctl show 1.2.3.4 # 1.2.3.4 = IP of the server from previous command
from hetzner.
First of all, I completely agree that this library needs better documentation and also better packaging.
I got my RDNS kinda working, but the library does not output anything which can be used to determine if it was successful?
You can look at the hetznerctl
tool for example usage:
Lines 211 to 229 in e3e20a8
In terms of determining whether it was successfully set, first of all you get an exception if the POST on /rdns/N
has failed. So in theory this should be enough. However if you want to be absolutely sure, you could call update_info()
on the ReverseDNS
object and check whether the value is the correct one.
from hetzner.
Related Issues (20)
- Branching/tags question HOT 2
- Check that Hetzner returns 2FA info message HOT 3
- update CA_ROOT_CERT_FALLBACK to current HOT 2
- robot access seems broken HOT 2
- Add host key checking for rescue system
- hetzner API broken?
- 401 - Unauthorized (401) HOT 2
- Default certificate doesn't work on windows HOT 2
- RescueSystem.activate() is missing authorized_keys parameter in 0.8.3? HOT 2
- Compatibility issues on Windows HOT 1
- Add a password_command config option HOT 3
- hetznerctl list hangs HOT 1
- SSL Certificates Issue - 'CERTIFICATE_VERIFY_FAILED' HOT 1
- getting UNAUTHORIZED error HOT 1
- Support IPv6-only server and Colocation
- Deprecation: "arch" parameter got deprecated in API HOT 1
- Reset method "soft" does not work on AX servers HOT 3
- Login error from unexpected redirection
- hetznerctl reboot throws error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hetzner.