Le 30/11/2014 15:01, Michael Pasternak a écrit :
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)
Hi Mickael,
Thank you for your reply, but here is what I get :
[oVirt shell (connected)]# action disk serv-fs-int1_Disk1 move
--storagedomain-name data-vm-adm8
============================================================================
UNKNOWN ERROR
=========================================================================
get() got
an unexpected keyword argument 'name'
====================================================================================================================================================================
I get the same when using the id instead of the names.
--
Nicolas Ecarnot