<?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: Get Volumes Rest API not returning all volumes in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Get-Volumes-Rest-API-not-returning-all-volumes/m-p/170943#M247</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks but it still did not work even when I used "&lt;SPAN&gt;VG*_*&lt;/SPAN&gt;". Also, we are calling "&lt;A href="https://clustername/api/storage/volumes&amp;quot;" target="_blank"&gt;https://clustername/api/storage/volumes"&lt;/A&gt;&amp;nbsp;in our scripts to get output for all volumes at once. We are trying to understand why that specific volume is not showing up there.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 20:18:11 GMT</pubDate>
    <dc:creator>ns-api-guru</dc:creator>
    <dc:date>2021-10-18T20:18:11Z</dc:date>
    <item>
      <title>Get Volumes Rest API not returning all volumes</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Get-Volumes-Rest-API-not-returning-all-volumes/m-p/170895#M244</link>
      <description>&lt;P&gt;We are facing one strange issue. For some reason, we are not getting volume’s details through REST API.&lt;/P&gt;&lt;P&gt;For example, we have these 2 volumes in the cluster running 9.7P10:&lt;/P&gt;&lt;P&gt;us01cmsgrid::&amp;gt; vol show VG_ARCHIVE*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vserver&amp;nbsp;&amp;nbsp; Volume&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aggregate&amp;nbsp;&amp;nbsp;&amp;nbsp; State&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp; Available Used%&lt;/P&gt;&lt;P&gt;--------- ------------ ------------ ---------- ---- ---------- ---------- -----&lt;/P&gt;&lt;P&gt;us01cmsgridvs1 VG_ARCHIVE -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; online&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RW&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100TB&amp;nbsp;&amp;nbsp;&amp;nbsp; 15.74TB&amp;nbsp;&amp;nbsp; 84%&lt;/P&gt;&lt;P&gt;us01cmsgridvs1 VG_ARCHIVE2 -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; online&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RW&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100TB&amp;nbsp;&amp;nbsp;&amp;nbsp; 69.79TB&amp;nbsp;&amp;nbsp; 30%&lt;/P&gt;&lt;P&gt;2 entries were displayed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are set up identically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when we make API call, only VG_ARCHIVE2 is showing up:&lt;/P&gt;&lt;P&gt;$ curl --location --request GET '&lt;A href="https://us01cmsgrid/api/storage/volumes" target="_blank"&gt;https://us01cmsgrid/api/storage/volumes&lt;/A&gt;' -k | grep -i "VG_ARCHIVE"&lt;/P&gt;&lt;P&gt;"name": "VG_ARCHIVE2",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ curl --location --request GET '&lt;A href="https://us01cmsgrid/api/storage/volumes?name=VG*" target="_blank"&gt;https://us01cmsgrid/api/storage/volumes?name=VG*&lt;/A&gt;' -k&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "records": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "uuid": "63f910f4-e7db-11ea-badf-d039ea14ccfe",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "VG_ARCHIVE2",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "_links": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "self": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "href": "/api/storage/volumes/63f910f4-e7db-11ea-badf-d039ea14ccfe"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; ],&lt;/P&gt;&lt;P&gt;&amp;nbsp; "num_records": 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "_links": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "self": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "href": "/api/storage/volumes?name=VG*"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:11:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Get-Volumes-Rest-API-not-returning-all-volumes/m-p/170895#M244</guid>
      <dc:creator>kramar</dc:creator>
      <dc:date>2025-06-04T10:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get Volumes Rest API not returning all volumes</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Get-Volumes-Rest-API-not-returning-all-volumes/m-p/170920#M246</link>
      <description>&lt;P&gt;It might be having problems with the underscore "_" in the volume name. I did a few tests and depending on where I add the "*" I get different results - though it's either no volumes or all of them.&amp;nbsp; Why you would get only 1 volume is still a bit odd.&amp;nbsp; I found that if I add the wildcard on both sides of the underscore it works (ie. VG*_*).&amp;nbsp; &amp;nbsp;Still - you'd think it would 'just work'&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&amp;nbsp; The NetappPub Slack channel (netapppub.slack.com #api) would be a good place to ask about this one.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 21:44:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Get-Volumes-Rest-API-not-returning-all-volumes/m-p/170920#M246</guid>
      <dc:creator>JohnChampion</dc:creator>
      <dc:date>2021-10-15T21:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get Volumes Rest API not returning all volumes</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Get-Volumes-Rest-API-not-returning-all-volumes/m-p/170943#M247</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks but it still did not work even when I used "&lt;SPAN&gt;VG*_*&lt;/SPAN&gt;". Also, we are calling "&lt;A href="https://clustername/api/storage/volumes&amp;quot;" target="_blank"&gt;https://clustername/api/storage/volumes"&lt;/A&gt;&amp;nbsp;in our scripts to get output for all volumes at once. We are trying to understand why that specific volume is not showing up there.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 20:18:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Get-Volumes-Rest-API-not-returning-all-volumes/m-p/170943#M247</guid>
      <dc:creator>ns-api-guru</dc:creator>
      <dc:date>2021-10-18T20:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get Volumes Rest API not returning all volumes</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Get-Volumes-Rest-API-not-returning-all-volumes/m-p/170945#M248</link>
      <description>&lt;P&gt;Do you get the same result when using Swagger?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I've posted the question in the slack api channel.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 22:01:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/Get-Volumes-Rest-API-not-returning-all-volumes/m-p/170945#M248</guid>
      <dc:creator>JohnChampion</dc:creator>
      <dc:date>2021-10-18T22:01:53Z</dc:date>
    </item>
  </channel>
</rss>

