------=_=-_OpenGroupware_org_NGMime-17652-1523629173.596750-74------
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Length: 9508
Ok I see, thank you.=C2=A0
vdsm-client Host getAllTasksStatuses works on the SPM.
But
vdsm-client Task getInfo TaskID=3DTaskID=3D55cbec7f-e7dc-4431-bce9-8ec1=
d61a7feb
returns :
vdsm-client: Command Task.getInfo with args {'TaskID': '55cbec7f-e7dc-4=
431-bce9-8ec1d61a7feb'} failed:
(code=3D-32603, message=3DInternal JSON-RPC error: {'reason': '=5F=5Fin=
it=5F=5F() takes exactly 2 arguments (1 given)'})
There is no examples with tasks below, and the link to github ends in 4=
04...
I'll try to find some docs about API, and tasks management, if you beli=
eve that's best. Any link to share ?
Thanks,
Frank
=C2=A0
Le Vendredi, Avril 13, 2018 14:41 CEST, Michal Skrivanek <michal.skriva=
nek(a)redhat.com> a =C3=A9crit:
=C2=A0=C2=A0=C2=A0On 13 Apr 2018, at 10:14, fsoyer <fsoyer(a)systea.fr> w=
rote:=C2=A0Hi all,
I can't find any exhaustive doc for new vdsm-client. My problem actuall=
y is a task (export a vm to OVA) blocked.=C2=A0if you want to interact =
with that action it would always be best to start with engine=E2=80=99s=
REST API rather than internal host-side API=C2=A0I found that I can in=
teract with
vdsm-client Task getInfo taskID=3D<uuid>, and replace getInfo by "stop"=
, BUT : how can I find this UUID ???Old "vdsClient -s 0 getAllTasksStat=
uses" has no equivalent ??=C2=A0that=E2=80=99s a Host class api, vdsm-c=
lient Host getAllTasksStatuses
Does someone knows if a complete doc exists dot vdsm-client ?=C2=A0the =
man page mentioned below and source code. this is not a public API=C2=A0=
Thanks,michal=C2=A0Thanks
Frank
=C2=A0
Le Mercredi, Janvier 25, 2017 12:30 CET, Irit Goihman <igoihman(a)redhat.=
com> a =C3=A9crit:
=C2=A0Hi All,=C2=A0vdsClient will be removed from master branch today.I=
t is using XMLRPC protocol which has been deprecated and replaced by JS=
ON-RPC.=C2=A0A new client for vdsm was introduced in 4.1: vdsm-client.T=
his is a simple client that uses JSON-RPC protocol which was introduced=
in ovirt 3.5.=C2=A0The client is not aware of the available methods an=
d parameters, and you should consult=C2=A0the schema [1] in order to co=
nstruct the desired command.=C2=A0Future version should parse the schem=
a and provide online help.=C2=A0=C2=A0If you're using vdsClient, we wil=
l be happy to assist you in migrating to the new vdsm client.=C2=A0=C2=A0=
=C2=A0vdsm-client usage:=C2=A0vdsm-client [-h] [-a ADDRESS] [-p PORT] [=
--unsecure] [--timeout TIMEOUT]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0[-f FILE] namespace method [name=3Dvalue [n=
ame=3Dvalue] ...]=C2=A0=C2=A0Invoking simple methods:=C2=A0# vdsm-clien=
t Host getVMList['b3f6fa00-b315-4ad4-8108-f73da817b5c5']=C2=A0For invok=
ing methods with many or complex parameters, you can read the=C2=A0para=
meters from a JSON format file:=C2=A0# vdsm-client Lease info -f lease.=
json=C2=A0where lease.json file content is:=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 "lease":=
{ =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 "sd=5Fid": "7=
5ab40e3-06b1-4a54-a825-2df7a40b93b2", =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 "lease=5Fid": "b3f6fa00-b315-4ad4-8108-f73da817b5c5"
=
=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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=
=A0 } =C2=A0=C2=A0It is also possible to read parameters from standard =
input, creating complex=C2=A0parameters interactively:=C2=A0# cat <<EOF=
| vdsm-client Lease info -f - =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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=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 EOF =C2=A0=C2=
=A0=C2=A0Constructing a command from vdsm schema:=C2=A0Let's take VM.ge=
tStats as an example.This is the entry in the schema:=C2=A0VM.getStats:=
=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 added: '3.1' =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 de=
scription: Get statistics about a running virtual machine. =C2=A0 =C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 params: =C2=A0 =
=C2=A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 =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 description: An array containing a single VmStats record=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 type: =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 - *VmS=
tats =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=A0namespace: VMmethod name: getStatsparams: vmID=C2=A0The vds=
m-client command is:=C2=A0# vdsm-client VM=C2=A0getStats vmID=3Db3f6fa0=
0-b315-4ad4-8108-f73da817b5c5=C2=A0=C2=A0Invoking getVdsCaps command:=C2=
=A0# vdsm-client Host=C2=A0getCapabilities=C2=A0=C2=A0=C2=A0Please cons=
ult vdsm-client help and man page for further details and options.=C2=A0=
=C2=A0=C2=A0[1]=C2=A0https://github.com/oVirt/vdsm/blob/master/lib/api/=
vdsm-api.yml=C2=A0--Irit GoihmanSoftware EngineerRed Hat Israel Ltd.
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
------=_=-_OpenGroupware_org_NGMime-17652-1523629173.596750-74------
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Length: 21124
<html>Ok I see, thank you. <br />vdsm-client Host getAllTasksStatu=
ses works on the SPM.<br />But<br />vdsm-client Task getInfo TaskID=3DT=
askID=3D55cbec7f-e7dc-4431-bce9-8ec1d61a7feb<br />returns :<br />vdsm-c=
lient: Command Task.getInfo with args {'TaskID': '55cbec7f-e7dc-4431-bc=
e9-8ec1d61a7feb'} failed:<br />(code=3D-32603, message=3DInternal JSON-=
RPC error: {'reason': '=5F=5Finit=5F=5F() takes exactly 2 arguments (1 =
given)'})<br /><br />There is no examples with tasks below, and the lin=
k to github ends in 404...<br /><br />I'll try to find some docs about =
API, and tasks management, if you believe that's best. Any link to shar=
e ?<br /><br />Thanks,<br />Frank<p
class=3D"Text2"> </p><br />Le =
Vendredi, Avril 13, 2018 14:41 CEST, Michal Skrivanek <michal.skriva=
nek(a)redhat.com&gt; a =C3=A9crit:<br /> <blockquote
type=3D"cite" c=
ite=3D"4BD97EE5-5A02-499B-860E-AD76BF1B7CBA(a)redhat.com">&nbsp;</blockqu=
ote><meta http-equiv=3D"Content-Type" content=3D"text/html;
"><div>&nbs=
p;<blockquote type=3D"cite"><div>On 13 Apr 2018, at 10:14, fsoyer
<<=
a href=3D"mailto:fsoyer@systea.fr">fsoyer@systea.fr</a>>
wrote:</div=
<div><span style=3D"font-family: Helvetica;
font-size: 12px; fon=
t-style: normal; font-variant-caps: normal; font-weight:
normal; letter=
-spacing: normal; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width=
: 0px; float: none; display: inline !important;">Hi all,</span><br styl=
e=3D"font-family: Helvetica; font-size: 12px; font-style: normal; font-=
variant-caps: normal; font-weight: normal; letter-spacing: normal; text=
-align: start; text-indent: 0px; text-transform: none; white-space: nor=
mal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" /><span style=3D=
"font-family: Helvetica; font-size: 12px; font-style: normal; font-vari=
ant-caps: normal; font-weight: normal; letter-spacing: normal; text-ali=
gn: start; text-indent: 0px; text-transform: none; white-space: normal;=
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; displa=
y: inline !important;">I can't find any exhaustive doc for new vdsm-cli=
ent. My problem actually is a task (export a vm to OVA) blocked.</span>=
</div></blockquote><div> </div>if you want to interact
with that a=
ction it would always be best to start with engine=E2=80=99s REST API r=
ather than internal host-side API</div><div> <blockquote
type=3D"c=
ite"><div><span style=3D"font-family: Helvetica; font-size: 12px;
font-=
style: normal; font-variant-caps: normal; font-weight: normal; letter-s=
pacing: normal; text-align: start; text-indent: 0px; text-transform: no=
ne; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: =
0px; float: none; display: inline !important;">I found that I can inter=
act with</span><br style=3D"font-family: Helvetica; font-size: 12px; fo=
nt-style: normal; font-variant-caps: normal; font-weight: normal; lette=
r-spacing: normal; text-align: start; text-indent: 0px; text-transform:=
none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-widt=
h: 0px;" /><span style=3D"font-family: Helvetica; font-size: 12px; font=
-style: normal; font-variant-caps: normal; font-weight: normal; letter-=
spacing: normal; text-align: start; text-indent: 0px; text-transform: n=
one; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width:=
0px; float: none; display: inline !important;">vdsm-client Task getInf=
o taskID=3D<uuid>, and replace getInfo by "stop", BUT : how can
I=
find this UUID ???</span></div></blockquote><blockquote
type=3D"cite">=
<div><span style=3D"font-family: Helvetica; font-size: 12px; font-style=
: normal; font-variant-caps: normal; font-weight: normal; letter-spacin=
g: normal; text-align: start; text-indent: 0px; text-transform: none; w=
hite-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
float: none; display: inline !important;">Old "vdsClient -s 0 getAllTas=
ksStatuses" has no equivalent
??</span></div></blockquote><div> </=
div>that=E2=80=99s a Host class api, vdsm-client Host getAllTasksStatus=
es<blockquote type=3D"cite"><div><br style=3D"font-family:
Helvetica; f=
ont-size: 12px; font-style: normal; font-variant-caps: normal; font-wei=
ght: normal; letter-spacing: normal; text-align: start; text-indent: 0p=
x; text-transform: none; white-space: normal; word-spacing: 0px; -webki=
t-text-stroke-width: 0px;" /><span style=3D"font-family: Helvetica; fon=
t-size: 12px; font-style: normal; font-variant-caps: normal; font-weigh=
t: normal; letter-spacing: normal; text-align: start; text-indent: 0px;=
text-transform: none; white-space: normal; word-spacing: 0px; -webkit-=
text-stroke-width: 0px; float: none; display: inline !important;">Does =
someone knows if a complete doc exists dot vdsm-client ?</span></div></=
blockquote><div> </div>the man page mentioned below and source
cod=
e. this is not a public
API</div><div> </div><div>Thanks,</div><di=
v>michal</div><div> <blockquote
type=3D"cite"><div><span style=3D"=
font-family: Helvetica; font-size: 12px; font-style: normal; font-varia=
nt-caps: normal; font-weight: normal; letter-spacing: normal; text-alig=
n: start; text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display=
: inline !important;">Thanks</span><br style=3D"font-family:
Helvetica;=
font-size: 12px; font-style: normal; font-variant-caps: normal; font-w=
eight: normal; letter-spacing: normal; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; word-spacing: 0px; -web=
kit-text-stroke-width: 0px;" /><span style=3D"font-family: Helvetica; f=
ont-size: 12px; font-style: normal; font-variant-caps: normal; font-wei=
ght: normal; letter-spacing: normal; text-align: start; text-indent: 0p=
x; text-transform: none; white-space: normal; word-spacing: 0px; -webki=
t-text-stroke-width: 0px; float: none; display: inline !important;">Fra=
nk</span><p class=3D"Text2" style=3D"font-size: 7pt; font-family:
Verda=
na; font-style: normal; font-variant-caps: normal; font-weight: normal;=
letter-spacing: normal; text-align: start; text-indent: 0px; text-tran=
sform: none; white-space: normal; word-spacing: 0px; -webkit-text-strok=
e-width: 0px;"><br /> </p><br style=3D"font-family:
Helvetica; fon=
t-size: 12px; font-style: normal; font-variant-caps: normal; font-weigh=
t: normal; letter-spacing: normal; text-align: start; text-indent: 0px;=
text-transform: none; white-space: normal; word-spacing: 0px; -webkit-=
text-stroke-width: 0px;" /><br style=3D"font-family: Helvetica; font-si=
ze: 12px; font-style: normal; font-variant-caps: normal; font-weight: n=
ormal; letter-spacing: normal; text-align: start; text-indent: 0px; tex=
t-transform: none; white-space: normal; word-spacing: 0px; -webkit-text=
-stroke-width: 0px;" /><span style=3D"font-family: Helvetica; font-size=
: 12px; font-style: normal; font-variant-caps: normal; font-weight: nor=
mal; letter-spacing: normal; text-align: start; text-indent: 0px; text-=
transform: none; white-space: normal; word-spacing: 0px; -webkit-text-s=
troke-width: 0px; float: none; display: inline !important;">Le Mercredi=
, Janvier 25, 2017 12:30 CET, Irit Goihman <<a href=3D"mailto:igoihm=
an@redhat.com">igoihman(a)redhat.com</a>&gt; a
=C3=A9crit:</span><br styl=
e=3D"font-family: Helvetica; font-size: 12px; font-style: normal; font-=
variant-caps: normal; font-weight: normal; letter-spacing: normal; text=
-align: start; text-indent: 0px; text-transform: none; white-space: nor=
mal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" /><span style=3D=
"font-family: Helvetica; font-size: 12px; font-style: normal; font-vari=
ant-caps: normal; font-weight: normal; letter-spacing: normal; text-ali=
gn: start; text-indent: 0px; text-transform: none; white-space: normal;=
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; displa=
y: inline !important;"> </span><blockquote
type=3D"cite" cite=3D"x=
-msg://71/CAA=3Di7HMsB7iRYqP9yyBx4w7pGer9rTE9wkJZRgcmXRQMaJezwg@mail.gm=
ail.com" style=3D"font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing:=
normal; orphans: auto; text-align: start; text-indent: 0px; text-trans=
form: none; white-space: normal; widows: auto; word-spacing: 0px; -webk=
it-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><div dir=3D=
"ltr">Hi All,<div> </div><div>vdsClient will be
removed from maste=
r branch today.</div><div>It is using XMLRPC protocol which has been de=
precated and replaced by
JSON-RPC.</div><div> </div><div>A new cli=
ent for vdsm was introduced in 4.1: vdsm-client.</div><div>This is a si=
mple client that uses JSON-RPC protocol which was introduced in ovirt 3=
.5.</div><div> </div><div>The client is not aware of the
available=
methods and parameters, and you should consult </div><div>the sch=
ema [1] in order to construct the desired
command.</div><div> </di=
v><div>Future version should parse the schema and provide online help.<=
/div><div> </div><div> </div><div>If
you're using vdsClient, =
we will be happy to assist you in migrating to the new vdsm client.</di=
v><div> </div><div> </div><div> </div><div><b><u>vdsm-cl=
ient
usage:</u></b></div><div> </div><div><div>vdsm-client
[-h] [-=
a ADDRESS] [-p PORT] [--unsecure] [--timeout TIMEOUT]</div><div> =
[-f FILE]=
namespace method [name=3Dvalue [name=3Dvalue]
...]</div></div><div>&nb=
sp;</div><div> </div><div><div>Invoking simple
methods:</div><div>=
</div><div># vdsm-client Host
getVMList</div><div>['b3f6fa00-b315=
-4ad4-8108-f73da817b5c5']</div></div><div> </div><div>For
invoking=
methods with many or complex parameters, you can read the paramet=
ers from a JSON format file:</div><div> </div><div>#
vdsm-client L=
ease info -f lease.json</div><div> </div><div>where
lease.json fil=
e content is:</div><div> </div><div><div>{
&n=
bsp;
&nb=
sp;
&nbs=
p;
 =
; </div><div>
&nb=
sp; "lease": {
=
&=
nbsp;
&n=
bsp; </div><div>
&=
nbsp; "sd=5Fid": "75ab40e3-06b1-4a54-a825-2df7a40b93b2",
=
</d=
iv><div>
"lease=5Fid": =
"b3f6fa00-b315-4ad4-8108-f73da817b5c5"
&nbs=
p; </div><div>
&nb=
sp; }
&n=
bsp;
&nb=
sp;
&nbs=
p;
</div><div> } =
</div></div><div> </div><div>It is also
possible to read par=
ameters from standard input, creating complex parameters interacti=
vely:</div><div> </div><div><div># cat
<<EOF | vdsm-client L=
ease info -f -
=
</=
div><div> {
 =
;
=
=
&=
nbsp; </div><div>
"lease": { &nb=
sp;
&nbs=
p;
 =
;
=
</div><div>
"sd=5F=
id": "75ab40e3-06b1-4a54-a825-2df7a40b93b2",
 =
;
</div><div> &nbs=
p; "lease=5Fid":
"b3f6fa00-b315-4ad4-=
8108-f73da817b5c5"
&nb=
sp; </div><div>
} &=
nbsp;
&n=
bsp;
&nb=
sp;
&nbs=
p; </div><div>
} &=
nbsp;
&n=
bsp;
&nb=
sp;
&nbs=
p;
</div><div> EO=
F
</div></div><div> </div><div> </div><div><b><u>Constr=
ucting a command from vdsm
schema:</u></b></div><div> </div><div>L=
et's take VM.getStats as an example.</div><div>This is the entry in the=
schema:</div><div> </div><div><div>VM.getStats:
&nb=
sp;
&nbs=
p;
 =
;
=
</div><div> added: '3.1'
 =
;
=
=
</div><div> =
; description: Get statistics about a running virtual machine. &=
nbsp;
</div><div> =
params:
=
=
&=
nbsp;
</div><div> =
- description: The UUID of the VM
&n=
bsp;
&nb=
sp;
</div><div> &n=
bsp; name: vmID
=
=
&=
nbsp; </div><div>
type: =
*UUID
&n=
bsp;
&nb=
sp;
&nbs=
p; </div><div> return:
&n=
bsp;
&nb=
sp;
&nbs=
p;
=
</div><div> description: An array
containing=
a single VmStats record
&nbs=
p; </div><div> type:
&nb=
sp;
&nbs=
p;
 =
;
=
</div><div> - *VmStats
&=
nbsp;
&n=
bsp;
&nb=
sp;
</div></div>=
<div> </div><div>namespace: VM</div><div>method
name: getStats</di=
v><div>params: vmID</div><div> </div><div>The
vdsm-client command =
is:</div><div> </div><div># vdsm-client
VM getStats vmID=3Db3=
f6fa00-b315-4ad4-8108-f73da817b5c5</div><div> </div><div> </d=
iv><div><div><b><u>Invoking getVdsCaps
command:</u></b></div><div> =
;</div><div># vdsm-client
Host getCapabilities</div></div><div>&nb=
sp;</div><div><div> </div><div> </div><div>Please
consult vds=
m-client help and man page for further details and options.</div><div>&=
nbsp;</div><div> </div><div> </div><div>[1]<span
class=3D"App=
le-converted-space"> </span><a
href=3D"https://github.com/oVirt/vd=
sm/blob/master/lib/api/vdsm-api.yml">https://github.com/oVirt/vds...
/master/lib/api/vdsm-api.yml</a></div><div> </div>--<div
class=3D"=
gmail=5Fsignature"><div dir=3D"ltr">Irit
Goihman<div>Software Engineer<=
/div><div>Red Hat Israel
Ltd.</div></div></div></div></div></blockquote=
<br style=3D"font-family: Helvetica; font-size: 12px;
font-style: norm=
al; font-variant-caps: normal; font-weight: normal;
letter-spacing: nor=
mal; text-align: start; text-indent: 0px; text-transform: none; white-s=
pace: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" /><br=
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal;=
text-align: start; text-indent: 0px; text-transform: none; white-space=
: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" /><span s=
tyle=3D"font-family: Helvetica; font-size: 12px; font-style: normal; fo=
nt-variant-caps: normal; font-weight: normal; letter-spacing: normal; t=
ext-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none;=
display: inline !important;">=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F</span><br style=3D"font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant-caps: normal; font-we=
ight: normal; letter-spacing: normal; text-align: start; text-indent: 0=
px; text-transform: none; white-space: normal; word-spacing: 0px; -webk=
it-text-stroke-width: 0px;" /><span style=3D"font-family: Helvetica; fo=
nt-size: 12px; font-style: normal; font-variant-caps: normal; font-weig=
ht: normal; letter-spacing: normal; text-align: start; text-indent: 0px=
; text-transform: none; white-space: normal; word-spacing: 0px; -webkit=
-text-stroke-width: 0px; float: none; display: inline !important;">User=
s mailing list</span><br style=3D"font-family: Helvetica; font-size: 12=
px; font-style: normal; font-variant-caps: normal; font-weight: normal;=
letter-spacing: normal; text-align: start; text-indent: 0px; text-tran=
sform: none; white-space: normal; word-spacing: 0px; -webkit-text-strok=
e-width: 0px;" /><a style=3D"font-family: Helvetica; font-size: 12px; f=
ont-style: normal; font-variant-caps: normal; font-weight: normal; lett=
er-spacing: normal; orphans: auto; text-align: start; text-indent: 0px;=
text-transform: none; white-space: normal; widows: auto; word-spacing:=
0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" =
href=3D"mailto:Users@ovirt.org">Users@ovirt.org</a><br
style=3D"font-fa=
mily: Helvetica; font-size: 12px; font-style: normal; font-variant-caps=
: normal; font-weight: normal; letter-spacing: normal; text-align: star=
t; text-indent: 0px; text-transform: none; white-space: normal; word-sp=
acing: 0px; -webkit-text-stroke-width: 0px;" /><a style=3D"font-family:=
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: nor=
mal; font-weight: normal; letter-spacing: normal; orphans: auto; text-a=
lign: start; text-indent: 0px; text-transform: none; white-space: norma=
l; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -we=
bkit-text-stroke-width: 0px;"
href=3D"http://lists.ovirt.org/mailman/li=
stinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a...
blockquote></div><br /><br /><style
type=3D"text/css">.Text1 {
color: black;
font-size:9pt;
font-family:Verdana;
}
.Text2 {
color: black;
font-size:7pt;
font-family:Verdana;
}</style></html>
------=_=-_OpenGroupware_org_NGMime-17652-1523629173.596750-74--------