Todos os produtos
Search
Central de documentação

Object Storage Service:Consultar a região de um bucket

Última atualização: Jul 03, 2026

Consulta a região de um bucket.

Observações de uso

Sintaxe do comando

 ossutil api get-bucket-location --bucket value [flags]

Parâmetro

Tipo

Descrição

--bucket

string

Nome do bucket.

Nota

Para mais informações, consulte Opções de linha de comando.

Exemplos

Consulte a região do bucket examplebucket.

ossutil api get-bucket-location --bucket examplebucket

A saída indica que o bucket está na região China (Hangzhou).

<?xml version="1.0" encoding="UTF-8"?>
<LocationConstraint>oss-cn-hangzhou</LocationConstraint>