Perform automatic shutdown/stop on VM disable

Instead of requiring the VM to already be stopped, instead allow disable
state changes to perform a shutdown first. Also add a force option which
will do a hard stop instead of a shutdown.

References #148
This commit is contained in:
2021-11-06 03:53:44 -04:00
parent 78faa90139
commit 5f193a6134
4 changed files with 30 additions and 10 deletions

View File

@ -6680,6 +6680,12 @@
"required": true,
"type": "string"
},
{
"description": "Whether to force stop instead of shutdown VM during disable",
"in": "query",
"name": "force",
"type": "boolean"
},
{
"description": "Whether to block waiting for the state change to complete",
"in": "query",