Skip to main content
NetApp Knowledge Base

Quota report using REST API shows wrong data

Views:
12
Visibility:
Public
Votes:
0
Category:
oncommand-system-manager
Specialty:
OM
Last Updated:
5/12/2025, 12:02:49 AM

Applies to

  • ONTAP 9
  • REST API

Issue

When get quota index values with REST API will get wrong values.
 
curl -X GET "https://XX.XX.XX.XX/api/storage/quota/reports?show_default_records=true&return_records=true&return_timeout=15" -H  "accept: application/json" -H  "authorization: Basic YWRtaW46UEBzc3cwcmQ="
Request URL
https://XX.XX.XX.XX/api/storage/quota/reports?show_default_records=true&return_records=true&return_timeout=15
Server response
Code    Details
200    Response body
Download
{
  "records": [
    {
      "svm": {
        "name": "svm1",
        "uuid": "a698d930-26a7-11f0-8f21-d039eaaf3b60"
      },
      "volume": {
        "name": "vol1",
        "uuid": "ac754fc2-26a7-11f0-8f21-d039eaaf3b60"
      },
      "index": 0
    },
    {
      "svm": {
        "name": "svm1",
        "uuid": "a698d930-26a7-11f0-8f21-d039eaaf3b60"
      },
      "volume": {
        "name": "vol1",
        "uuid": "ac754fc2-26a7-11f0-8f21-d039eaaf3b60"
      },
      "index": 281474976710656
    },
    {
      "svm": {
        "name": "svm1",
        "uuid": "a698d930-26a7-11f0-8f21-d039eaaf3b60"
      },
      "volume": {
        "name": "vol1",
        "uuid": "ac754fc2-26a7-11f0-8f21-d039eaaf3b60"
      },
      "index": 2305843013508661000
    },
    {
      "svm": {
        "name": "svm1",
        "uuid": "a698d930-26a7-11f0-8f21-d039eaaf3b60"
      },
      "volume": {
        "name": "vol1",
        "uuid": "ac754fc2-26a7-11f0-8f21-d039eaaf3b60"
      },
      "index": 3458764513820541000
    },
    {
      "svm": {
        "name": "svm1",
        "uuid": "a698d930-26a7-11f0-8f21-d039eaaf3b60"
      },
      "volume": {
        "name": "vol1",
        "uuid": "ac754fc2-26a7-11f0-8f21-d039eaaf3b60"
      },
      "index": 3459045988797251600
    },
    {
      "svm": {
        "name": "svm1",
        "uuid": "a698d930-26a7-11f0-8f21-d039eaaf3b60"
      },
      "volume": {
        "name": "vol1",
        "uuid": "ac754fc2-26a7-11f0-8f21-d039eaaf3b60"
      },
      "index": 5764607523034235000
    }
  ],
  "num_records": 6
}

 
 
Cli command result is correct.
fas2820-2n-rtp-2::*> quota report -vserver svm1 -fields index ,tree,quota-type,file-limit ,soft-file-limit
vserver volume index tree quota-type file-limit soft-file-limit
------- ------ ----- ---- ---------- ---------- ---------------
svm1    vol1   0          user       -          -
svm1    vol1   281474976710656 qtree1 user -    -
svm1    vol1   2305843013508661248 qtree1 tree - -
svm1    vol1   3458764513820540928  user -      -
svm1    vol1   3459045988797251584 qtree1 user - -
svm1    vol1   5764607523034234880  tree -      -
6 entries were displayed.

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.