Pls teach me About Rest API (OLVM)
Hi Experts ,
OLVM version os 4.3.10.4.
I made a script to start a virtual OS using OLVM's REST API, but it doesn't work.
I want to start from windows powershell.
The script is below
$response = Invoke-RestMethod -Uri "https://xx.xx.xx.xx/ovirt-engine/api/vms/8dd255c0-a6ae-4b97-906a-e72dc7dbd2b3/start" -Method Post -Headers $headers
When I run it, there is no problem with authentication, but I get an error
--------------------------------------------------------------------------------------------
Invoke-RestMethod :
For correct usage, see: https://xx.xx.xx.xx/ovirt-engine/apidoc#services/vm/methods/start
Request syntactically incorrect.
-------------------------------------------------------------------------------------------
(looks like a syntax error)