community.hrobot icon indicating copy to clipboard operation
community.hrobot copied to clipboard

Cancel a server

Open ayoubfaouzi opened this issue 1 month ago • 1 comments

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 ?

ayoubfaouzi avatar Oct 28 '25 10:10 ayoubfaouzi

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.)

felixfontein avatar Oct 28 '25 20:10 felixfontein