Skip to main content
NetApp Knowledge Base

What is the sort order when GET container list up the objects?

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

Applies to

StorageGRID

Answer

The data type of key is text which is UTF8 encoded string so the output of GET container (regardless S3 or Swift) is ordered according to UTF8 encoding.

Example:

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

ひらかな
中文
日本語

Additional Information

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.