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

ListObjectsまたはGET CONTAINERを使用してオブジェクトを一覧表示する場合のソート順序は何ですか?

Views:
10
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 も同じ動作に従います。

追加情報

追加情報
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.