Software Development Kit (SDK) and API Discussions

Volume move with API

stephzylstra

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

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

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

stephzylstra

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public