[Engine-devel] get certificate with SDK
wlbleaboy@126
wlbleaboy at 126.com
Fri Jul 26 02:20:47 UTC 2013
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'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/engine-devel/attachments/20130726/7a4f2185/attachment.html>
More information about the Engine-devel
mailing list