vmj / groovy-upcloud

Groovy UpCloud library
GNU General Public License v3.0
1 stars 0 forks source link

Add support for `host`/`avoidHost` properties in `ServerApi::{,re}start` methods #7

Open vmj opened 4 years ago

vmj commented 4 years ago

Starting a server used to be an empty POST call. Now it takes a Server resource with host and/or avoidHost properties.

Both of those properties are optional. Does the API still accept empty POST body?

https://developers.upcloud.com/1.3/8-servers/#start-server

Restarting a server now takes an optional host property.This begs a question: should the method take a RestartServer resource as a parameter? And why not avoidHost, or does it?

https://developers.upcloud.com/1.3/8-servers/#restart-server