Software Development Kit (SDK) and API Discussions

Volume move with API

stephzylstra
3,144 Views

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!

1 ACCEPTED SOLUTION

robinpeter
3,139 Views

Vol move is not "vserver" level API its under "Cluster-Mode" API

 

Screen Shot 2017-05-02 at 5.29.18 PM.png

 

View solution in original post

2 REPLIES 2

robinpeter
3,140 Views

Vol move is not "vserver" level API its under "Cluster-Mode" API

 

Screen Shot 2017-05-02 at 5.29.18 PM.png

 

stephzylstra
3,133 Views

Thanks, I accidentally moved it to vserver level in ZEDI.

Public