Hi, all:

         I can got all the VM’s information in
https://{ovirt-engine}/api/vms/{id}
<https://%7bovirt-engine%7d/api/vms/%7bid%7d> , and I can 

get mostly VM’s informations via ovirt-engine-sdk, but I can’t got
<certificate> via SDK.

 

         This is a part of XML in https://{ovirt-engine}/api/vms/{id}
<https://%7bovirt-engine%7d/api/vms/%7bid%7d>  

         <display>

<type>spice</type>

<address>192.168.1.241</address>

<port>5914</port>

<secure_port>5915</secure_port>

<monitors>1</monitors>

<allow_override>false</allow_override>

<certificate>

<subject>O=thtfc.com,CN=allinone241.thtfc.com</subject>

</certificate>

<smartcard_enabled>false</smartcard_enabled>

</display>

 

For example, I can port like

         vm.get_display().get_port()

 

but when I want CN, I tyied use

         vm.get_display().get_certificate().get_subject()

it return

 

>>> vm.get_display().get_certificate().get_subject()

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

AttributeError: 'NoneType' object has no attribute 'get_subject'

_______________________________________________
Engine-devel mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-devel

Reply via email to