Veri çoğaltma kuralının hedef paketinin bulunabileceği bölgeleri sorgular.
İstek yapısı
GET /?replicationLocation HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
Yanıt öğeleri
|
Element |
Type |
Description |
|
ReplicationLocation |
Container |
Hedef paket bölgelerini içeren kapsayıcı. |
|
Location |
String |
Hedef paketin bulunabileceği bölge. Örnek: oss-cn-beijing. Üst düğüm: ReplicationLocation Alt düğümler: yok Not
Birden fazla bölge kullanılabilir durumdaysa yanıt birden fazla Location öğesi içerir. Kullanılabilir bölge yoksa değer null olur. |
|
LocationTransferTypeConstraint |
Container |
TransferType belirtilmiş hedef paket bölgelerini içeren kapsayıcı. |
|
LocationTransferType |
Container |
TransferType bilgisi içeren bir hedef paket bölgesini temsil eden kapsayıcı. |
|
TransferTypes |
Container |
Aktarım türünü içeren kapsayıcı. |
|
Type |
String |
Çoğaltma için kullanılan veri aktarım bağlantısı. Varsayılan değer: internal. Geçerli değerler:
|
Örnekler
Örnek istekler
GET /?replicationLocation HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Thu, 24 Sep 2015 15:39:15 GMT
Authorization: OSS qn6q**************:77Dv****************
-
Örnek yanıtlar
NotYanıt, TransferType yalnızca oss_acc olarak ayarlandığında TransferType öğesini içerir.
HTTP/1.1 200 OK
x-oss-request-id: 534B371674E88A4D8906****
Date: Thu, 24 Sep 2015 15:39:15 GMT
Content-Length: 84
Content-Type: application/xml
Connection: close
Server: AliyunOSS
<?xml version="1.0" ?>
<ReplicationLocation>
<Location>oss-cn-beijing</Location>
<Location>oss-cn-qingdao</Location>
<Location>oss-cn-shenzhen</Location>
<Location>oss-cn-hongkong</Location>
<Location>oss-us-west-1</Location>
<LocationTransferTypeConstraint>
<LocationTransferType>
<Location>oss-cn-hongkong</Location>
<TransferTypes>
<Type>oss_acc</Type>
</TransferTypes>
</LocationTransferType>
<LocationTransferType>
<Location>oss-us-west-1</Location>
<TransferTypes>
<Type>oss_acc</Type>
</TransferTypes>
</LocationTransferType>
</LocationTransferTypeConstraint>
</ReplicationLocation>
OSS SDK'ları
GetBucketReplicationLocation işlemini aşağıdaki OSS SDK'larını kullanarak çağırın:
ossutil
GetBucketReplicationLocation işlemine karşılık gelen ossutil komutu hakkında bilgi almak için bkz. get-bucket-replication-location.
Hata kodları
|
|
|
|
|
|
|
|