When I run 'quota report' command from ONTAP CLI, I can see the quota report with no issues.
But when I use REST API, it does not return anything:
curl -X GET -k "https://cluster/api/storage/quota/reports?volume.name=TEST&fields=type%2Cspace%2Cusers%2Cgroup%2Cqtree&return_timeout=120"
Enter host password for user 'test':
{
"records": [
],
"num_records": 0,
"_links": {
"self": {
"href": "/api/storage/quota/reports?volume.name=TEST&fields=type%2Cspace%2Cusers%2Cgroup%2Cqtree&return_timeout=120"
},
"next": {
"href": "/api/storage/quota/reports?start.svm.uuid..."
}
}
}
For other volumes, this call was also returning empty result set but when I increased the timeout value to 120, issue was resolved. Looks like this particular volume (and many others on this specific cluster) is taking much longer than 120 seconds to return something. However, ONTAP does not allow setting timeout to more than 120 seconds.
How should I resolve this?
Thanks