Greetings!
I am setting up NUT (Network UPS Tools) to shutdown my PVE servers in the event of a power outage. Right now I am using the API to shutdown each node individually, but I would prefer to tell the whole cluster to shut down all nodes all at once so VM's get shut down in the proper order regardless of which node they are on. is that possible? I did not see anything in the API document under cluster regarding this
here is the CURL command I am using for this :
curl -X POST -H 'Authorization: PVEAPIToken=<<TOKENDETAILS>> '\
"https://<<HOST>>/api2/json/nodes/$PVENode/status" --insecure --data "command=shutdown" &> /dev/null
Any help would be appreciated!
Thanks!
I am setting up NUT (Network UPS Tools) to shutdown my PVE servers in the event of a power outage. Right now I am using the API to shutdown each node individually, but I would prefer to tell the whole cluster to shut down all nodes all at once so VM's get shut down in the proper order regardless of which node they are on. is that possible? I did not see anything in the API document under cluster regarding this
here is the CURL command I am using for this :
curl -X POST -H 'Authorization: PVEAPIToken=<<TOKENDETAILS>> '\
"https://<<HOST>>/api2/json/nodes/$PVENode/status" --insecure --data "command=shutdown" &> /dev/null
Any help would be appreciated!
Thanks!