community.hrobot
community.hrobot copied to clipboard
Cancel a server
Hello,
I looked up the doc and I am not able to find an API to cancel a server:
https://robot.hetzner.com/doc/webservice/en.html#post-server-server-number-cancellation
Are you ok if I implement that ?
I think you mean module, not API, since you did find an API (you linked to it) :)
In any case, feel free to create and contribute a module for this! I'd suggest to name it server_cancellation, with state=cancelled and state=not-cancelled (or something like that).
(It might make sense to try a server_cancellation_info module first which allows to query https://robot.hetzner.com/doc/webservice/en.html#get-server-server-number-cancellation.)