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

0

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

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

profile picture
ESPERTO
posta 5 mesi fa44 visualizzazioni
1 Risposta
0

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

profile picture
ESPERTO
con risposta 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande