From omachace at redhat.com Wed May 30 11:12:48 2018 Content-Type: multipart/mixed; boundary="===============4148312838332621162==" MIME-Version: 1.0 From: Ondra Machacek To: users at ovirt.org Subject: [ovirt-users] Re: Simple API call to start VM Date: Wed, 30 May 2018 12:52:11 +0200 Message-ID: <5d311e68-5284-57ac-1bda-14b7e90347e4@redhat.com> In-Reply-To: CAJJXPSmM0N5ew6VaEV-WT5qF09m90G8nuK4TJAGAZ7zHgGKygA@mail.gmail.com --===============4148312838332621162== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 05/30/2018 08:07 AM, Kirin van der Veer wrote: > Hi oVirt users, > I have (what I hope) is a simple problem. > I want to make an https request to start a VM via the oVirt REST API. > Here is the command that I think should work: > curl --user "admin:SECRETPASSWORD" --request POST --header = s/admin/admin(a)internal > "Content-Type: application/xml" --header "Accept: application/xml" = > --data '' = > https://ovirtengine.localnet:443/api/vms/69c47a91-bbv1-4eda-b71d-7bddf82e= e8ab/start missing ovirt-engine in URL: https://ovirtengine.localnet:443/ovirt-engine/api/vms/69c47a91-bbv1-4eda-b7= 1d-7bddf82ee8ab/start > = > However I get a 404 in response (see below): > > > 404 Not Found > >

Not Found

>

The requested URL /api/vms/60c47a91-bca1-4eda-b71d-7bddf82ee8ab/start = > was not found on this server.

> > = > Where have I made a mistake here? > = > = > = > *IMPORTANT NOTE. *If you are NOT AN AUTHORISED RECIPIENT of this e-mail, = > please contact Planet Innovation Pty Ltd by return e-mail or by = > telephone on +613 9945 7510.=C2=A0 In this case, you should not read, pri= nt, = > re-transmit, store or act in reliance on this e-mail or any attachments, = > and should destroy all copies of them.=C2=A0 This e-mail and any attachme= nts = > are confidential and may contain legally privileged information and/or = > copyright material of Planet Innovation Pty Ltd or third parties. You = > should only re-transmit, distribute or commercialise the material if you = > are authorised to do so.=C2=A0 Although we use virus scanning software, w= e = > deny all liability for viruses or alike in any message or = > attachment.=C2=A0This notice should not be removed. > = > ** > = > = > _______________________________________________ > Users mailing list -- users(a)ovirt.org > To unsubscribe send an email to users-leave(a)ovirt.org > Privacy Statement: https://www.ovirt.org/site/privacy-policy/ > oVirt Code of Conduct: https://www.ovirt.org/community/about/community-gu= idelines/ > List Archives: https://lists.ovirt.org/archives/list/users(a)ovirt.org/me= ssage/5N6N4BHF6ZFJLEARSEALCON7DJIMXRCZ/ >=20 --===============4148312838332621162==--