跳转到主内容

REST :指定 order_by 时, /apI/storage/qtree 不会返回所有 qtree

Views:
2
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core<a>2009061608</a><a>进行翻译</a>
Last Updated:

适用场景

  • ONTAP 9.9.1.1 P4
  • RESTful 应用程序程序接口( REST API )
  • qtree

问题描述

通过/api/storage/qtree 查询 qtree 时,如果 ORTA_BY=name 组合使用特殊字符,则只会返回一个条目:
 
Cluster01::> qtree show
...
603 entries were displayed.
 
Cluster01::> qtree show -qtree group¬*
...
71 entries were displayed.
 
$ curl -X GET -u admin -k 'https://Cluster01.netapp.com/api/storage/qtrees?fields=name'
...
"num_records": 603,
 
$ curl -X GET -u admin -k 'https://Cluster01.netapp.com/api/storage/qtrees?fields=name%2Cpath%2Csvm.name%2Cvolume.name%2Csecurity_style%2Cunix_permissions%2Cexport_policy.name&name=group%C2%AC%2A&order_by=name'
...
"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.