ONTAP Rest API Discussions

PowerShell Toolkit 9.13.1 Testing

goodmanr0732
1,219 Views

I'm testing the new PowerShell toolkit which is using the REST API and am not seeing fields getting returned that I would expect should be. One example is the Get-NcQuota cmdlet. It does not return the QuotaTarget which makes this cmdlet pointless without that as you can't tell who the quota is for. 

 

PS C:\Users\Administrator.DEMO> Get-NcQuota -Vserver $SVM

QuotaType QuotaTarget Volume Qtree DiskLimit FileLimit Vserver
--------- ----------- ------ ----- --------- --------- -------
user svm1_legal 2097152 svm1
user svm1_legal 5242880 svm1
user svm1_legal 1048576 svm1




PS C:\Users\Administrator.DEMO> Get-NcQuota -Vserver $SVM -ZapiCall

QuotaType QuotaTarget Volume Qtree DiskLimit FileLimit Vserver
--------- ----------- ------ ----- --------- --------- -------
user * svm1_legal 1048576 - svm1
user DEMO\lilgg svm1_legal 5242880 - svm1
user DEMO\ryang svm1_legal 2097152 - svm1

 

3 REPLIES 3

AmmarMhowwala
984 Views

Thank you for bringing this to our attention, as per the ZAPI to REST mapping documentation the quota-target property is 'No Rest Equivalent."  

quota-target

No REST Equivalent

The REST API uses one of the three separate fields instead of quota-target: users/group/qtree

 

goodmanr0732
946 Views

Is this something that will be added? Or is there another way to get this info using the PowerShell toolkit?

silvassy
725 Views

I was looking at reporting for get-ncquota and was getting bad or no results.  the rest API default behavior needs some real work, as even from the OP's output the results miss the needed info to accurately show quota rules.  my output is even worse as the command bombs out after 2-3 quota rules returned.

Public