<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 &quot;Authorization: Basic YWRLKDFLKnfLfdNLDKDFnsldssL2&quot; \</div><div class="gmail_quote">-H &quot;Accept: application/xml&quot; \</div><div class="gmail_quote">-H &quot;Content-Type: application/xml&quot; \</div><div class="gmail_quote">-d &quot;&lt;action&gt;&lt;proxy_ticket&gt;&lt;value&gt;ticket_content&lt;/value&gt;&lt;/proxy_ticket&gt;&lt;/action&gt;&quot; \</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">&lt;<a href="mailto:ollie@fubra.com" target="_blank">ollie@fubra.com</a>&gt;</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&#39;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&#39;ve found is the git commit message in gerrit [1].  Not quite<br>
understanding how to interpret this, I&#39;ve attempted to POST the<br>
following:<br>
<br>
&lt;action/&gt;<br>
<br>
As well as:<br>
<br>
&lt;action&gt; &lt;proxy_ticket&gt; &lt;value&gt;ticket_content&lt;/value&gt; &lt;/proxy_ticket&gt; &lt;/action&gt;<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&#39;ve uploaded my engine.log [2]<br>
which is produced when I POST &quot;&lt;action/&gt;&quot; to the endpoint.<br>
<br>
Is anyone able to tell me how to use this endpoint?  I&#39;m assuming I<br>
get the NPE because I&#39;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>