------=_Part_2620081_1134578422.1417356067706
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Hi Nicolas,
In oVit you can find /Disks under several locations
/api/disks/api/vms/{vm:id}/disks/api/templates/{template:id}/disks/api/vms/{vm:id}/snapshots/{snapshot:id}/disks
to move disk to a different domain, you have to use first one,e.g disk with no context
[1], on ovirt-shell language it will look like [2].
[1] /disks/{disk:id}/move[2] action disk {disk:id} move --
storagedomain-name|--storagedomain-id [--action-async true] ...(use help/auto-completion
to see command details/verbs)
On Saturday, November 29, 2014 12:56 AM, Nicolas Ecarnot <nicolas(a)ecarnot.net>
wrote:
Hello,
I'm confused because though I'm using ovirt-shell to script many actions
every day, and even after a large bunch of reading and testing, I can
not find the correct syntax to move (offline/available) disks between
storage domains.
May you help me please?
(oVirt 3.4.4)
--
Nicolas Ecarnot
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
------=_Part_2620081_1134578422.1417356067706
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div style=3D"color:#000; background-color:#fff; font-family:HelveticaNeue-=
Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grand=
e, sans-serif;font-size:16px"><div
id=3D"yui_3_16_0_1_1417354182518_10880">=
Hi Nicolas,</div><div
id=3D"yui_3_16_0_1_1417354182518_10879"><br></div><di=
v dir=3D"ltr" id=3D"yui_3_16_0_1_1417354182518_10878">In oVit you
can find =
/Disks under several locations</div><div
id=3D"yui_3_16_0_1_1417354182518_1=
0883" dir=3D"ltr"><br></div><div
id=3D"yui_3_16_0_1_1417354182518_10884" di=
r=3D"ltr">/api/disks</div><div
id=3D"yui_3_16_0_1_1417354182518_10885" dir=
=3D"ltr">/api/vms/{vm:id}/disks</div><div
id=3D"yui_3_16_0_1_1417354182518_=
10901" dir=3D"ltr">/api/templates/{template:id}/disks</div><div
id=3D"yui_3=
_16_0_1_1417354182518_10886"
dir=3D"ltr">/api/vms/{vm:id}/snapshots/{snapsh=
ot:id}/disks</div><div id=3D"yui_3_16_0_1_1417354182518_10887"
dir=3D"ltr">=
<br></div><div id=3D"yui_3_16_0_1_1417354182518_10897"
dir=3D"ltr">to move =
disk to a different domain, you have to use first one,</div><div
id=3D"yui_=
3_16_0_1_1417354182518_10896" dir=3D"ltr">e.g disk with no context [1],
on =
ovirt-shell language it will look like [2].<br></div><div
id=3D"yui_3_16_0_=
1_1417354182518_10900" dir=3D"ltr"><br></div><div
id=3D"yui_3_16_0_1_141735=
4182518_10903" dir=3D"ltr">[1] /disks/{disk:id}/move</div><div
id=3D"yui_3_=
16_0_1_1417354182518_10914" dir=3D"ltr">[2] action disk {disk:id} move
-- s=
toragedomain-name|--storagedomain-id [--action-async true] ...</div><div id=
=3D"yui_3_16_0_1_1417354182518_11329" dir=3D"ltr">(use
help/auto-completion=
to see command details/verbs)<br></div><div
id=3D"yui_3_16_0_1_14173541825=
18_10877"><span></span></div> <div
class=3D"qtdSeparateBR"><br><br></div><d=
iv style=3D"display: block;" class=3D"yahoo_quoted"> <div
style=3D"font-fam=
ily: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, =
Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div
style=3D"font-fam=
ily: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-s=
erif; font-size: 16px;"> <div dir=3D"ltr"> <font
face=3D"Arial" size=3D"2">=
On Saturday, November 29, 2014 12:56 AM, Nicolas Ecarnot <nicolas@ecarn=
ot.net> wrote:<br> </font> </div> <br><br> <div
class=3D"y_msg_containe=
r">Hello,<br><br>I'm confused because though I'm using
ovirt-shell to scrip=
t many actions <br>every day, and even after a large bunch of reading and t=
esting, I can <br>not find the correct syntax to move (offline/available) d=
isks between <br>storage domains.<br><br>May you help me
please?<br><br>(oV=
irt 3.4.4)<br><br>-- <br>Nicolas
Ecarnot<br>_______________________________=
________________<br>Users mailing list<br><a
ymailto=3D"mailto:Users@ovirt.=
org"
href=3D"mailto:Users@ovirt.org">Users@ovirt.org</a><br><a
href=3D"http=
://lists.ovirt.org/mailman/listinfo/users"
target=3D"_blank">http://lists.o=
virt.org/mailman/listinfo/users</a><br><br><br>&l...
</div> </div> </div=
</div>
------=_Part_2620081_1134578422.1417356067706--