<?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: Getting spare-disk list trough ZAPI and REST-API in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-spare-disk-list-trough-ZAPI-and-REST-API/m-p/155483#M41</link>
    <description>&lt;P&gt;Are there ZAPI commands which gives the same data as following&amp;nbsp; CLI command -&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;memory dimm show -instance&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN&gt;nfs show -fields vserver,udp,tcp&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN&gt;system controller ioxm show&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Apr 2020 10:50:18 GMT</pubDate>
    <dc:creator>JS_Patil</dc:creator>
    <dc:date>2020-04-12T10:50:18Z</dc:date>
    <item>
      <title>Getting spare-disk list trough ZAPI and REST-API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-spare-disk-list-trough-ZAPI-and-REST-API/m-p/153859#M32</link>
      <description>&lt;P&gt;Does anybody know how to get the list of available spare disks? On the CLI it's easy:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sim96cluster::&amp;gt; storage aggregate show-spare-disks 
                                                                      
Original Owner: sim96cluster-01
 Pool0
  Spare Pool

                                                             Usable Physical
 Disk             Type   Class          RPM Checksum           Size     Size Status
 ---------------- ------ ----------- ------ -------------- -------- -------- --------
 NET-1.4          FCAL   performance  15000 block            1020MB   1.00GB not zeroed
 NET-1.5          FCAL   performance  15000 block            1020MB   1.00GB not zeroed
 NET-1.6          FCAL   performance  15000 block            1020MB   1.00GB not zeroed
 NET-1.18         FCAL   performance  15000 block            1020MB   1.00GB not zeroed
 NET-1.19         FCAL   performance  15000 block            1020MB   1.00GB not zeroed
 NET-1.27         FCAL   performance  15000 block            1020MB   1.00GB zeroed
 NET-1.28         FCAL   performance  15000 block            1020MB   1.00GB zeroed
7 entries were displayed.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But how would I get this list with the good old ZAPI but although with the newer RestAPI?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:21:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-spare-disk-list-trough-ZAPI-and-REST-API/m-p/153859#M32</guid>
      <dc:creator>ilantivienna</dc:creator>
      <dc:date>2025-06-04T11:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting spare-disk list trough ZAPI and REST-API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-spare-disk-list-trough-ZAPI-and-REST-API/m-p/153867#M33</link>
      <description>&lt;P&gt;Do you have a hard requirement to use either native ZAPI or REST calls? It's quite easy to do via the PowerShell Toolkit, for example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Get-NcDisk | Where-Object {$_.DiskRaidInfo.ContainerType -eq "spare"}&lt;/PRE&gt;
&lt;P&gt;However, if you need a ZAPI and REST example specifically, I can whip those up too. Might just take a little longer than PowerShell. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 22:10:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-spare-disk-list-trough-ZAPI-and-REST-API/m-p/153867#M33</guid>
      <dc:creator>donny_lang</dc:creator>
      <dc:date>2020-01-28T22:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Getting spare-disk list trough ZAPI and REST-API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-spare-disk-list-trough-ZAPI-and-REST-API/m-p/153882#M34</link>
      <description>&lt;P&gt;Thanks a lot for your answer - always good to take a step behind and look for completely other solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am writing a plugin for a monitoring-system running on Linux servers. So Powershell is not an option. But I wonder how it could be so easy in Powershell? I always thought these SDKs are just wrappers around the generic XML-based API. That was at least the impression I got when working with the Perl ZAPI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you could point me to the right (Z)API I would be really grateful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so far, Ingo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. Just read your answer again: The problem is, that I can &lt;STRONG&gt;not&lt;/STRONG&gt; use the &lt;EM&gt;container-type&lt;/EM&gt; as indication for a spare disk. In the meantime my assumption, that we can use the the &lt;EM&gt;type&lt;/EM&gt; field a indicator proved as wrong. So back to the start ... I will file a new question, once we have found the right attribute.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 08:23:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-spare-disk-list-trough-ZAPI-and-REST-API/m-p/153882#M34</guid>
      <dc:creator>ilantivienna</dc:creator>
      <dc:date>2020-01-29T08:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting spare-disk list trough ZAPI and REST-API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-spare-disk-list-trough-ZAPI-and-REST-API/m-p/155483#M41</link>
      <description>&lt;P&gt;Are there ZAPI commands which gives the same data as following&amp;nbsp; CLI command -&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;memory dimm show -instance&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN&gt;nfs show -fields vserver,udp,tcp&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN&gt;system controller ioxm show&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 10:50:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-spare-disk-list-trough-ZAPI-and-REST-API/m-p/155483#M41</guid>
      <dc:creator>JS_Patil</dc:creator>
      <dc:date>2020-04-12T10:50:18Z</dc:date>
    </item>
  </channel>
</rss>

