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

0

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

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

profile picture
ESPECIALISTA
feita há 5 meses44 visualizações
1 Resposta
0

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

profile picture
ESPECIALISTA
respondido há 5 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas