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

REST APIでボリューム名で検索すると特定のボリュームのデータが返されない

Views:
11
Visibility:
Public
Votes:
0
Category:
not set
Specialty:
core
Last Updated:

環境

  • ONTAP 9
  • REST API

問題

  • 残りのボリュームをボリューム名で照会しても結果は返されませんが、UUIDで同じボリュームを照会すると結果が返されます。

 

curl -X GET "https://1.2.3.4/api/storage/volumes?is_constituent=false&name=vol1&return_records=true&return_timeout=15" -H "accept: application/json" -H "authorization: Basic AAWWYYTT123456789="
 

{
 "records": [ ],
 "num_records": 0
}

 

curl -X GET "https://1.2.3.4/api/storage/volumes?is_constituent=false&uuid=123456789-1234-1234-1234-123456789123&return_records=true&return_timeout=15" -H "accept: application/json" -H "authorization: Basic AAWWYYTT123456789="

{
 "records": [
    {
     "uuid": "123456789-1234-1234-1234-123456789123",
     "name": "vol1"
    }
  ],
 "num_records": 1
}

 

 

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.