<?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: How to get list of snapshots with the java api in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-get-list-of-snapshots-with-the-java-api/m-p/100616#M1357</link>
    <description>&lt;P&gt;Have you tried the 'snapshot-list-info' API call (assuming 7 mode)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;snapshot_list_info&lt;/P&gt;&lt;P&gt;[Family: ontap-classic, vfiler]&lt;/P&gt;&lt;P&gt;Return snapshot information for a specified volume. A list of snapshots and information about each snapshot is returned. In Data ONTAP Cluster-Mode, 'snapshot-get-iter' API is the preferred way of retrieving snapshot information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--rdp&lt;/P&gt;</description>
    <pubDate>Fri, 13 Feb 2015 14:40:54 GMT</pubDate>
    <dc:creator>richard_payne</dc:creator>
    <dc:date>2015-02-13T14:40:54Z</dc:date>
    <item>
      <title>How to get list of snapshots with the java api</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-get-list-of-snapshots-with-the-java-api/m-p/99620#M1326</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to get a list of Snapshots with the java-API from a specified volume.&lt;/P&gt;&lt;P&gt;A list of volumes is no problem, but i cant find anything about snapshots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the java code for a volume list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;private ApiRunner getRunner()
    {
        
        ApiRunner runner = null;
        try
        {
             runner = new ApiRunner(ApiTarget.builder()
                .withHost(ip)
                .withUserName(user)
                .withPassword(pw)
                .withTargetType(TargetType.FILER)
                .useHttp()
                .build());
        
        
        }
        catch(Exception e)
        {
            System.out.println("Connection Problem");
            e.printStackTrace();
        }
        return runner;
    }

public Iterator getVolumes()
    {
        ArrayList volList = null;
        ApiRunner runner = getRunner();
        VolumeListInfoIterStartRequest volListReq = new VolumeListInfoIterStartRequest();
        Iterator&amp;lt;VolumeInfo&amp;gt; volumeIter = runner.iterate(volListReq, 10);
        
        return volumeIter;
     
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:15:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-get-list-of-snapshots-with-the-java-api/m-p/99620#M1326</guid>
      <dc:creator>bmpeter</dc:creator>
      <dc:date>2025-06-05T05:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get list of snapshots with the java api</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-get-list-of-snapshots-with-the-java-api/m-p/100616#M1357</link>
      <description>&lt;P&gt;Have you tried the 'snapshot-list-info' API call (assuming 7 mode)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;snapshot_list_info&lt;/P&gt;&lt;P&gt;[Family: ontap-classic, vfiler]&lt;/P&gt;&lt;P&gt;Return snapshot information for a specified volume. A list of snapshots and information about each snapshot is returned. In Data ONTAP Cluster-Mode, 'snapshot-get-iter' API is the preferred way of retrieving snapshot information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--rdp&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:40:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-get-list-of-snapshots-with-the-java-api/m-p/100616#M1357</guid>
      <dc:creator>richard_payne</dc:creator>
      <dc:date>2015-02-13T14:40:54Z</dc:date>
    </item>
  </channel>
</rss>

