Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is this something that will be added? Or is there another way to get this info using the PowerShell toolkit?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
