ÕâÊÇÒ»·â 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(a)ovirt.org
=E4=B8=BB=E9=A2=98: Re: [Engine-devel] ovirt-engine-sdk with C
=20
2013/5/13 leaboy@126 <wlbleaboy(a)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(a)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(a)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/en...
<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--