<?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 Coffee breaks with REST - Episode #4: ONTAPI (ZAPI) Reporting tool in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Coffee-breaks-with-REST-Episode-4-ONTAPI-ZAPI-Reporting-tool/m-p/433200#M294</link>
    <description>&lt;P&gt;In the previous &lt;A href="https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Coffee-breaks-with-REST-Episode-3-Getting-Hands-on-with-ONTAP-REST-using-Postman/m-p/431965/highlight/true#M283" target="_blank" rel="noopener"&gt;Episode#3&lt;/A&gt; of blog series, you would have experienced hands-on with ONTAP REST using Postman.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In this fourth episode of blog series, we will look at the resources available for ONTAPI (ZAPI) users to take the transition path to ONTAP REST APIs, which would be the primary external facing API for long term.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Starting with the ONTAP 9.7 (released at the end of 2019), &lt;STRONG&gt;new features and enhancements from ONTAP are available only through the ONTAP REST API&lt;/STRONG&gt; for automation. With the current ONTAP 9.10.1 release (January 2022), ONTAP REST covers most of the use cases in the spectrum of ONTAP management, such as NAS and SAN provisioning, data protection, security, and automatic ONTAP software and firmware upgrades.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have developed a tool to help our customers and partners to transition from ONTAPI (ZAPI) to ONTAP REST API. This tool consists of three python scripts, covering three different use cases.&lt;/P&gt;&lt;P&gt;The following table describes the scripts.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Python 3.7 or higher is required to run the scripts.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="198"&gt;&lt;P&gt;&lt;STRONG&gt;Script&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="382"&gt;&lt;P&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="198"&gt;&lt;P&gt;&lt;STRONG&gt;apache_scraper.py&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="382"&gt;&lt;P&gt;Apache log scraper to find ONTAPIs (ZAPIs) called against ONTAP nodes&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="198"&gt;&lt;P&gt;&lt;STRONG&gt;session_stats.py&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="382"&gt;&lt;P&gt;Command line script to pull session statistics data from ONTAP&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="198"&gt;&lt;P&gt;&lt;STRONG&gt;zapi_to_rest.py&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="382"&gt;&lt;P&gt;Script to find equivalent REST details of ZAPI and attributes passed&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;You can download the ONTAPI Usage Reporting Tool(wheel file) from GitHub link:&amp;nbsp;&lt;A title="GitHub: ONTAPI Usage Reporting Tool" href="https://github.com/NetApp/ontap-rest-python/tree/master/ONTAPI-Usage-Reporting-Tool" target="_blank" rel="noopener"&gt;GitHub: ONTAPI Usage Reporting Tool&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;To install the scripts&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Make sure that Python 3.7 or later is installed.&lt;/LI&gt;&lt;LI&gt;Download the wheel file from GitHub.&lt;/LI&gt;&lt;LI&gt;From the command prompt, &lt;FONT face="courier new,courier"&gt;pip install netapp_ztools-1.0.0-py3-none-any&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This command installs all the required dependencies.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the command prompt and navigate to python_folder python38\Lib\site-packages\netapp_ztools\ to see the installed scripts.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="qw_0-1647853001907.png" style="width: 999px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/23097iD6084E96B14EC3A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="qw_0-1647853001907.png" alt="qw_0-1647853001907.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To learn more about the usage of each script in ONTAPI Usage Reporting tool, read the blog -&amp;nbsp;&amp;nbsp;&lt;A title="ONTAPI Usage reporting tool" href="https://netapp.io/?s=restapi" target="_blank" rel="noopener"&gt;Blog: ONTAPI Usage reporting tool&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 10:03:05 GMT</pubDate>
    <dc:creator>qw</dc:creator>
    <dc:date>2025-06-04T10:03:05Z</dc:date>
    <item>
      <title>Coffee breaks with REST - Episode #4: ONTAPI (ZAPI) Reporting tool</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Coffee-breaks-with-REST-Episode-4-ONTAPI-ZAPI-Reporting-tool/m-p/433200#M294</link>
      <description>&lt;P&gt;In the previous &lt;A href="https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Coffee-breaks-with-REST-Episode-3-Getting-Hands-on-with-ONTAP-REST-using-Postman/m-p/431965/highlight/true#M283" target="_blank" rel="noopener"&gt;Episode#3&lt;/A&gt; of blog series, you would have experienced hands-on with ONTAP REST using Postman.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In this fourth episode of blog series, we will look at the resources available for ONTAPI (ZAPI) users to take the transition path to ONTAP REST APIs, which would be the primary external facing API for long term.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Starting with the ONTAP 9.7 (released at the end of 2019), &lt;STRONG&gt;new features and enhancements from ONTAP are available only through the ONTAP REST API&lt;/STRONG&gt; for automation. With the current ONTAP 9.10.1 release (January 2022), ONTAP REST covers most of the use cases in the spectrum of ONTAP management, such as NAS and SAN provisioning, data protection, security, and automatic ONTAP software and firmware upgrades.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have developed a tool to help our customers and partners to transition from ONTAPI (ZAPI) to ONTAP REST API. This tool consists of three python scripts, covering three different use cases.&lt;/P&gt;&lt;P&gt;The following table describes the scripts.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Python 3.7 or higher is required to run the scripts.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="198"&gt;&lt;P&gt;&lt;STRONG&gt;Script&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="382"&gt;&lt;P&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="198"&gt;&lt;P&gt;&lt;STRONG&gt;apache_scraper.py&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="382"&gt;&lt;P&gt;Apache log scraper to find ONTAPIs (ZAPIs) called against ONTAP nodes&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="198"&gt;&lt;P&gt;&lt;STRONG&gt;session_stats.py&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="382"&gt;&lt;P&gt;Command line script to pull session statistics data from ONTAP&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="198"&gt;&lt;P&gt;&lt;STRONG&gt;zapi_to_rest.py&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="382"&gt;&lt;P&gt;Script to find equivalent REST details of ZAPI and attributes passed&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;You can download the ONTAPI Usage Reporting Tool(wheel file) from GitHub link:&amp;nbsp;&lt;A title="GitHub: ONTAPI Usage Reporting Tool" href="https://github.com/NetApp/ontap-rest-python/tree/master/ONTAPI-Usage-Reporting-Tool" target="_blank" rel="noopener"&gt;GitHub: ONTAPI Usage Reporting Tool&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;To install the scripts&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Make sure that Python 3.7 or later is installed.&lt;/LI&gt;&lt;LI&gt;Download the wheel file from GitHub.&lt;/LI&gt;&lt;LI&gt;From the command prompt, &lt;FONT face="courier new,courier"&gt;pip install netapp_ztools-1.0.0-py3-none-any&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This command installs all the required dependencies.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the command prompt and navigate to python_folder python38\Lib\site-packages\netapp_ztools\ to see the installed scripts.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="qw_0-1647853001907.png" style="width: 999px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/23097iD6084E96B14EC3A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="qw_0-1647853001907.png" alt="qw_0-1647853001907.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To learn more about the usage of each script in ONTAPI Usage Reporting tool, read the blog -&amp;nbsp;&amp;nbsp;&lt;A title="ONTAPI Usage reporting tool" href="https://netapp.io/?s=restapi" target="_blank" rel="noopener"&gt;Blog: ONTAPI Usage reporting tool&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:03:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Coffee-breaks-with-REST-Episode-4-ONTAPI-ZAPI-Reporting-tool/m-p/433200#M294</guid>
      <dc:creator>qw</dc:creator>
      <dc:date>2025-06-04T10:03:05Z</dc:date>
    </item>
  </channel>
</rss>

