forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Jawei, Li <lijiawei5@huawei.com> Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
82 lines
5.6 KiB
HTML
82 lines
5.6 KiB
HTML
<a name="EN-US_TOPIC_0125560404"></a><a name="EN-US_TOPIC_0125560404"></a>
|
|
|
|
<h1 class="topictitle1">GET Bucket location</h1>
|
|
<div id="body22109123"><p id="EN-US_TOPIC_0125560404__p28291536">Only the bucket owner or a user that is granted with the <strong id="EN-US_TOPIC_0125560404__b126599955913">s3:GetBucketLocation</strong> permission in the bucket policy can obtain the bucket location information.</p>
|
|
<div class="section" id="EN-US_TOPIC_0125560404__section29779194"><h4 class="sectiontitle">Request Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560404__screen28992327112432">GET /?location HTTP/1.1
|
|
User-Agent: agent
|
|
Host: bucketname.obs.example.com
|
|
Accept: */*
|
|
Date: date
|
|
Authorization: authorization</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560404__section66686155"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0125560404__p10204359">This request involves no parameters.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560404__section63304483"><h4 class="sectiontitle">Request Headers</h4><p id="EN-US_TOPIC_0125560404__p21246746">This request uses common headers. For details about common request headers, see section <a href="en-us_topic_0125560462.html">Common Request Headers</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560404__section32869435"><h4 class="sectiontitle">Request Elements</h4><p id="EN-US_TOPIC_0125560404__p14793886">This request involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560404__section45329261"><h4 class="sectiontitle">Response Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560404__screen58380274112449">HTTP/1.1 status_code
|
|
Server: Server Name
|
|
x-amz-request-id: request id
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
x-amz-id-2: id
|
|
Content-Type: type
|
|
Date: date
|
|
Content-Length: length
|
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<CreateBucketConfiguration xmlns="http://obs.example.com/doc/2015-06-30/">
|
|
<LocationConstraint>Location</LocationConstraint>
|
|
</CreateBucketConfiguration></pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560404__section5310165"><h4 class="sectiontitle">Response Headers</h4><p id="EN-US_TOPIC_0125560404__p7021343">This response uses common headers. For details about common response headers, see section <a href="en-us_topic_0125560484.html">Common Response Headers</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560404__section47791486"><h4 class="sectiontitle">Response Elements</h4><p id="EN-US_TOPIC_0125560404__p30357190">This response contains an element to describe the bucket Region. <a href="#EN-US_TOPIC_0125560404__table25305148">Table 1</a> describes this element.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0125560404__table25305148"></a><a name="table25305148"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0125560404__table25305148" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response element</caption><thead align="left"><tr id="EN-US_TOPIC_0125560404__row47009632"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.8.3.2.3.1.1"><p id="EN-US_TOPIC_0125560404__p49683833">Element</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.8.3.2.3.1.2"><p id="EN-US_TOPIC_0125560404__p64967535">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0125560404__row27878953"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.1 "><p id="EN-US_TOPIC_0125560404__p43602703">LocationConstraint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.8.3.2.3.1.2 "><p id="EN-US_TOPIC_0125560404__p42158091">Indicates information about a bucket's Region.</p>
|
|
<p id="EN-US_TOPIC_0125560404__p43878499">Type: String</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560404__section27470193"><h4 class="sectiontitle">Error Responses</h4><p id="EN-US_TOPIC_0125560404__p43607134">No special error responses are returned. For details about error responses, see <a href="en-us_topic_0125560440.html#EN-US_TOPIC_0125560440__table30733758">Table 1</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560404__section7915861"><h4 class="sectiontitle">Sample Request</h4><pre class="screen" id="EN-US_TOPIC_0125560404__screen58006817112515">GET /?location HTTP/1.1
|
|
User-Agent: Jakarta Commons-HttpClient/3.1
|
|
Host: bucketname.obs.example.com
|
|
Accept: */*
|
|
Date: Sun, 26 Sep 2010 09:16:00 GMT
|
|
Authorization: AWS 04RZT432N80TGDF2Y2G2:JUtd9kkJFjbKbkP9f6T/tAxozYY= </pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560404__section4133890"><h4 class="sectiontitle">Sample Response</h4><pre class="screen" id="EN-US_TOPIC_0125560404__screen4997252112521">HTTP/1.1 200 OK
|
|
Server: OBS
|
|
x-amz-request-id: 367CB63A2F283044981285492719060
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
x-amz-id-2: MzY3Q0I2M0EyRjI4MzA0NDk4MTI4NTQ5MjcxOTA2MEFBQUFBQUFBYmJiYmJiYmJD
|
|
Content-Type: application/xml
|
|
Date: Sun, 26 Sep 2010 09:18:36 GMT
|
|
Content-Length: 560
|
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<CreateBucketConfiguration xmlns="http://obs.example.com/doc/2015-06-30/">
|
|
<LocationConstraint>example</LocationConstraint>
|
|
</CreateBucketConfiguration></pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0125560493.html">Operations on Buckets</a></div>
|
|
</div>
|
|
</div>
|
|
|