
On 08/06/2012 02:43 AM, Artem wrote:
Hm...
thi is correct?
curl -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" -u admin@internal:pass -d "<action><ticket><expiry>900</expiry></ticket></action>" https://192.168.0.3:8443/api/vms/d3db360f-4ff5-46f5-b61d-db09465db52c/ticket
partially... this allows you to get the ticket in the response. i see the documentation is missing it, but you can also set the ticket value with your own password which should be easier then getting it from the response. <xs:complexType name="Ticket"> <xs:sequence> <xs:element name="value" type="xs:string" minOccurs="0" maxOccurs="1"/> <xs:element name="expiry" type="xs:unsignedInt" minOccurs="0" maxOccurs="1"/> </xs:sequence> </xs:complexType>
2012/8/6 Artem <artem@e-inet.ru>:
Run console from ovirt-shell work... but no auto fullscreen for display vm
////
# ovirt-shell -c -l "http://192.168.0.3:8080/api" -u "admin@internal" -p 'pass'
==========================================
connected to oVirt manager 3.1.0.0 <<< ==========================================
++++++++++++++++++++++++++++++++++++++++++
Welcome to oVirt shell
++++++++++++++++++++++++++++++++++++++++++
[oVirt shell (connected)]# console dns-srv
////
and console open
2012/8/6 Itamar Heim <iheim@redhat.com>:
or just use the ovirt cli 'console' command which will open a spice console for you after doing all you are trying to do...