REST APIを使用したクォータレポートに誤ったデータが表示される
環境
- 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.