Oracle Linux Virtualization Manager (OLVM) (MOSC)

MOSC Banner

Pls teach me About Rest API (OLVM)

edited Aug 10, 2023 3:35AM in Oracle Linux Virtualization Manager (OLVM) (MOSC) 2 commentsAnswered

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)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center