<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hi Ollie,</div><div class="gmail_quote"><br></div><div class="gmail_quote">I was able to get the proxy ticket with curl like this:</div><div class="gmail_quote"><br></div><div class="gmail_quote"># curl -k -X POST \</div><div class="gmail_quote">-H "Authorization: Basic YWRLKDFLKnfLfdNLDKDFnsldssL2" \</div><div class="gmail_quote">-H "Accept: application/xml" \</div><div class="gmail_quote">-H "Content-Type: application/xml" \</div><div class="gmail_quote">-d "<action><proxy_ticket><value>ticket_content</value></proxy_ticket></action>" \</div><div class="gmail_quote">-L https://{engine}:443/ovirt-engine/api/vms/{vm:id}/graphicsconsoles/{graphicsconsole:id}/proxyticket</div><div><br></div><div>Hope this helps.</div><div><br></div><div>Cheers,</div><div>Gonza.-</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Mar 24, 2016 at 4:44 PM, Ollie Armstrong <span dir="ltr"><<a href="mailto:ollie@fubra.com" target="_blank">ollie@fubra.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi all,<br>
<br>
I'm attempting to use the REST API to get a proxy ticket as BZ1181030<br>
[0] has added support for, but I am unable to find _any_ documentation<br>
on how to use this new API call.<br>
<br>
All I've found is the git commit message in gerrit [1]. Not quite<br>
understanding how to interpret this, I've attempted to POST the<br>
following:<br>
<br>
<action/><br>
<br>
As well as:<br>
<br>
<action> <proxy_ticket> <value>ticket_content</value> </proxy_ticket> </action><br>
<br>
Both of these, and indeed using any other data I can think of, results<br>
in an NPE being logged in engine.log. I've uploaded my engine.log [2]<br>
which is produced when I POST "<action/>" to the endpoint.<br>
<br>
Is anyone able to tell me how to use this endpoint? I'm assuming I<br>
get the NPE because I'm not POSTing the correct data. The overall<br>
goal of this is to be able to embed a NoVNC console in our own web UI,<br>
this is the last piece of the puzzle for me to implement this.<br>
<br>
Thanks,<br>
Ollie<br>
<br>
[0] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1181030" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1181030</a><br>
[1] <a href="https://gerrit.ovirt.org/#/c/42412/" rel="noreferrer" target="_blank">https://gerrit.ovirt.org/#/c/42412/</a><br>
[2] <a href="http://ix.io/uVP" rel="noreferrer" target="_blank">http://ix.io/uVP</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>