<?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: samples not working in Python Discussions</title>
    <link>https://community.netapp.com/t5/Python-Discussions/samples-not-working/m-p/142994#M25</link>
    <description>&lt;P&gt;Long time python hacker, new to netapp as well.&amp;nbsp; Check the perl docs for cDOT api references (&amp;nbsp;doc/perldoc/OntapClusterAPI.html ) just remeber that the calls for perl are things like system_api_list you would actually be the api call 'system-api-list' so&amp;nbsp; `s.invoke('system-api-list')` or `s.invoke_elem(NaElement('system-api-list', ''))`.&amp;nbsp; If you need to pass paramaters to a call it's just `s.invoke(api, parameter1, value1, parameter2, value2, ...)`&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A lot of calls end in `get-iter` which all follow the same pattern of needing the tag recycled to fetch more.&amp;nbsp; Here is one example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/python-code-for-calling-the-quota-report-iter-API/td-p/121805" target="_blank"&gt;https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/python-code-for-calling-the-quota-report-iter-API/td-p/121805&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be careful there since setting the version to 1,3 will preclude you setting the vserver... you need 1,15 or higher to set the vserver.&amp;nbsp; The code itself is not very clean and is very ugly, I've started to put wrappers around the NetApp code to simplify things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want there is a full set of all API references in a javadoc style format stored in the jar file for zexplore ( unzip zexplore.jar and look in the doc&amp;nbsp;folder. )&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 13:53:04 GMT</pubDate>
    <dc:creator>ericwarnke</dc:creator>
    <dc:date>2018-09-27T13:53:04Z</dc:date>
    <item>
      <title>samples not working</title>
      <link>https://community.netapp.com/t5/Python-Discussions/samples-not-working/m-p/142939#M24</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am a new netapp sdk user. I am trying to execute some Python samples that are included with the SDK. I always get the error 'unable to find api. Are there tutorials or manuals for beginners available?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:17:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Python-Discussions/samples-not-working/m-p/142939#M24</guid>
      <dc:creator>cdudev</dc:creator>
      <dc:date>2025-06-04T13:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: samples not working</title>
      <link>https://community.netapp.com/t5/Python-Discussions/samples-not-working/m-p/142994#M25</link>
      <description>&lt;P&gt;Long time python hacker, new to netapp as well.&amp;nbsp; Check the perl docs for cDOT api references (&amp;nbsp;doc/perldoc/OntapClusterAPI.html ) just remeber that the calls for perl are things like system_api_list you would actually be the api call 'system-api-list' so&amp;nbsp; `s.invoke('system-api-list')` or `s.invoke_elem(NaElement('system-api-list', ''))`.&amp;nbsp; If you need to pass paramaters to a call it's just `s.invoke(api, parameter1, value1, parameter2, value2, ...)`&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A lot of calls end in `get-iter` which all follow the same pattern of needing the tag recycled to fetch more.&amp;nbsp; Here is one example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/python-code-for-calling-the-quota-report-iter-API/td-p/121805" target="_blank"&gt;https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/python-code-for-calling-the-quota-report-iter-API/td-p/121805&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Be careful there since setting the version to 1,3 will preclude you setting the vserver... you need 1,15 or higher to set the vserver.&amp;nbsp; The code itself is not very clean and is very ugly, I've started to put wrappers around the NetApp code to simplify things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want there is a full set of all API references in a javadoc style format stored in the jar file for zexplore ( unzip zexplore.jar and look in the doc&amp;nbsp;folder. )&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 13:53:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Python-Discussions/samples-not-working/m-p/142994#M25</guid>
      <dc:creator>ericwarnke</dc:creator>
      <dc:date>2018-09-27T13:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: samples not working</title>
      <link>https://community.netapp.com/t5/Python-Discussions/samples-not-working/m-p/143421#M27</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"unable to find api" generally occur when API and ONTAP version does not match. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In python check this syntax&amp;nbsp;s = NaServer(filer_name, 1 , 32). 1,32 here is API verison 1.32 and different versions have different API version support. For example for&amp;nbsp;Cluster mode it should be&amp;nbsp;s = NaServer(filer_name, 1 , 32) and for 7 mode&amp;nbsp;s = NaServer(filer_name, 1 , 21)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 17:52:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Python-Discussions/samples-not-working/m-p/143421#M27</guid>
      <dc:creator>gaurav_verma</dc:creator>
      <dc:date>2018-10-09T17:52:58Z</dc:date>
    </item>
  </channel>
</rss>

