跳转到主内容

按卷名称搜索时、REST API无法返回特定卷的数据

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

适用场景

  • ONTAP 9
  • REST API

问题描述

  • 按卷名称查询REST的卷不会返回任何结果、但按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.