ONTAP Rest API Discussions

Powershell rest API get-ncvol not returning all volumes

rust86
883 Views

I have a script that I'm trying to convert from using ZAPI over to Rest.  Most things seem to work so far with the exception of when I use get-ncvol and it only returns a subset of the volumes.  I'm not able to find the pattern here as to how it picks/chooses.  

at first I thought it was a hard limit on how many volumes would get returned but the number returned keeps changing even if I run the exact same command.    always around 100 but sometimes it's 115 and others it's 97 ect..   as far as I can tell this issue is unique to the volume pull.. I get 8000 qtree's when I try and pull all of those without issue.  

 

#update

I just tried against a different netapp cluster and it returned all of the volumes.  so this seems to maybe be an issue with just

this cluster.  #version
NetApp Release 9.14.1P12: Tue Mar 25 23:16:26 UTC 2025

 

##update update 

I just tried a 3rd cluster with over 2000 volumes on it and only 41 returned.  Same version of ontap. 

2 REPLIES 2

chenguanghui
843 Views

hello:

  Is it only in the System Manager that only partial volumes are returned, or do both the CLI and the System Manager return partial volumes?

rust86
811 Views

This seems to only be a powershell issue.. 

accessing via https://<cluster>/sysmgr/v4/storage/volumes and  https://<cluster>/api/storage/volumes

 

seems to both return all the volumes. 

Public