Hi,
I am trying to move a volume to a new aggregate using the API. I can't find a "volume-move" operation in the SDK so I have attempted to use the "volume-modify-iter" API to change the aggregate, using the code below - unforunately, this just doesn't move the volume.
<?xml version="1.0" encoding="UTF-8"?>
<netapp xmlns="http://www.netapp.com/filer/admin" version="1.32">
<volume-modify-iter>
<attributes>
<volume-attributes>
<volume-id-attributes>
<containing-aggregate-name>aggr11_06_sas</containing-aggregate-name>
</volume-id-attributes>
</volume-attributes>
</attributes>
<continue-on-failure>true</continue-on-failure>
<max-failure-count>1</max-failure-count>
<max-records>1</max-records>
<query>
<volume-attributes>
<volume-id-attributes>
<name>test_api</name>
<name-ordinal></name-ordinal>
<node></node>
<owning-vserver-name>name_of_vserver</owning-vserver-name>
</volume-id-attributes>
</volume-attributes>
</query>
<return-failure-list>true</return-failure-list>
<return-success-list>true</return-success-list>
<tag></tag>
</volume-modify-iter>
</netapp>
Is there any way to achieve this using the API?
Thanks!