<?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: api version not correct in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/api-version-not-correct/m-p/149731#M2937</link>
    <description>&lt;P&gt;I see two errors in your script&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;from NaServer import * s=NaServer("",1,130)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;should be&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;from NaServer import * &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;s=NaServer("",1,130)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Second,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN&gt;s.set_port(443) s.set_style("LOGIN")&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;should be&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;s.set_port(443) &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;s.set_style("LOGIN")&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To check which API version you should use, run this API to check&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;api = NaElement("system-get-ontapi-version")&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2019 15:59:57 GMT</pubDate>
    <dc:creator>gaurav_verma</dc:creator>
    <dc:date>2019-07-19T15:59:57Z</dc:date>
    <item>
      <title>api version not correct</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/api-version-not-correct/m-p/149700#M2936</link>
      <description>&lt;P&gt;My Netapp filers are running 9.1p5, python version is 3.7.3 and NMSDK version is 9.4. When i run the following python script, it gives me the error and the error message is given below at the end. My guess is that i am not using the correct api version in the script. Can anyone help me with the solution to the problem ? - error message&lt;/P&gt;
&lt;P&gt;from NaServer import * s=NaServer("",1,130)&lt;/P&gt;
&lt;P&gt;s.set_server_type("FILER")&lt;/P&gt;
&lt;P&gt;s.set_transport_type("HTTPS")&lt;/P&gt;
&lt;P&gt;s.set_port(443) s.set_style("LOGIN")&lt;/P&gt;
&lt;P&gt;s.set_admin_user("USER_NAME", "PASSWORD")&lt;/P&gt;
&lt;P&gt;api=NaElement("system-get-version")&lt;/P&gt;
&lt;P&gt;xo=s.invoke_elem(api)&lt;/P&gt;
&lt;P&gt;if (xo.results_status() == "failed"):&lt;/P&gt;
&lt;P&gt;print("Error:\n")&lt;/P&gt;
&lt;P&gt;print(xo.sprintf())&lt;/P&gt;
&lt;P&gt;sys.exit(1)&lt;/P&gt;
&lt;P&gt;print("Received:\n")&lt;/P&gt;
&lt;P&gt;print(xo.sprintf())&lt;/P&gt;
&lt;P&gt;the error message is given below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;results status="failed" reason="[Errno 0] Error" errno="13001"&amp;gt;&amp;lt;/results&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:23:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/api-version-not-correct/m-p/149700#M2936</guid>
      <dc:creator>swamik</dc:creator>
      <dc:date>2025-06-04T12:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: api version not correct</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/api-version-not-correct/m-p/149731#M2937</link>
      <description>&lt;P&gt;I see two errors in your script&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;from NaServer import * s=NaServer("",1,130)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;should be&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;from NaServer import * &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;s=NaServer("",1,130)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Second,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN&gt;s.set_port(443) s.set_style("LOGIN")&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;should be&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;s.set_port(443) &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;s.set_style("LOGIN")&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To check which API version you should use, run this API to check&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;api = NaElement("system-get-ontapi-version")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 15:59:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/api-version-not-correct/m-p/149731#M2937</guid>
      <dc:creator>gaurav_verma</dc:creator>
      <dc:date>2019-07-19T15:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: api version not correct</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/api-version-not-correct/m-p/149748#M2938</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp; I have fixed the script and it is working now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have another problem, i am trying to print the volume name and aggregate name.&amp;nbsp; But the the print command is not aligning the output. I need to have output in two columns.&amp;nbsp; &amp;nbsp;At the moment i am getting the output in columns but not aligned properly.&lt;/P&gt;
&lt;P&gt;I am using python 3.7.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need some help to get the output in two columns with proper alignment or indentation.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2019 07:34:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/api-version-not-correct/m-p/149748#M2938</guid>
      <dc:creator>swamik</dc:creator>
      <dc:date>2019-07-20T07:34:32Z</dc:date>
    </item>
  </channel>
</rss>

