メインコンテンツへスキップ

REST APIを使用したクォータレポートに誤ったデータが表示される

Views:
Visibility:
Public
Votes:
0
Category:
oncommand-system-manager
Specialty:
OM
Last Updated:

環境

  • ONTAP 9
  • REST API

問題

REST APIでクォータインデックス値を取得すると誤った値が取得されます。
 
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コマンドの結果は正しいです。
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.