如何通过REST API获取单个区域内的所有存储桶

0

【以下的问题经过翻译处理】 Get bucket Rest API提供的是所有区域存储桶的响应。我也尝试了所有可能的方法,比如我提供区域作为query或标头,但都不行。 最后,我只能在for循环中检查Bucket位置并进行过滤。但这需要很长时间。

我只想要单个区域内的存储桶,是否有其他方法可以通过Rest API仅获得该单个区域内的存储桶?

profile picture
EXPERT
asked 5 months ago44 views
1 Answer
0

【以下的回答经过翻译处理】 目前(2023年1月),从特定的区域列出存储桶只能通过为每个存储桶调用get-bucket-location来实现,就像你已经在做的那样。

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions