Hi
I'm trying to open the remote console plugin to access vm consoles in the browser.
I make a rest call to
https://10.0.11.31/api/v1.0/vApp/vm-273392803/screen/action/acquireTicket
which returns
<ScreenTicket xmlns="http://www.vmware.com/vcloud/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1 http://10.0.11.31/api/v1.0/schema/master.xsd">mks://10.0.11.43/vm-3218?ticket=TE-Q9%2B%2BXkIf4n6Ml60ojet7%2F1yQNLzvyknmwZHnbnVDuxbINMgQYDhXHwOMxCp7cbixPsnoOuP9%2FcqJNtQjvTRuErle4ddi%2BaNt-pDLeMtRtl8EVz2QGJzYRRIbn1mGoS0JCzt8TjWOrHKjhIc6v1ww4irTxXeUWRNT76r%2FxmieL5qHJuNs0YJGTOKmcpZ7DJmLbpIzd4qB9SUzbI6m9ltkiboGffBKRxQbwDsyEUHoW1j88kHyypXQNi3FfYfE%2BgIR7OgeibIz2nG0%3D</ScreenTicket>
from this String i extract the host, ticket and vm args required for the browser object.... the ticket part of the string appears to be URL encoded so i decode it then I push this to the browser and then use this code to launch the console.
<object id="mks" type="application/x-vmware-vmrc;version=2.5.0.279773"></object>
<script>
The only thing I can think of is the 30 second ticket lifetime. After that, the ticket becomes invalid.
One issue we have seen before was using .NET for rest and the screen ticket. The ticket that comes back this way can not be used directly. You must Url.Decode it first, then use the decoded ticket, and that works. (Also as said before, you get 30 seconds to use the ticket from when it is created)