Tüm Ürünler
Search
Belge Merkezi

Object Storage Service:Query the region of a bucket

Son Güncelleme:Oct 01, 2026

Bir paketin bulunduğu bölgeyi sorgular.

Kullanım notları

  • Yalnızca bir paketin sahibi, paketin bulunduğu bölgeyi sorgulayabilir.

  • Bir paketin bulunduğu bölgeyi sorgulamak için oss:GetBucketLocation iznine sahip olmanız gerekir. Daha fazla bilgi için bkz. RAM kullanıcısına özel bir ilke ekleme.

Komut sözdizimi

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


Parametre


Tür


Açıklama


--bucket


dize


Paketin adı.

Not

Daha fazla bilgi için bkz. Komut satırı seçenekleri.

Örnekler

examplebucket paketinin bulunduğu bölgeyi sorgulayın.

ossutil api get-bucket-location --bucket examplebucket

Çıktı, paketin Çin (Hangzhou) bölgesinde bulunduğunu gösterir.

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