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,