Openstack object list 一次最多有一万个 object

When you request a list of containers or objects, Object Storage returns a maximum of 10,000 names for each request. To get subsequent names, you must make another request with the marker parameter. Set the marker parameter to the name of the last item returned in the previous list. You must URL-encode the marker value before you send the HTTP request. Object Storage returns a maximum of 10,000 names starting after the last item returned.

curl -i $publicURL/?marker=oranges -X GET -H "
 X-Auth-Token: $token"

注意 marker 是写在 URL 一起,不是 -H 参数。

https://docs.openstack.org/swift/latest/api/pagination.html

原文地址:https://www.cnblogs.com/liujx2019/p/10489150.html