<?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 a list of spare-disks (even if they are not in the spare-container) in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-a-list-of-spare-disks-even-if-they-are-not-in-the-spare-container/m-p/449309#M621</link>
    <description>&lt;P&gt;Hello, has anyone managed to solve this problem?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2023 09:04:22 GMT</pubDate>
    <dc:creator>Slavomir_K</dc:creator>
    <dc:date>2023-11-29T09:04:22Z</dc:date>
    <item>
      <title>Getting a list of spare-disks (even if they are not in the spare-container)</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-a-list-of-spare-disks-even-if-they-are-not-in-the-spare-container/m-p/153901#M35</link>
      <description>&lt;P&gt;After doing a bit more research it turns out that on a system with &lt;EM&gt;Advanced Disk Partition&lt;/EM&gt; we can not use the container-type as indication for a spare-disk (some spare-disks are in the &lt;EM&gt;shared&lt;/EM&gt; container). So what I would like to do ist sending this command&amp;nbsp;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;aggr show-spare-disks&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;to the system &lt;STRONG&gt;using&lt;/STRONG&gt; &lt;STRONG&gt;the&lt;/STRONG&gt; new &lt;STRONG&gt;REST-API&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Does anyone have an idea how I can do that?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:20:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-a-list-of-spare-disks-even-if-they-are-not-in-the-spare-container/m-p/153901#M35</guid>
      <dc:creator>ilantivienna</dc:creator>
      <dc:date>2025-06-04T11:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a list of spare-disks (even if they are not in the spare-container)</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-a-list-of-spare-disks-even-if-they-are-not-in-the-spare-container/m-p/153905#M36</link>
      <description>&lt;P&gt;I don't have a 9.6 box with ADP handy at the moment unfortunately, but could you use the "state" field from the /storage/disks REST API to collect the data? Test it out and let me know - thanks!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X GET "https://&amp;lt;cluster hostname&amp;gt;/api/storage/disks?state=spare&amp;amp;fields=&amp;amp;return_records=true&amp;amp;return_timeout=15" -H "accept: application/json"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 19:58:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-a-list-of-spare-disks-even-if-they-are-not-in-the-spare-container/m-p/153905#M36</guid>
      <dc:creator>donny_lang</dc:creator>
      <dc:date>2020-01-29T19:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a list of spare-disks (even if they are not in the spare-container)</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-a-list-of-spare-disks-even-if-they-are-not-in-the-spare-container/m-p/153919#M37</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/77625"&gt;@donny_lang&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;could you use the "state" field&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Unfortunately this field is &lt;EM&gt;present&lt;/EM&gt; as well, if the disk is in the shared-container (spare disks are in &lt;FONT color="#FF0000"&gt;red&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;XGB17::&amp;gt; aggr show-spare-disks
Original Owner: XGB17-01
Pool0
  Root-Data Partitioned Spares
                                                              Local    Local
                                                               Data     Root Physical
Disk             Type   Class          RPM Checksum         Usable   Usable     Size Status
---------------- ------ ----------- ------ -------------- -------- -------- -------- --------
&lt;FONT color="#FF0000"&gt;1.0.21&lt;/FONT&gt;           BSAS   capacity      7200 block            1.56TB  53.88GB   1.62TB zeroed
 
Original Owner: XGB17-02
Pool0
  Root-Data Partitioned Spares
                                                              Local    Local
                                                               Data     Root Physical
Disk             Type   Class          RPM Checksum         Usable   Usable     Size Status
---------------- ------ ----------- ------ -------------- -------- -------- -------- --------
&lt;FONT color="#FF0000"&gt;1.0.20&lt;/FONT&gt;           BSAS   capacity      7200 block            1.56TB  53.88GB   1.62TB zeroed
2 entries were displayed.



XGB17::&amp;gt; disk show -fields state,container-type
disk   container-type state
------ -------------- -------
Info: This cluster has partitioned disks. To get a complete list of spare disk capacity use "storage aggregate show-spare-disks".
1.0.0  shared         present
1.0.1  shared         present
1.0.2  shared         present
1.0.3  shared         present
1.0.4  shared         present
1.0.5  shared         present
1.0.6  shared         present
1.0.7  shared         present
1.0.8  shared         present
1.0.9  shared         present
1.0.10 shared         present
1.0.11 shared         present
1.0.12 shared         present
1.0.13 shared         present
1.0.14 shared         present
1.0.15 shared         present
1.0.16 shared         present
1.0.17 shared         present
1.0.18 shared         present
1.0.19 shared         present
&lt;FONT color="#FF0000"&gt;1.0.20&lt;/FONT&gt; shared         present
&lt;FONT color="#FF0000"&gt;1.0.21&lt;/FONT&gt; shared         present
1.0.22 shared         present
1.0.23 shared         present
24 entries were displayed.
&lt;/PRE&gt;
&lt;P&gt;The only other way beside of using the CLI command &lt;FONT face="courier new,courier"&gt;aggr show-spare-disks&lt;/FONT&gt; may be&amp;nbsp;&lt;FONT face="courier new,courier"&gt;disk partition show:&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;XGB17::*&amp;gt; disk partition show
                          Usable  Container     Container
Partition                 Size    Type          Name              Owner
------------------------- ------- ------------- ----------------- -----------------
1.0.0.P1                   1.56TB aggregate     /aggr1_XGB17_02/plex0/rg0 XGB17-02
...
1.0.20.P1                  1.56TB spare         Pool0             XGB17-02
1.0.20.P2                 53.88GB spare         Pool0             XGB17-02
1.0.21.P1                  1.56TB spare         Pool0             XGB17-01
1.0.21.P2                 53.88GB spare         Pool0             XGB17-01
...
48 entries were displayed.
&lt;/PRE&gt;
&lt;P&gt;But I have no clue how to do that over the API either.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 08:14:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-a-list-of-spare-disks-even-if-they-are-not-in-the-spare-container/m-p/153919#M37</guid>
      <dc:creator>ilantivienna</dc:creator>
      <dc:date>2020-01-30T08:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a list of spare-disks (even if they are not in the spare-container)</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-a-list-of-spare-disks-even-if-they-are-not-in-the-spare-container/m-p/449309#M621</link>
      <description>&lt;P&gt;Hello, has anyone managed to solve this problem?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 09:04:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Getting-a-list-of-spare-disks-even-if-they-are-not-in-the-spare-container/m-p/449309#M621</guid>
      <dc:creator>Slavomir_K</dc:creator>
      <dc:date>2023-11-29T09:04:22Z</dc:date>
    </item>
  </channel>
</rss>

