CONTAP-244563: REST GET /api/storage/volumes?name= returning incorrect data for space.logical_space.used
Issue
The GET call using the volume name is returning an incorrect space.logical_space.used value compared to the logical-used-by-afs field in the volume show command.
cluster1::> set -units b
cluster1::> vol show test3 -fields logical-used-by-afs
vserver volume logical-used-by-afs
------------- ------ -------------------
svm1_cluster1 test3 7552262144B
{
"records": [
{
"uuid": "fcec62fc-175f-11ef-b5ef-0050568139e2",
"name": "test3",
"space": {
"logical_space": {
"used_by_afs": 245760
}
},
"_links": {
"self": {
"href": "/api/storage/volumes/fcec62fc-175f-11ef-b5ef-0050568139e2"
}
}
}
],
"num_records": 1,
"_links": {
"self": {
"href": "/api/storage/volumes?name=test3&fields=space.logical_space.used_by_afs"
}
}
}