[Engine-devel] ovirt-engine-sdk with C

ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£ ------=_NextPart_000_0002_01CE5006.1D58D570 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Hi=A3=ACAll I felt oivrt-engine-sdk coded with Python is slowly to connect ovirt-engine and console vm when a user have many vms, So, I just want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk with C to connect overt-engine and console vm, would anyone give=20 me some suggestion. =20 Now, the problem is how can I connect to ovit-engine with C, = and how can I get some information of vms, and how ovirrt-engine can=20 respond my action(start,stop, .eg) =20 =20 Leaboy@beijing Thinks ------=_NextPart_000_0002_01CE5006.1D58D570 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:=CB=CE=CC=E5; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"\@=CB=CE=CC=E5"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; font-size:10.5pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.MsoAcetate, li.MsoAcetate, div.MsoAcetate {mso-style-priority:99; mso-style-link:"=C5=FA=D7=A2=BF=F2=CE=C4=B1=BE Char"; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; font-size:9.0pt; font-family:"Calibri","sans-serif";} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} span.Char {mso-style-name:"=C5=FA=D7=A2=BF=F2=CE=C4=B1=BE Char"; mso-style-priority:99; mso-style-link:=C5=FA=D7=A2=BF=F2=CE=C4=B1=BE;} .MsoChpDefault {mso-style-type:export-only;} /* Page Definitions */ @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DZH-CN link=3Dblue vlink=3Dpurple = style=3D'text-justify-trim:punctuation'> <div class=3DSection1> <p class=3DMsoNormal><span lang=3DEN-US>Hi</span><span = style=3D'font-family:=CB=CE=CC=E5'>=A3=AC</span><span lang=3DEN-US>All<o:p></o:p></span></p> <p class=3DMsoNormal><span = lang=3DEN-US> I felt oivrt-engine-sdk coded with Python is slowly to = connect<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>ovirt-engine and console vm when = a user have many vms, So, I just<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>want to rewrite the sdk with = C(ANSI C Language). Just rewrite a sdk<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>with C to connect overt-engine = and console vm, would anyone give <o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>me some = suggestion.<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span = lang=3DEN-US> Now, the problem is how can I connect to ovit-engine with C, = and<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>how can I get some information = of vms, and how ovirrt-engine can <o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>respond my action(start,stop, = .eg)<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <p class=3DMsoNormal><span = lang=3DEN-US> = &= nbsp; &n= bsp; &nb= sp; &nbs= p;  = ; = Leaboy@beijing<o:p></o:p></span></p> <p class=3DMsoNormal><span = lang=3DEN-US> = &= nbsp; &n= bsp; &nb= sp; &nbs= p; Thinks<o:p></o:p></span></p> </div> </body> </html> ------=_NextPart_000_0002_01CE5006.1D58D570--

On 05/13/2013 01:17 PM, leaboy@126 wrote:
Hi,All
I felt oivrt-engine-sdk coded with Python is slowly to connect
ovirt-engine and console vm when a user have many vms, So, I just, want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk
with C to connect overt-engine and console vm, would anyone give
the amount of VMs should not effect private actions on vm, please show me your code, maybe i can advice on this.
me some suggestion.
Now, the problem is how can I connect to ovit-engine with C, and
how can I get some information of vms, and how ovirrt-engine can
respond my action(start,stop, .eg)
Leaboy@beijing
Thinks
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- Michael Pasternak RedHat, ENG-Virtualization R&D

2013/5/13 leaboy@126 <wlbleaboy@126.com>
Hi,All****
I felt oivrt-engine-sdk coded with Python is slowly to connect*** *
ovirt-engine and console vm when a user have many vms, So, I just****
want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk****
with C to connect overt-engine and console vm, would anyone give ****
me some suggestion.
Do you want to use c to invoke ovirt engine RestAPI, right? If yes, you can use libcurl to do the thing, and it'll make you happy.
****
** **
Now, the problem is how can I connect to ovit-engine with C, and* ***
how can I get some information of vms, and how ovirrt-engine can ****
respond my action(start,stop, .eg)
Agree with Michael Pasternak. You should parse your code into the mail list, or someone can't help you.
****
** **
Leaboy@beijing****
Thinks*** *
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- --- Best Regards Jarod.W

ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£ ------=_NextPart_000_000A_01CE613B.85F9D2F0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Jarod. W: Yes, I just want to use c to invoke ovirt engine RestAPI, Just get vm=E2=80=99s id, host, port, secur-port, and ticket, How can I use libcurl to connect https, could give me a simple demo to connect https://{ovirt-engine}/api = <https://%7bovirt-engine%7d/api> with=20 --cafile, the ca.crt I get from http://{ovirt-engine}/ca.crt = <http://%7bovirt-engine%7d/ca.crt>=20 =20 =20 =E5=8F=91=E4=BB=B6=E4=BA=BA: Jarod. w [mailto:work.iec23801@gmail.com]=20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2013=E5=B9=B45=E6=9C=8814=E6=97=A5 = 10:27 =E6=94=B6=E4=BB=B6=E4=BA=BA: leaboy@126 =E6=8A=84=E9=80=81: engine-devel@ovirt.org =E4=B8=BB=E9=A2=98: Re: [Engine-devel] ovirt-engine-sdk with C =20 2013/5/13 leaboy@126 <wlbleaboy@126.com> Hi=EF=BC=8CAll I felt oivrt-engine-sdk coded with Python is slowly to connect ovirt-engine and console vm when a user have many vms, So, I just want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk with C to connect overt-engine and console vm, would anyone give=20 me some suggestion. Do you want to use c to invoke ovirt engine RestAPI, right? If yes, you can use libcurl to do the thing, and it'll make you happy. =20 =20 Now, the problem is how can I connect to ovit-engine with C, = and how can I get some information of vms, and how ovirrt-engine can=20 respond my action(start,stop, .eg) Agree with Michael Pasternak. You should parse your code into the mail list, or someone can't help you. =20 =20 = Leaboy@beijing Thinks _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel --=20 --- Best Regards Jarod.W ------=_NextPart_000_000A_01CE613B.85F9D2F0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:=E5=AE=8B=E4=BD=93; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"\@=E5=AE=8B=E4=BD=93"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:=E5=AE=8B=E4=BD=93;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DZH-CN link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><span lang=3DEN-US style=3D'font-size:10.0pt'>Hi, = Jarod. W:<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.0pt'>=C2=A0=C2=A0=C2=A0 Yes, I just want to </span><span lang=3DEN-US>use c to invoke ovirt engine = RestAPI,<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>Just get vm=E2=80=99s id, host, = port, secur-port, and ticket,<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>=C2=A0=C2=A0=C2=A0 How can I use = libcurl to connect https, could give me<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>a simple demo to connect <a href=3D"https://%7bovirt-engine%7d/api">https://{ovirt-engine}/api</a> = with <o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US>--cafile, the ca.crt I get from = <a href=3D"http://%7bovirt-engine%7d/ca.crt">http://{ovirt-engine}/ca.crt</a=
<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt = 0cm 0cm 0cm'> <p class=3DMsoNormal><b><span = style=3D'font-size:10.0pt'>=E5=8F=91=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US style=3D'font-size:10.0pt'> Jarod. w = [mailto:work.iec23801@gmail.com] <br> </span><b><span = style=3D'font-size:10.0pt'>=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US style=3D'font-size:10.0pt'> 2013</span><span = style=3D'font-size:10.0pt'>=E5=B9=B4<span lang=3DEN-US>5</span>=E6=9C=88<span lang=3DEN-US>14</span>=E6=97=A5<span = lang=3DEN-US> 10:27<br> </span><b>=E6=94=B6=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></b><span lang=3DEN-US> leaboy@126<br> </span><b>=E6=8A=84=E9=80=81<span lang=3DEN-US>:</span></b><span = lang=3DEN-US> engine-devel@ovirt.org<br> </span><b>=E4=B8=BB=E9=A2=98<span lang=3DEN-US>:</span></b><span = lang=3DEN-US> Re: [Engine-devel] ovirt-engine-sdk with C<o:p></o:p></span></span></p> </div> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <div> <p class=3DMsoNormal><span lang=3DEN-US>2013/5/13 leaboy@126 <<a href=3D"mailto:wlbleaboy@126.com" = target=3D"_blank">wlbleaboy@126.com</a>><o:p></o:p></span></p> <div> <div> <blockquote style=3D'border:none;border-left:solid #CCCCCC = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-right:0cm'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>Hi</span>=EF=BC=8C<span = lang=3DEN-US>All<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> I felt oivrt-engine-sdk coded with Python is slowly to = connect<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>ovirt-engine and console vm when a user have many vms, So, = I just<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>want to rewrite the sdk with C(ANSI C Language). Just = rewrite a sdk<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>with C to connect overt-engine and console vm, would anyone = give <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>me some suggestion.<o:p></o:p></span></p> </div> </div> </blockquote> <div> <p class=3DMsoNormal><span lang=3DEN-US>Do you want to use c to invoke = ovirt engine RestAPI, right?<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span = lang=3DEN-US>If yes, you can use libcurl to do the thing, and it'll make you = happy.<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal><span lang=3DEN-US> <o:p></o:p></span></p> </div> <blockquote style=3D'border:none;border-left:solid #CCCCCC = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-right:0cm'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> Now, the = problem is how can I connect to ovit-engine with C, and<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>how can I get some information of vms, and how = ovirrt-engine can <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>respond my action(start,stop, .eg)<o:p></o:p></span></p> </div> </div> </blockquote> <p class=3DMsoNormal><span lang=3DEN-US>Agree with Michael = Pasternak.<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal><span lang=3DEN-US>You should parse your code into = the mail list, or someone can't help<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal><span lang=3DEN-US>you.<o:p></o:p></span></p> </div> <div> <div> <p class=3DMsoNormal><span lang=3DEN-US> <o:p></o:p></span></p> </div> <blockquote style=3D'border:none;border-left:solid #CCCCCC = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-right:0cm'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> = &= nbsp; &n= bsp; &nb= sp; &nbs= p;  = ; = Leaboy@beijing<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> = &= nbsp; &n= bsp; &nb= sp; &nbs= p; Thinks<o:p></o:p></span></p> </div> </div> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span = lang=3DEN-US><br> _______________________________________________<br> Engine-devel mailing list<br> <a href=3D"mailto:Engine-devel@ovirt.org">Engine-devel@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/listinfo/engine-devel" = target=3D"_blank">http://lists.ovirt.org/mailman/listinfo/engine-devel</a=
<o:p></o:p></span></p>
</blockquote> </div> <p class=3DMsoNormal><span lang=3DEN-US><br> <br clear=3Dall> <br> -- <br> ---<br> Best Regards<br> Jarod.W<o:p></o:p></span></p> </div> </div> </div> </body> </html> ------=_NextPart_000_000A_01CE613B.85F9D2F0--

2013/6/4 wlbleaboy@126 <wlbleaboy@126.com>
Hi, Jarod. W:****
Yes, I just want to use c to invoke ovirt engine RestAPI,****
Just get vm’s id, host, port, secur-port, and ticket,****
How can I use libcurl to connect https, could give me****
a simple demo to connect https://{ovirt-engine}/api with ****
--cafile, the ca.crt I get from http://{ovirt-engine}/ca.crt
Please download the demo from the above url: https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c
****
** **
** **
*发件人:* Jarod. w [mailto:work.iec23801@gmail.com] *发送时间:* 2013年5月14日 10:27 *收件人:* leaboy@126 *抄送:* engine-devel@ovirt.org *主题:* Re: [Engine-devel] ovirt-engine-sdk with C****
** **
2013/5/13 leaboy@126 <wlbleaboy@126.com>****
Hi,All****
I felt oivrt-engine-sdk coded with Python is slowly to connect*** *
ovirt-engine and console vm when a user have many vms, So, I just****
want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk****
with C to connect overt-engine and console vm, would anyone give ****
me some suggestion.****
Do you want to use c to invoke ovirt engine RestAPI, right?****
If yes, you can use libcurl to do the thing, and it'll make you happy.****
****
****
Now, the problem is how can I connect to ovit-engine with C, and* ***
how can I get some information of vms, and how ovirrt-engine can ****
respond my action(start,stop, .eg)****
Agree with Michael Pasternak.****
You should parse your code into the mail list, or someone can't help****
you.****
****
****
Leaboy@beijing****
Thinks*** *
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel****
-- --- Best Regards Jarod.W****
-- --- Best Regards Jarod.W

ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£ ------=_NextPart_000_006A_01CE61DC.73A22A70 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Jarod. W: I got your demo, and a build libcurl, but I can=E2=80=99t get = any info from https://{ovirt-engine }/api . my code like this: int main(void) { CURL *curl; CURLcode res; curl =3D curl_easy_init(); =20 if (curl) { printf("enter....\n"); curl_easy_setopt(curl, CURLOPT_URL, = "https://192.168.1.201/api"); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, callback_func); curl_easy_setopt(curl, CURLOPT_USERPWD, = "admin@internal:111111"); curl_easy_setopt(curl, CURLOPT_CAINFO,"/tmp/ca.crt"); curl_easy_perform(curl); printf("exit.....\n"); =20 curl_easy_cleanup(curl); } =20 return 0; } =20 And when I run it, just outpu : enter.... exit..... =20 I got the libcurl from http://curl.haxx.se/download.html = <http://curl.haxx.se/download.html%20and%20chosed%20curl-7.30.0.tar.gz> = and chosed curl-7.30.0.tar.gz and I use make and make install without any other options . I just guess = maybe it need other SSL library supported, but I don=E2=80=99t know how and which . =20 =E5=8F=91=E4=BB=B6=E4=BA=BA: Jarod. w [mailto:work.iec23801@gmail.com]=20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2013=E5=B9=B46=E6=9C=884=E6=97=A5 = 18:14 =E6=94=B6=E4=BB=B6=E4=BA=BA: wlbleaboy@126 =E6=8A=84=E9=80=81: engine-devel@ovirt.org =E4=B8=BB=E9=A2=98: Re: =E7=AD=94=E5=A4=8D: [Engine-devel] = ovirt-engine-sdk with C =20 2013/6/4 wlbleaboy@126 <wlbleaboy@126.com> Hi, Jarod. W: Yes, I just want to use c to invoke ovirt engine RestAPI, Just get vm=E2=80=99s id, host, port, secur-port, and ticket, How can I use libcurl to connect https, could give me a simple demo to connect https://{ovirt-engine}/api = <https://%7bovirt-engine%7d/api> with=20 --cafile, the ca.crt I get from http://{ovirt-engine}/ca.crt = <http://%7bovirt-engine%7d/ca.crt>=20 Please download the demo from the above url: https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c =20 =20 =20 =E5=8F=91=E4=BB=B6=E4=BA=BA: Jarod. w [mailto:work.iec23801@gmail.com]=20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2013=E5=B9=B45=E6=9C=8814=E6=97=A5 = 10:27 =E6=94=B6=E4=BB=B6=E4=BA=BA: leaboy@126 =E6=8A=84=E9=80=81: engine-devel@ovirt.org =E4=B8=BB=E9=A2=98: Re: [Engine-devel] ovirt-engine-sdk with C =20 2013/5/13 leaboy@126 <wlbleaboy@126.com> Hi=EF=BC=8CAll I felt oivrt-engine-sdk coded with Python is slowly to connect ovirt-engine and console vm when a user have many vms, So, I just want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk with C to connect overt-engine and console vm, would anyone give=20 me some suggestion. Do you want to use c to invoke ovirt engine RestAPI, right? If yes, you can use libcurl to do the thing, and it'll make you happy. =20 =20 Now, the problem is how can I connect to ovit-engine with C, = and how can I get some information of vms, and how ovirrt-engine can=20 respond my action(start,stop, .eg) Agree with Michael Pasternak. You should parse your code into the mail list, or someone can't help you. =20 =20 = Leaboy@beijing Thinks _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel --=20 --- Best Regards Jarod.W --=20 --- Best Regards Jarod.W ------=_NextPart_000_006A_01CE61DC.73A22A70 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:=E5=AE=8B=E4=BD=93; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"\@=E5=AE=8B=E4=BD=93"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:=E5=AE=8B=E4=BD=93;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DZH-CN link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>Hi, Jarod. W:<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 I got = your demo, and a build libcurl, but I can=E2=80=99t get any info<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>from https://{ovirt-engine }/api .<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>my code like this:<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>int main(void)<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>{<o:p></o:p=
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0 CURL *curl;<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0 CURLcode res;<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0 curl =3D curl_easy_init();<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> = </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0 if (curl)<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0 {<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 printf("enter....\n");<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 curl_easy_setopt(curl, CURLOPT_URL, = "<b>https://192.168.1.201/api</b>");<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, = callback_func);<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 curl_easy_setopt(curl, CURLOPT_USERPWD, = "<b>admin@internal:111111</b>");<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 curl_easy_setopt(curl, = CURLOPT_CAINFO,"<b>/tmp/ca.crt</b>");<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 curl_easy_perform(curl);<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 printf("exit.....\n");<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> = </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 curl_easy_cleanup(curl);<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0 }<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> = </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0= =C2=A0 return 0;<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>}<o:p></o:p=
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> = </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>And when I run it, just outpu :<o:p></o:p></span></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif"'>enter....<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif"'>exit.....<o:p></o:p></span></b></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> = </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>I got the libcurl from <a href=3D"http://curl.haxx.se/download.html%20and%20chosed%20curl-7.30.0.ta= r.gz">http://curl.haxx.se/download.html and chosed curl-7.30.0.tar.gz</a><o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>and I use make and make install without any other options . I just guess = maybe it need<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>other SSL library supported, but I don=E2=80=99t know how and which = .<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt = 0cm 0cm 0cm'> <p class=3DMsoNormal><b><span = style=3D'font-size:10.0pt'>=E5=8F=91=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US style=3D'font-size:10.0pt'> Jarod. w = [mailto:work.iec23801@gmail.com] <br> </span><b><span = style=3D'font-size:10.0pt'>=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US style=3D'font-size:10.0pt'> 2013</span><span = style=3D'font-size:10.0pt'>=E5=B9=B4<span lang=3DEN-US>6</span>=E6=9C=88<span lang=3DEN-US>4</span>=E6=97=A5<span = lang=3DEN-US> 18:14<br> </span><b>=E6=94=B6=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></b><span lang=3DEN-US> wlbleaboy@126<br> </span><b>=E6=8A=84=E9=80=81<span lang=3DEN-US>:</span></b><span = lang=3DEN-US> engine-devel@ovirt.org<br> </span><b>=E4=B8=BB=E9=A2=98<span lang=3DEN-US>:</span></b><span = lang=3DEN-US> Re: </span>=E7=AD=94=E5=A4=8D<span lang=3DEN-US>: [Engine-devel] ovirt-engine-sdk with = C<o:p></o:p></span></span></p> </div> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <div> <p class=3DMsoNormal><span lang=3DEN-US>2013/6/4 wlbleaboy@126 <<a href=3D"mailto:wlbleaboy@126.com" = target=3D"_blank">wlbleaboy@126.com</a>><o:p></o:p></span></p> <div> <div> <blockquote style=3D'border:none;border-left:solid #CCCCCC = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-right:0cm'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US style=3D'font-size:10.0pt'>Hi, Jarod. W:</span><span = lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US style=3D'font-size:10.0pt'> Yes, I just = want to </span><span lang=3DEN-US>use c to invoke ovirt engine RestAPI,<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>Just get vm</span>=E2=80=99<span lang=3DEN-US>s id, host, = port, secur-port, and ticket,<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> How can I use libcurl to connect https, = could give me<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>a simple demo to connect <a = href=3D"https://%7bovirt-engine%7d/api" target=3D"_blank">https://{ovirt-engine}/api</a> with = <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>--cafile, the ca.crt I get from <a href=3D"http://%7bovirt-engine%7d/ca.crt" = target=3D"_blank">http://{ovirt-engine}/ca.crt</a><o:p></o:p></span></p> </div> </div> </blockquote> <div> <p class=3DMsoNormal><span lang=3DEN-US>Please download the demo from = the above url:<br> <a = href=3D"https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c= ">https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c</a><b= r> <o:p></o:p></span></p> </div> <blockquote style=3D'border:none;border-left:solid #CCCCCC = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-right:0cm'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'> </span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'> </span><span lang=3DEN-US><o:p></o:p></span></p> <div style=3D'border:none;border-top:solid windowtext = 1.0pt;padding:3.0pt 0cm 0cm 0cm; border-color:-moz-use-text-color -moz-use-text-color'> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style=3D'font-size:10.0pt'>=E5=8F=91=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US style=3D'font-size:10.0pt'> Jarod. w [mailto:<a href=3D"mailto:work.iec23801@gmail.com" = target=3D"_blank">work.iec23801@gmail.com</a>] <br> </span><b><span = style=3D'font-size:10.0pt'>=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US style=3D'font-size:10.0pt'> 2013</span><span = style=3D'font-size:10.0pt'>=E5=B9=B4<span lang=3DEN-US>5</span>=E6=9C=88<span lang=3DEN-US>14</span>=E6=97=A5<span = lang=3DEN-US> 10:27<br> </span><b>=E6=94=B6=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></b><span lang=3DEN-US> leaboy@126<br> </span><b>=E6=8A=84=E9=80=81<span lang=3DEN-US>:</span></b><span = lang=3DEN-US> <a href=3D"mailto:engine-devel@ovirt.org" = target=3D"_blank">engine-devel@ovirt.org</a><br> </span><b>=E4=B8=BB=E9=A2=98<span lang=3DEN-US>:</span></b><span = lang=3DEN-US> Re: [Engine-devel] ovirt-engine-sdk with C</span></span><span = lang=3DEN-US><o:p></o:p></span></p> </div> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>2013/5/13 leaboy@126 <<a = href=3D"mailto:wlbleaboy@126.com" target=3D"_blank">wlbleaboy@126.com</a>><o:p></o:p></span></p> <div> <div> <blockquote style=3D'border:none;border-left:solid windowtext = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt; border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color = rgb(204,204,204)'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>Hi</span>=EF=BC=8C<span = lang=3DEN-US>All<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> I felt oivrt-engine-sdk coded with Python is slowly to = connect<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>ovirt-engine and console vm when a user have many vms, So, = I just<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>want to rewrite the sdk with C(ANSI C Language). Just = rewrite a sdk<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>with C to connect overt-engine and console vm, would anyone = give <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>me some suggestion.<o:p></o:p></span></p> </div> </div> </blockquote> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>Do you want to use c to invoke ovirt engine RestAPI, = right?<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'><span lang=3DEN-US>If yes, you can use libcurl to do the thing, and it'll make = you happy.<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> </div> <blockquote style=3D'border:none;border-left:solid windowtext = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt; border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color = rgb(204,204,204)'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> Now, the = problem is how can I connect to ovit-engine with C, and<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>how can I get some information of vms, and how = ovirrt-engine can <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>respond my action(start,stop, .eg)<o:p></o:p></span></p> </div> </div> </blockquote> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>Agree with Michael Pasternak.<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>You should parse your code into the mail list, or someone = can't help<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>you.<o:p></o:p></span></p> </div> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> </div> <blockquote style=3D'border:none;border-left:solid windowtext = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt; border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color = rgb(204,204,204)'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> = &= nbsp; &n= bsp; &nb= sp; &nbs= p;  = ; = Leaboy@beijing<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> = &= nbsp; &n= bsp; &nb= sp; &nbs= p; Thinks<o:p></o:p></span></p> </div> </div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'><span lang=3DEN-US><br> _______________________________________________<br> Engine-devel mailing list<br> <a href=3D"mailto:Engine-devel@ovirt.org" = target=3D"_blank">Engine-devel@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/listinfo/engine-devel" = target=3D"_blank">http://lists.ovirt.org/mailman/listinfo/engine-devel</a=
<o:p></o:p></span></p>
</blockquote> </div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US><br> <br clear=3Dall> <br> -- <br> ---<br> Best Regards<br> Jarod.W<o:p></o:p></span></p> </div> </div> </div> </div> </div> </div> </blockquote> </div> <p class=3DMsoNormal><span lang=3DEN-US><br> <br clear=3Dall> <br> -- <br> ---<br> Best Regards<br> Jarod.W<o:p></o:p></span></p> </div> </div> </div> </body> </html> ------=_NextPart_000_006A_01CE61DC.73A22A70--

2013/6/5 wlbleaboy@126 <wlbleaboy@126.com>
Hi, Jarod. W:****
I got your demo, and a build libcurl, but I can’t get any info*** *
from https://{ovirt-engine }/api .****
my code like this:
Please try to run the below command: -- curl https://YOURIP/api -u YOURNAME:YOURPASSWD --cacert /root/ca.crt -- After, please parse the result. ps, I run the program on centos 6.4, and it works. thanks.
****
int main(void)****
{****
CURL *curl;****
CURLcode res;****
curl = curl_easy_init();****
** **
if (curl)****
{****
printf("enter....\n");****
curl_easy_setopt(curl, CURLOPT_URL, "*https://192.168.1.201/api* ");****
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, callback_func);****
curl_easy_setopt(curl, CURLOPT_USERPWD, "*admin@internal:111111* ");****
curl_easy_setopt(curl, CURLOPT_CAINFO,"*/tmp/ca.crt*");****
curl_easy_perform(curl);****
printf("exit.....\n");****
** **
curl_easy_cleanup(curl);****
}****
** **
return 0;****
}****
** **
And when I run it, just outpu :****
*enter....*
*exit.....*
** **
I got the libcurl from http://curl.haxx.se/download.html and chosed curl-7.30.0.tar.gz<http://curl.haxx.se/download.html%20and%20chosed%20curl-7.30.0.tar.gz> ****
and I use make and make install without any other options . I just guess maybe it need****
other SSL library supported, but I don’t know how and which .****
** **
*发件人:* Jarod. w [mailto:work.iec23801@gmail.com] *发送时间:* 2013年6月4日 18:14 *收件人:* wlbleaboy@126 *抄送:* engine-devel@ovirt.org *主题:* Re: 答复: [Engine-devel] ovirt-engine-sdk with C****
** **
2013/6/4 wlbleaboy@126 <wlbleaboy@126.com>****
Hi, Jarod. W:****
Yes, I just want to use c to invoke ovirt engine RestAPI,****
Just get vm’s id, host, port, secur-port, and ticket,****
How can I use libcurl to connect https, could give me****
a simple demo to connect https://{ovirt-engine}/api with ****
--cafile, the ca.crt I get from http://{ovirt-engine}/ca.crt****
Please download the demo from the above url: https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c ****
****
****
*发件人:* Jarod. w [mailto:work.iec23801@gmail.com] *发送时间:* 2013年5月14日 10:27 *收件人:* leaboy@126 *抄送:* engine-devel@ovirt.org *主题:* Re: [Engine-devel] ovirt-engine-sdk with C****
****
2013/5/13 leaboy@126 <wlbleaboy@126.com>****
Hi,All****
I felt oivrt-engine-sdk coded with Python is slowly to connect*** *
ovirt-engine and console vm when a user have many vms, So, I just****
want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk****
with C to connect overt-engine and console vm, would anyone give ****
me some suggestion.****
Do you want to use c to invoke ovirt engine RestAPI, right?****
If yes, you can use libcurl to do the thing, and it'll make you happy.****
****
****
Now, the problem is how can I connect to ovit-engine with C, and* ***
how can I get some information of vms, and how ovirrt-engine can ****
respond my action(start,stop, .eg)****
Agree with Michael Pasternak.****
You should parse your code into the mail list, or someone can't help****
you.****
****
****
Leaboy@beijing****
Thinks*** *
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel****
-- --- Best Regards Jarod.W****
-- --- Best Regards Jarod.W****
-- --- Best Regards Jarod.W

ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£ ------=_NextPart_000_0091_01CE63A7.20682EF0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Jarod.W: Thanks for your demo, but I think you miss two fucntinos like = this: =20 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); =20 the following new demo code on my ubuntu is work well: #include <stdio.h> #include <curl/curl.h> =20 int main(void) { CURL *curl; CURLcode res; =20 curl_global_init(CURL_GLOBAL_DEFAULT); =20 curl =3D curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, = "https://192.168.1.201/api/"); curl_easy_setopt(curl, CURLOPT_USERPWD, = "admin@internal:111111"); curl_easy_setopt(curl, CURLOPT_CAINFO,"/tmp/ca.crt"); =20 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); =20 res =3D curl_easy_perform(curl); =20 if(res !=3D CURLE_OK) fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res)); =20 curl_easy_cleanup(curl); } =20 curl_global_cleanup(); =20 return 0; } =20 when I add this two functions , it works well for admin@internal but can=E2=80=99t work for user portal, I check the information sent by=20 admin@internal and user portal, the only difference is Filter, admin@internal is Filter:False, the user portal is Filter:True. =20 How can I use curl_easy_setopt to set Filter . =20 Thanks Leaboy =20 From: Jarod. w [mailto:work.iec23801@gmail.com]=20 Sent: Wednesday, June 05, 2013 11:35 AM To: wlbleaboy@126 Cc: engine-devel@ovirt.org Subject: Re: Re: [Engine-devel] ovirt-engine-sdk with C =20 2013/6/5 wlbleaboy@126 <wlbleaboy@126.com> Hi, Jarod. W: I got your demo, and a build libcurl, but I can=E2=80=99t get = any info from https://{ovirt-engine }/api . my code like this: Please try to run the below command: -- curl https://YOURIP/api -u YOURNAME:YOURPASSWD --cacert /root/ca.crt -- After, please parse the result. ps, I run the program on centos 6.4, and it works. thanks. =20 int main(void) { CURL *curl; CURLcode res; curl =3D curl_easy_init(); =20 if (curl) { printf("enter....\n"); curl_easy_setopt(curl, CURLOPT_URL, = "https://192.168.1.201/api"); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, callback_func); curl_easy_setopt(curl, CURLOPT_USERPWD, = "admin@internal:111111"); curl_easy_setopt(curl, CURLOPT_CAINFO,"/tmp/ca.crt"); curl_easy_perform(curl); printf("exit.....\n"); =20 curl_easy_cleanup(curl); } =20 return 0; } =20 And when I run it, just outpu : enter.... exit..... =20 I got the libcurl from http://curl.haxx.se/download.html and chosed = curl-7.30.0.tar.gz = <http://curl.haxx.se/download.html%20and%20chosed%20curl-7.30.0.tar.gz>=20 and I use make and make install without any other options . I just guess = maybe it need other SSL library supported, but I don=E2=80=99t know how and which . =20 =E5=8F=91=E4=BB=B6=E4=BA=BA: Jarod. w [mailto:work.iec23801@gmail.com]=20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2013=E5=B9=B46=E6=9C=884=E6=97=A5 = 18:14 =E6=94=B6=E4=BB=B6=E4=BA=BA: wlbleaboy@126 =E6=8A=84=E9=80=81: engine-devel@ovirt.org =E4=B8=BB=E9=A2=98: Re: =E7=AD=94=E5=A4=8D: [Engine-devel] = ovirt-engine-sdk with C =20 2013/6/4 wlbleaboy@126 <wlbleaboy@126.com> Hi, Jarod. W: Yes, I just want to use c to invoke ovirt engine RestAPI, Just get vm=E2=80=99s id, host, port, secur-port, and ticket, How can I use libcurl to connect https, could give me a simple demo to connect https://{ovirt-engine}/api = <https://%7bovirt-engine%7d/api> with=20 --cafile, the ca.crt I get from http://{ovirt-engine}/ca.crt = <http://%7bovirt-engine%7d/ca.crt>=20 Please download the demo from the above url: https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c =20 =20 =20 =E5=8F=91=E4=BB=B6=E4=BA=BA: Jarod. w [mailto:work.iec23801@gmail.com]=20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2013=E5=B9=B45=E6=9C=8814=E6=97=A5 = 10:27 =E6=94=B6=E4=BB=B6=E4=BA=BA: leaboy@126 =E6=8A=84=E9=80=81: engine-devel@ovirt.org =E4=B8=BB=E9=A2=98: Re: [Engine-devel] ovirt-engine-sdk with C =20 2013/5/13 leaboy@126 <wlbleaboy@126.com> Hi=EF=BC=8CAll I felt oivrt-engine-sdk coded with Python is slowly to connect ovirt-engine and console vm when a user have many vms, So, I just want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk with C to connect overt-engine and console vm, would anyone give=20 me some suggestion. Do you want to use c to invoke ovirt engine RestAPI, right? If yes, you can use libcurl to do the thing, and it'll make you happy. =20 =20 Now, the problem is how can I connect to ovit-engine with C, = and how can I get some information of vms, and how ovirrt-engine can=20 respond my action(start,stop, .eg) Agree with Michael Pasternak. You should parse your code into the mail list, or someone can't help you. =20 =20 = Leaboy@beijing Thinks _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel --=20 --- Best Regards Jarod.W --=20 --- Best Regards Jarod.W --=20 --- Best Regards Jarod.W ------=_NextPart_000_0091_01CE63A7.20682EF0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:=E5=AE=8B=E4=BD=93; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"\@=E5=AE=8B=E4=BD=93"; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:=E5=AE=8B=E4=BD=93;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p {mso-style-priority:99; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; font-size:12.0pt; font-family:=E5=AE=8B=E4=BD=93;} span.EmailStyle18 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DZH-CN link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>Hi, Jarod.W:<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Thanks = for your demo, but I think you miss two fucntinos like this:<o:p></o:p></span></p> <p class=3DMsoNormal style=3D'text-indent:21.0pt'><span lang=3DEN-US style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497= D'><o:p> </o:p></span></p> <p class=3DMsoNormal style=3D'text-indent:21.0pt'><b><span lang=3DEN-US style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497= D'>curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0=C2=A0 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);</span></b><span lang=3DEN-US = style=3D'font-size:10.5pt; font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>the following new demo code on my ubuntu is work = well:<o:p></o:p></span></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>#include = <stdio.h><o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>#include = <curl/curl.h><o:p></o:p></span></b></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>int = main(void)<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>{<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 CURL = *curl;<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 CURLcode = res;<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 curl_global_init(CURL_GLOBAL_DEFAULT);<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 curl =3D = curl_easy_init();<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 = if(curl)<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 = {<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 curl_easy_setopt(curl, CURLOPT_URL, = "https://192.168.1.201/api/");<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 curl_easy_setopt(curl, CURLOPT_USERPWD, = "admin@internal:111111");<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 curl_easy_setopt(curl, CURLOPT_CAINFO,"/tmp/ca.crt");<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 res =3D curl_easy_perform(curl);<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 if(res !=3D CURLE_OK)<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fprintf(stderr, "curl_easy_perform() failed: %s\n",<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 curl_easy_strerror(res));<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 curl_easy_cleanup(curl);<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 = }<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 = curl_global_cleanup();<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>=C2=A0=C2=A0=C2=A0 return = 0;<o:p></o:p></span></b></p> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family: "Calibri","sans-serif";color:#1F497D'>}<o:p></o:p></span></b></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>when I add this two functions , it works well for = admin@internal<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>but can=E2=80=99t work for user portal, I check the = information sent by <o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>admin@internal and user portal, the only difference is = Filter,<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>admin@internal is Filter:False, the user portal is = Filter:True.<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>How can I use curl_easy_setopt to set Filter = .<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 Thanks<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = Leaboy<o:p></o:p></span></p> <p class=3DMsoNormal><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt = 0cm 0cm 0cm'> <p class=3DMsoNormal><b><span lang=3DEN-US = style=3D'font-size:10.0pt;font-family: "Tahoma","sans-serif"'>From:</span></b><span lang=3DEN-US = style=3D'font-size:10.0pt; font-family:"Tahoma","sans-serif"'> Jarod. w = [mailto:work.iec23801@gmail.com] <br> <b>Sent:</b> Wednesday, June 05, 2013 11:35 AM<br> <b>To:</b> wlbleaboy@126<br> <b>Cc:</b> engine-devel@ovirt.org<br> <b>Subject:</b> Re: Re: [Engine-devel] ovirt-engine-sdk with = C<o:p></o:p></span></p> </div> <p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p> <div> <p class=3DMsoNormal><span lang=3DEN-US>2013/6/5 wlbleaboy@126 <<a href=3D"mailto:wlbleaboy@126.com" = target=3D"_blank">wlbleaboy@126.com</a>><o:p></o:p></span></p> <div> <div> <blockquote style=3D'border:none;border-left:solid #CCCCCC = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-right:0cm'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>Hi, Jarod. W:</span><span = lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'> I got = your demo, and a build libcurl, but I can=E2=80=99t get any info</span><span = lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>from https://{ovirt-engine }/api .</span><span = lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'>my code like this:</span><span = lang=3DEN-US><o:p></o:p></span></p> </div> </div> </blockquote> <div> <p class=3DMsoNormal><span lang=3DEN-US>Please try to run the below = command:<br> --<br> curl <a href=3D"https://YOURIP/api">https://YOURIP/api</a> -u = YOURNAME:YOURPASSWD --cacert /root/ca.crt<br> --<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span = lang=3DEN-US>After, please parse the result.<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><span = lang=3DEN-US>ps, I run the program on centos 6.4, and it works.<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal><span lang=3DEN-US>thanks.<br> <o:p></o:p></span></p> </div> <blockquote style=3D'border:none;border-left:solid #CCCCCC = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-right:0cm'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>int main(void)</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>{</span><sp= an lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; CURL *curl;</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; CURLcode res;</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; curl =3D curl_easy_init();</span><span = lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'> </spa= n><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; if (curl)</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; {</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; printf("enter....\n");</span><span = lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; curl_easy_setopt(curl, CURLOPT_URL, "<b><a = href=3D"https://192.168.1.201/api" target=3D"_blank">https://192.168.1.201/api</a></b>");</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, = callback_func);</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; curl_easy_setopt(curl, CURLOPT_USERPWD, = "<b>admin@internal:111111</b>");</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; curl_easy_setopt(curl, = CURLOPT_CAINFO,"<b>/tmp/ca.crt</b>");</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; curl_easy_perform(curl);</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; printf("exit.....\n");</span><span = lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'> </spa= n><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; curl_easy_cleanup(curl);</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; }</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'> </spa= n><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>  = ; return 0;</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>}</span><sp= an lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'> </spa= n><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>And when I run it, just outpu :</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>enter....</= span></b><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>exit.....</= span></b><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'> </spa= n><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>I got the libcurl from <a href=3D"http://curl.haxx.se/download.html%20and%20chosed%20curl-7.30.0.ta= r.gz" target=3D"_blank">http://curl.haxx.se/download.html and chosed = curl-7.30.0.tar.gz</a></span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>and I use make and make install without any other options . I just guess maybe = it need</span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>other SSL library supported, but I don=E2=80=99t know how and which .</span><span = lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'> </span><span lang=3DEN-US><o:p></o:p></span></p> <div style=3D'border:none;border-top:solid windowtext = 1.0pt;padding:3.0pt 0cm 0cm 0cm; border-color:-moz-use-text-color -moz-use-text-color'> <div> <p class=3DMsoNormal><b><span = style=3D'font-size:10.0pt'>=E5=8F=91=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US style=3D'font-size:10.0pt'> Jarod. w [mailto:<a href=3D"mailto:work.iec23801@gmail.com" = target=3D"_blank">work.iec23801@gmail.com</a>] </span><span lang=3DEN-US><o:p></o:p></span></p> </div> <p class=3DMsoNormal><b><span = style=3D'font-size:10.0pt'>=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US style=3D'font-size:10.0pt'> 2013</span><span = style=3D'font-size:10.0pt'>=E5=B9=B4<span lang=3DEN-US>6</span>=E6=9C=88<span lang=3DEN-US>4</span>=E6=97=A5<span = lang=3DEN-US> 18:14<br> </span><b>=E6=94=B6=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></b><span lang=3DEN-US> wlbleaboy@126<br> </span><b>=E6=8A=84=E9=80=81<span lang=3DEN-US>:</span></b><span = lang=3DEN-US> <a href=3D"mailto:engine-devel@ovirt.org" = target=3D"_blank">engine-devel@ovirt.org</a><br> </span><b>=E4=B8=BB=E9=A2=98<span lang=3DEN-US>:</span></b><span = lang=3DEN-US> Re: </span>=E7=AD=94=E5=A4=8D<span lang=3DEN-US>: [Engine-devel] ovirt-engine-sdk with C</span></span><span lang=3DEN-US><o:p></o:p></span></p> </div> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>2013/6/4 wlbleaboy@126 <<a = href=3D"mailto:wlbleaboy@126.com" target=3D"_blank">wlbleaboy@126.com</a>><o:p></o:p></span></p> <div> <div> <blockquote style=3D'border:none;border-left:solid windowtext = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt; border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color = rgb(204,204,204)'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US style=3D'font-size:10.0pt'>Hi, Jarod. W:</span><span = lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US style=3D'font-size:10.0pt'> Yes, I just = want to </span><span lang=3DEN-US>use c to invoke ovirt engine RestAPI,<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>Just get vm</span>=E2=80=99<span lang=3DEN-US>s id, host, = port, secur-port, and ticket,<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> How can I use libcurl to connect https, = could give me<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>a simple demo to connect <a = href=3D"https://%7bovirt-engine%7d/api" target=3D"_blank">https://{ovirt-engine}/api</a> with = <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>--cafile, the ca.crt I get from <a href=3D"http://%7bovirt-engine%7d/ca.crt" = target=3D"_blank">http://{ovirt-engine}/ca.crt</a><o:p></o:p></span></p> </div> </div> </blockquote> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>Please download the demo from the above url:<br> <a = href=3D"https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c= " target=3D"_blank">https://github.com/jarod-w/hglibraries/blob/master/demo= /restapi.c</a><br> <o:p></o:p></span></p> </div> <blockquote style=3D'border:none;border-left:solid windowtext = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt; border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color = rgb(204,204,204)'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'> </span><span lang=3DEN-US><o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US = style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"; color:#1F497D'> </span><span lang=3DEN-US><o:p></o:p></span></p> <div style=3D'border:none;border-top:solid windowtext = 1.0pt;padding:3.0pt 0cm 0cm 0cm; border-color:-moz-use-text-color'> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style=3D'font-size:10.0pt'>=E5=8F=91=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US style=3D'font-size:10.0pt'> Jarod. w [mailto:<a href=3D"mailto:work.iec23801@gmail.com" = target=3D"_blank">work.iec23801@gmail.com</a>] <br> </span><b><span = style=3D'font-size:10.0pt'>=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4<span = lang=3DEN-US>:</span></span></b><span lang=3DEN-US style=3D'font-size:10.0pt'> 2013</span><span = style=3D'font-size:10.0pt'>=E5=B9=B4<span lang=3DEN-US>5</span>=E6=9C=88<span lang=3DEN-US>14</span>=E6=97=A5<span = lang=3DEN-US> 10:27<br> </span><b>=E6=94=B6=E4=BB=B6=E4=BA=BA<span = lang=3DEN-US>:</span></b><span lang=3DEN-US> leaboy@126<br> </span><b>=E6=8A=84=E9=80=81<span lang=3DEN-US>:</span></b><span = lang=3DEN-US> <a href=3D"mailto:engine-devel@ovirt.org" = target=3D"_blank">engine-devel@ovirt.org</a><br> </span><b>=E4=B8=BB=E9=A2=98<span lang=3DEN-US>:</span></b><span = lang=3DEN-US> Re: [Engine-devel] ovirt-engine-sdk with C</span></span><span = lang=3DEN-US><o:p></o:p></span></p> </div> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>2013/5/13 leaboy@126 <<a = href=3D"mailto:wlbleaboy@126.com" target=3D"_blank">wlbleaboy@126.com</a>><o:p></o:p></span></p> <div> <div> <blockquote style=3D'border:none;border-left:solid windowtext = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt; border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color = rgb(204,204,204)'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>Hi</span>=EF=BC=8C<span = lang=3DEN-US>All<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> I felt = oivrt-engine-sdk coded with Python is slowly to connect<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>ovirt-engine and console vm when a user have many vms, So, = I just<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>want to rewrite the sdk with C(ANSI C Language). Just = rewrite a sdk<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>with C to connect overt-engine and console vm, would anyone = give <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>me some suggestion.<o:p></o:p></span></p> </div> </div> </blockquote> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>Do you want to use c to invoke ovirt engine RestAPI, = right?<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'><span lang=3DEN-US>If yes, you can use libcurl to do the thing, and it'll make = you happy.<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> </div> <blockquote style=3D'border:none;border-left:solid windowtext = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt; border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color = rgb(204,204,204)'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> Now, the = problem is how can I connect to ovit-engine with C, and<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>how can I get some information of vms, and how = ovirrt-engine can <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>respond my action(start,stop, .eg)<o:p></o:p></span></p> </div> </div> </blockquote> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>Agree with Michael Pasternak.<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>You should parse your code into the mail list, or someone = can't help<o:p></o:p></span></p> </div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US>you.<o:p></o:p></span></p> </div> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> </div> <blockquote style=3D'border:none;border-left:solid windowtext = 1.0pt;padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt; border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color = rgb(204,204,204)'> <div> <div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> <o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> = &= nbsp; &n= bsp; &nb= sp; &nbs= p;  = ; = Leaboy@beijing<o:p></o:p></span></p> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US> = &= nbsp; &n= bsp; &nb= sp; &nbs= p; Thinks<o:p></o:p></span></p> </div> </div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'><span lang=3DEN-US><br> _______________________________________________<br> Engine-devel mailing list<br> <a href=3D"mailto:Engine-devel@ovirt.org" = target=3D"_blank">Engine-devel@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/listinfo/engine-devel" = target=3D"_blank">http://lists.ovirt.org/mailman/listinfo/engine-devel</a=
<o:p></o:p></span></p>
</blockquote> </div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US><br> <br clear=3Dall> <br> -- <br> ---<br> Best Regards<br> Jarod.W<o:p></o:p></span></p> </div> </div> </div> </div> </div> </div> </blockquote> </div> <p class=3DMsoNormal = style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=3DEN-US><br> <br clear=3Dall> <br> -- <br> ---<br> Best Regards<br> Jarod.W<o:p></o:p></span></p> </div> </div> </div> </div> </div> </div> </blockquote> </div> <p class=3DMsoNormal><span lang=3DEN-US><br> <br clear=3Dall> <br> -- <br> ---<br> Best Regards<br> Jarod.W<o:p></o:p></span></p> </div> </div> </div> </body> </html> ------=_NextPart_000_0091_01CE63A7.20682EF0--

--=-cIJwSm9GH+OtNahqNeha Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I'm not sure if it is applicable to your case, but there is incomplete C/GObject implementation of oVirt SDK available here: http://cgit.freedesktop.org/~teuf/govirt/ As far as I know, it's currently focused just on getting connection details for VMs but I guess that more complete support for whole oVirt API is just a matter of development... David leaboy@126 p=C3=AD=C5=A1e v Po 13. 05. 2013 v 18:17 +0800:
Hi=EF=BC=8CAll =20 I felt oivrt-engine-sdk coded with Python is slowly to connect =20 ovirt-engine and console vm when a user have many vms, So, I just =20 want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk =20 with C to connect overt-engine and console vm, would anyone give=20 =20 me some suggestion. =20 =20 =20 Now, the problem is how can I connect to ovit-engine with C, and =20 how can I get some information of vms, and how ovirrt-engine can=20 =20 respond my action(start,stop, .eg) =20 =20 =20 =20 Leaboy@beijing =20 Thinks =20 _______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
--=20 David Ja=C5=A1a, RHCE SPICE QE based in Brno GPG Key: 22C33E24=20 Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24 --=-cIJwSm9GH+OtNahqNeha Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIISsjCCBjQw ggQcoAMCAQICAR4wDQYJKoZIhvcNAQEFBQAwfTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0 Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxKTAn BgNVBAMTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9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m1lZGlhdGUgQ2xpZW50IENBAgMGXWMwCQYFKw4DAhoFAKCCAa8w GAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTMwNjA0MDgyMTMwWjAj BgkqhkiG9w0BCQQxFgQUuL+GsN7vOVNgXe+YRXzeVinndh4wgaUGCSsGAQQBgjcQBDGBlzCBlDCB jDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBE aWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcxODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJp bWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENBAgMGXWMwgacGCyqGSIb3DQEJEAILMYGXoIGUMIGM MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERp Z2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzE4MDYGA1UEAxMvU3RhcnRDb20gQ2xhc3MgMSBQcmlt YXJ5IEludGVybWVkaWF0ZSBDbGllbnQgQ0ECAwZdYzANBgkqhkiG9w0BAQEFAASCAQC9cv3BMfSj NCZJcowCBxgxEtgZitdZyTOsQoYn1PbWFPwA9TcxJzSBxKo310Dl30O6VZvN2x0i0fN/USkNIeFX UP4BVBZc8EBB/3kxwofHlWLYlAi89+X7iNA1dn0+q1nmM0Nxc78bvIH0rTVkmK2UUpD0bWsyCnlY Uo4f9arx3TDrToJhJFUnkgM1cuKcCP2SelUNAVjWVBJX5yevguBcRnmnYxZzs0rycN5IywDnW0Le /2SadEgwVM2Bv5upmmHcgl0jnvTOzJP4ZRkoEJExihvi2x7xGKtsLkMwTLIVWr4U8tDLGJTxzz4U OxRaXhZvk5/6zaqmK8yN9kLvG5QWAAAAAAAA --=-cIJwSm9GH+OtNahqNeha--

Hi Jarod.w : Thanks very much, I'll try the codes. And another thing about ovirt documents, I got a PDF doc from http://www.ovirt.org/File:OVirt-API-CLI-SDK-20111102.pdf , I want to know is there any other documents about ovirt-engine VMSM ovirt-node in website like http://www.ovirt.org/File*** , sometimes , there con't fint a link from ovirt.org webpage. -----邮件原件----- 发件人: David Jaša [mailto:djasa@redhat.com] 发送时间: 2013年6月4日 16:22 收件人: leaboy@126 抄送: engine-devel@ovirt.org 主题: Re: [Engine-devel] ovirt-engine-sdk with C Hi, I'm not sure if it is applicable to your case, but there is incomplete C/GObject implementation of oVirt SDK available here: http://cgit.freedesktop.org/~teuf/govirt/ As far as I know, it's currently focused just on getting connection details for VMs but I guess that more complete support for whole oVirt API is just a matter of development... David leaboy@126 píše v Po 13. 05. 2013 v 18:17 +0800:
Hi,All
I felt oivrt-engine-sdk coded with Python is slowly to connect
ovirt-engine and console vm when a user have many vms, So, I just
want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk
with C to connect overt-engine and console vm, would anyone give
me some suggestion.
Now, the problem is how can I connect to ovit-engine with C, and
how can I get some information of vms, and how ovirrt-engine can
respond my action(start,stop, .eg)
Leaboy@beijing
Thinks
_______________________________________________ Engine-devel mailing list Engine-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-devel
-- David Jaša, RHCE SPICE QE based in Brno GPG Key: 22C33E24 Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24
participants (5)
-
David Jaša
-
Jarod. w
-
leaboy@126
-
Michael Pasternak
-
wlbleaboy@126