跳转到主内容

使用 ListObjects 或 GET CONTAINER 列出对象时的排序顺序是什么?

Views:
35
Visibility:
Public
Votes:
0
Category:
storagegrid-webscale
Specialty:
sgrid
Last Updated:

适用于

StorageGRID

问题解答

  • 键的数据类型是 UTF8 编码字符串的文本,因此 GET 容器的输出(无论是 S3 还是 Swift)都根据 UTF8 编码进行排序。
示例

ndyz@ubuntu-1:~$ curl -X GET -H 'X-Auth-Token:SGRD_fa2b7e8b2a4b4dea9379bc070bdd1875' https://10.128.231.111:18083/v1/79910314025223200905/container1 -k
*0object2
.o
.object2
0object2
1001
1002
1003
1004
1098
1099
1100
=object2
o
o bject2
o*bject2
o,bject2
o-bject2
o.bject2
o0bject2
o1bject2
o=bject2
o@bject2
o^bject2
o_bject2
ob@ject2
object2
testfile
testfile2

ひらかな
中文
日本語

  • 相同的顺序适用于 S3 ListObjects 命令的输出。
  •  AWS S3 API 不支持在 ListObjects 响应中指定排序顺序,StorageGRID 遵循相同的行为。

追加信息

additionalInformation_text
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.