<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: volume-get-iter error when retrieving volume attributes in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/volume-get-iter-error-when-retrieving-volume-attributes/m-p/130698#M2353</link>
    <description>&lt;P&gt;There is no&amp;nbsp;&amp;nbsp;"&lt;SPAN&gt;volume-get-ltr" call in&amp;nbsp;&lt;/SPAN&gt;7-Mode ontapi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what i used a while back... while i muck around with 7-mode system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    #Collecting 7Mode Volume Information and Storing in Perl %volinfo:
    my $outv = $ss-&amp;gt;invoke( "volume-list-info" );
    if ($outv-&amp;gt;results_status() eq "failed"){
        print ((caller(0))[3], $filer, $outv-&amp;gt;results_reason(), "\n");
    } else {
        my $volume_info = $outv-&amp;gt;child_get("volumes");
        my @result = $volume_info-&amp;gt;children_get();
        foreach my $vol (@result){
            my $volname                                 = $vol-&amp;gt;child_get_string("name");
            my $volid                                   = join (":", $filer, $volname);
            $volinfo{$volid}{'volid'}                   = $volid;
            $volinfo{$volid}{'uuid'}                    = $vol-&amp;gt;child_get_string("uuid");
            $volinfo{$volid}{'name'}                    = $vol-&amp;gt;child_get_string("name");
            $volinfo{$volid}{'state'}                   = $vol-&amp;gt;child_get_string("state");
            $volinfo{$volid}{'type'}                    = $vol-&amp;gt;child_get_string("type");
            $volinfo{$volid}{'sizeTotal'}               = $vol-&amp;gt;child_get_int("size-total");
            $volinfo{$volid}{'sizeUsed'}                = $vol-&amp;gt;child_get_int("size-used");
            $volinfo{$volid}{'sizeAvailable'}           = $vol-&amp;gt;child_get_int("size-available");
            $volinfo{$volid}{'percentageUsed'}          = $vol-&amp;gt;child_get_int("percentage-used");
            $volinfo{$volid}{'filesTotal'}              = $vol-&amp;gt;child_get_int("files-total");
            $volinfo{$volid}{'filesUsed'}               = $vol-&amp;gt;child_get_int("files-used");
            $volinfo{$volid}{'containingAggr'}          = $vol-&amp;gt;child_get_string("containing-aggregate");
            $volinfo{$volid}{'filer'}                   = $filer;
        }
    }&lt;/PRE&gt;&lt;P&gt;Yes, back in days.. i was using Perl.. &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2017 16:14:57 GMT</pubDate>
    <dc:creator>robinpeter</dc:creator>
    <dc:date>2017-05-02T16:14:57Z</dc:date>
    <item>
      <title>volume-get-iter error when retrieving volume attributes</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/volume-get-iter-error-when-retrieving-volume-attributes/m-p/130692#M2351</link>
      <description>&lt;P&gt;I am using Ontap API and I am talking to 7-Mode NetApp filer. I am able to get a list of volumes, but I cannot figure out how to get volume attributes. I tried to use VolumeGetIterResponse class, here is a code snippet&lt;/P&gt;&lt;PRE&gt;VolumeGetIterRequest volumeGetIter = new VolumeGetIterRequest();
volumeGetIter.setMaxRecords(100);
List&amp;lt;VolumeAttributes&amp;gt; volAttributes = volumeGetIterResponse.getAttributesList();
for (VolumeAttributes vas : volAttributes) {
VolumeExportAttributes vs = vas.getVolumeExportAttributes();
}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;When running this code, I get error:&lt;BR /&gt;Unable to find API: volume-get-iter&lt;BR /&gt;Please point me where I am wrong, your help is highly appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:07:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/volume-get-iter-error-when-retrieving-volume-attributes/m-p/130692#M2351</guid>
      <dc:creator>tom_yuyitung</dc:creator>
      <dc:date>2025-06-04T15:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: volume-get-iter error when retrieving volume attributes</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/volume-get-iter-error-when-retrieving-volume-attributes/m-p/130698#M2353</link>
      <description>&lt;P&gt;There is no&amp;nbsp;&amp;nbsp;"&lt;SPAN&gt;volume-get-ltr" call in&amp;nbsp;&lt;/SPAN&gt;7-Mode ontapi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what i used a while back... while i muck around with 7-mode system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    #Collecting 7Mode Volume Information and Storing in Perl %volinfo:
    my $outv = $ss-&amp;gt;invoke( "volume-list-info" );
    if ($outv-&amp;gt;results_status() eq "failed"){
        print ((caller(0))[3], $filer, $outv-&amp;gt;results_reason(), "\n");
    } else {
        my $volume_info = $outv-&amp;gt;child_get("volumes");
        my @result = $volume_info-&amp;gt;children_get();
        foreach my $vol (@result){
            my $volname                                 = $vol-&amp;gt;child_get_string("name");
            my $volid                                   = join (":", $filer, $volname);
            $volinfo{$volid}{'volid'}                   = $volid;
            $volinfo{$volid}{'uuid'}                    = $vol-&amp;gt;child_get_string("uuid");
            $volinfo{$volid}{'name'}                    = $vol-&amp;gt;child_get_string("name");
            $volinfo{$volid}{'state'}                   = $vol-&amp;gt;child_get_string("state");
            $volinfo{$volid}{'type'}                    = $vol-&amp;gt;child_get_string("type");
            $volinfo{$volid}{'sizeTotal'}               = $vol-&amp;gt;child_get_int("size-total");
            $volinfo{$volid}{'sizeUsed'}                = $vol-&amp;gt;child_get_int("size-used");
            $volinfo{$volid}{'sizeAvailable'}           = $vol-&amp;gt;child_get_int("size-available");
            $volinfo{$volid}{'percentageUsed'}          = $vol-&amp;gt;child_get_int("percentage-used");
            $volinfo{$volid}{'filesTotal'}              = $vol-&amp;gt;child_get_int("files-total");
            $volinfo{$volid}{'filesUsed'}               = $vol-&amp;gt;child_get_int("files-used");
            $volinfo{$volid}{'containingAggr'}          = $vol-&amp;gt;child_get_string("containing-aggregate");
            $volinfo{$volid}{'filer'}                   = $filer;
        }
    }&lt;/PRE&gt;&lt;P&gt;Yes, back in days.. i was using Perl.. &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 16:14:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/volume-get-iter-error-when-retrieving-volume-attributes/m-p/130698#M2353</guid>
      <dc:creator>robinpeter</dc:creator>
      <dc:date>2017-05-02T16:14:57Z</dc:date>
    </item>
  </channel>
</rss>

