forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
315 lines
25 KiB
HTML
315 lines
25 KiB
HTML
<a name="obs_04_0023"></a><a name="obs_04_0023"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining Bucket Metadata</h1>
|
|
<div id="body25817766"><div class="section" id="obs_04_0023__section5584184924715"><h4 class="sectiontitle">Functions</h4><p id="obs_04_0023__p17535135114815">This operation queries the metadata of a bucket. To use this operation, you must have the permission to read the bucket.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section18757290"><h4 class="sectiontitle">Request Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0023__screen10864297"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span></pre></div></td><td class="code"><div><pre><span></span>HEAD<span class="w"> </span>/<span class="w"> </span>HTTP/1.1<span class="w"> </span>
|
|
Host:<span class="w"> </span>bucketname.obs.region.example.com
|
|
Date:<span class="w"> </span>date
|
|
Authorization:<span class="w"> </span>authorization
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section34597883"><h4 class="sectiontitle">Request Parameters</h4><p id="obs_04_0023__p42379299">This request contains no parameters.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section42945494"><h4 class="sectiontitle">Request Headers</h4><p id="obs_04_0023__p10171172">This request uses common headers. For details, see <a href="obs_04_0007.html#obs_04_0007__table25197309">Table 3</a>.</p>
|
|
<p id="obs_04_0023__p79345353417">If you want to get CORS configuration information, you must use the headers in <a href="#obs_04_0023__table68761129121">Table 1</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="obs_04_0023__table68761129121"></a><a name="table68761129121"></a><table cellpadding="4" cellspacing="0" summary="" id="obs_04_0023__table68761129121" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request headers for obtaining CORS configuration</caption><thead align="left"><tr id="obs_04_0023__row987631261215"><th align="left" class="cellrowborder" valign="top" width="32.06%" id="mcps1.3.4.4.2.5.1.1"><p id="obs_04_0023__p3876171211125">Header</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.540000000000001%" id="mcps1.3.4.4.2.5.1.2"><p id="obs_04_0023__p10589246128"><strong id="obs_04_0023__b2471203019461">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="9.139999999999999%" id="mcps1.3.4.4.2.5.1.3"><p id="obs_04_0023__p1487661241216"><strong id="obs_04_0023__b132271215610">Mandatory (Yes/No)</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.260000000000005%" id="mcps1.3.4.4.2.5.1.4"><p id="obs_04_0023__p128761124126"><strong id="obs_04_0023__b112313129611">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_04_0023__row287681217128"><td class="cellrowborder" valign="top" width="32.06%" headers="mcps1.3.4.4.2.5.1.1 "><p id="obs_04_0023__p3876712131218">Origin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.540000000000001%" headers="mcps1.3.4.4.2.5.1.2 "><p id="obs_04_0023__p65812242126">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.139999999999999%" headers="mcps1.3.4.4.2.5.1.3 "><p id="obs_04_0023__p1387601211217">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.260000000000005%" headers="mcps1.3.4.4.2.5.1.4 "><p id="obs_04_0023__p4277941144817"><strong id="obs_04_0023__b12609399068383">Explanation</strong>:</p>
|
|
<p id="obs_04_0023__p1265201281011">Origin of the cross-domain request specified by the pre-request. Generally, it is a domain name.</p>
|
|
<p id="obs_04_0023__p1480254915215"><strong id="obs_04_0023__b1940548635101124">Restrictions</strong>:</p>
|
|
<p id="obs_04_0023__p178021497526">You can enter multiple origins, with one separated from another using a line break. Each origin can contain at most one wildcard character (<strong id="obs_04_0023__b33158074101124">*</strong>).</p>
|
|
<p id="obs_04_0023__p4802949145218"><strong id="obs_04_0023__b15802114916521">Value range</strong>:</p>
|
|
<p id="obs_04_0023__p7802749195219">An HTTP-compliant header value</p>
|
|
<p id="obs_04_0023__p7802164905214"><strong id="obs_04_0023__b68021549165213">Default value</strong>:</p>
|
|
<p id="obs_04_0023__p14802449175213">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0023__row087616129124"><td class="cellrowborder" valign="top" width="32.06%" headers="mcps1.3.4.4.2.5.1.1 "><p id="obs_04_0023__p138768123122">Access-Control-Request-Headers</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.540000000000001%" headers="mcps1.3.4.4.2.5.1.2 "><p id="obs_04_0023__p11588248127">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="9.139999999999999%" headers="mcps1.3.4.4.2.5.1.3 "><p id="obs_04_0023__p12876111215121">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.260000000000005%" headers="mcps1.3.4.4.2.5.1.4 "><p id="obs_04_0023__p1381816280232"><strong id="obs_04_0023__b15016960458383">Explanation</strong>:</p>
|
|
<p id="obs_04_0023__p177231931017">HTTP headers in a request</p>
|
|
<p id="obs_04_0023__p188117364533"><strong id="obs_04_0023__b374967088101124">Restrictions</strong>:</p>
|
|
<p id="obs_04_0023__p12811236205312">You can enter multiple allowed headers, with one separated from another using a line break. Each header can contain one wildcard character (*) at most. Spaces, ampersands (&), colons (:), and less-than signs (<) are not allowed.</p>
|
|
<p id="obs_04_0023__p1981636105314"><strong id="obs_04_0023__b19811236175312">Value range</strong>:</p>
|
|
<p id="obs_04_0023__p1481936175318">An HTTP-compliant header value</p>
|
|
<p id="obs_04_0023__p1381136185311"><strong id="obs_04_0023__b278904991101124">Default value</strong>:</p>
|
|
<p id="obs_04_0023__p181163615535">None</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section50965133"><h4 class="sectiontitle">Request Elements</h4><p id="obs_04_0023__p32809987">This request contains no elements.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section56033015"><h4 class="sectiontitle">Response Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0023__screen40363275"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span></pre></div></td><td class="code"><div><pre><span></span>HTTP/1.1<span class="w"> </span>status_code
|
|
x-obs-bucket-location:<span class="w"> </span>region
|
|
Date:<span class="w"> </span>date
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section34535095"><h4 class="sectiontitle">Response Headers</h4><p class="msonormal" id="obs_04_0023__p1512332591013">The response to the request uses common headers. For details, see <a href="obs_04_0013.html#obs_04_0013__d0e686">Table 1</a>.</p>
|
|
<p id="obs_04_0023__p34922606">In addition to the common response headers, the headers listed in <a href="#obs_04_0023__table11771935138">Table 2</a> may be used.</p>
|
|
|
|
<div class="tablenoborder"><a name="obs_04_0023__table11771935138"></a><a name="table11771935138"></a><table cellpadding="4" cellspacing="0" summary="" id="obs_04_0023__table11771935138" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Additional response headers</caption><thead align="left"><tr id="obs_04_0023__row127714320135"><th align="left" class="cellrowborder" valign="top" width="32.72%" id="mcps1.3.7.4.2.4.1.1"><p id="obs_04_0023__p1777133161316">Header</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.34%" id="mcps1.3.7.4.2.4.1.2"><p id="obs_04_0023__p177931414136"><strong id="obs_04_0023__b08362010162915">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="52.94%" id="mcps1.3.7.4.2.4.1.3"><p id="obs_04_0023__p477103181316">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_04_0023__row9772391320"><td class="cellrowborder" valign="top" width="32.72%" headers="mcps1.3.7.4.2.4.1.1 "><p id="obs_04_0023__p7771434136">x-obs-bucket-location</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.34%" headers="mcps1.3.7.4.2.4.1.2 "><p id="obs_04_0023__p18522103271011">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.94%" headers="mcps1.3.7.4.2.4.1.3 "><p id="obs_04_0023__p232414354239"><strong id="obs_04_0023__b18759792058383">Explanation</strong>:</p>
|
|
<p id="obs_04_0023__p167763141310">The region where the bucket resides.</p>
|
|
<p id="obs_04_0023__p1132443517237"><strong id="obs_04_0023__b16324535122315">Restrictions</strong>:</p>
|
|
<p id="obs_04_0023__p145269675419">None</p>
|
|
<p id="obs_04_0023__p932463512233"><strong id="obs_04_0023__b72701570284037">Value range</strong>:</p>
|
|
<p id="obs_04_0023__p59831973542">None</p>
|
|
<p id="obs_04_0023__p183246359239"><strong id="obs_04_0023__b42979863884130">Default value</strong>:</p>
|
|
<p id="obs_04_0023__p181880910543">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0023__row10771341310"><td class="cellrowborder" valign="top" width="32.72%" headers="mcps1.3.7.4.2.4.1.1 "><p id="obs_04_0023__p97718311314">x-obs-storage-class</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.34%" headers="mcps1.3.7.4.2.4.1.2 "><p id="obs_04_0023__p1144917335101">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.94%" headers="mcps1.3.7.4.2.4.1.3 "><p id="obs_04_0023__p17100163810239"><strong id="obs_04_0023__b18636671658383">Explanation</strong>:</p>
|
|
<p id="obs_04_0023__p117717341312">Default storage class of the bucket.</p>
|
|
<p id="obs_04_0023__p6100238182315"><strong id="obs_04_0023__b13100183811231">Restrictions</strong>:</p>
|
|
<p id="obs_04_0023__p31921314548">None</p>
|
|
<p id="obs_04_0023__p3100183872313"><strong id="obs_04_0023__b87475485984037">Value range</strong>:</p>
|
|
<ul id="obs_04_0023__ul130195516289"><li id="obs_04_0023__li1930145513286">STANDARD (Standard storage)</li><li id="obs_04_0023__li1830145552817">WARM (Warm storage)</li><li id="obs_04_0023__li1930119552284">COLD(Cold storage)</li></ul>
|
|
<p id="obs_04_0023__p610013832318"><strong id="obs_04_0023__b192763171484130">Default value</strong>:</p>
|
|
<p id="obs_04_0023__p118412152545">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0023__row127773151310"><td class="cellrowborder" valign="top" width="32.72%" headers="mcps1.3.7.4.2.4.1.1 "><p id="obs_04_0023__p87719316132">x-obs-version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.34%" headers="mcps1.3.7.4.2.4.1.2 "><p id="obs_04_0023__p81389359108">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.94%" headers="mcps1.3.7.4.2.4.1.3 "><p id="obs_04_0023__p14992124011230"><strong id="obs_04_0023__b10594403048383">Explanation</strong>:</p>
|
|
<p id="obs_04_0023__p1996101612135">OBS version of the bucket.</p>
|
|
<p id="obs_04_0023__p2484163745411"><strong id="obs_04_0023__b6484123785410">Restrictions</strong>:</p>
|
|
<p id="obs_04_0023__p548483755417">None</p>
|
|
<p id="obs_04_0023__p8484437165414"><strong id="obs_04_0023__b144842370540">Value range</strong>:</p>
|
|
<ul id="obs_04_0023__ul1348473710544"><li id="obs_04_0023__li1448415374549">3.0: bucket of the latest version</li><li id="obs_04_0023__li9484337155411">--: bucket of an earlier version</li></ul>
|
|
<p id="obs_04_0023__p948414379548"><strong id="obs_04_0023__b5484037125416">Default value</strong>:</p>
|
|
<p id="obs_04_0023__p14484163755415">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0023__row18775301313"><td class="cellrowborder" valign="top" width="32.72%" headers="mcps1.3.7.4.2.4.1.1 "><p id="obs_04_0023__p1277133137">x-obs-fs-file-interface</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.34%" headers="mcps1.3.7.4.2.4.1.2 "><p id="obs_04_0023__p20344163681011">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.94%" headers="mcps1.3.7.4.2.4.1.3 "><p id="obs_04_0023__p23514417237"><strong id="obs_04_0023__b21109619048383">Explanation</strong>:</p>
|
|
<p id="obs_04_0023__p1359212281313">Whether it is a parallel file system</p>
|
|
<p id="obs_04_0023__p1735204422317"><strong id="obs_04_0023__b504163615">Restrictions</strong>:</p>
|
|
<p id="obs_04_0023__p75111695139">If this header field is not carried, the bucket is not a parallel file system.</p>
|
|
<p id="obs_04_0023__p153210263557"><strong id="obs_04_0023__b132192625513">Value range</strong>:</p>
|
|
<p id="obs_04_0023__p43211926205515">The value can be <strong id="obs_04_0023__b1484915031">Enabled</strong> (parallel file system).</p>
|
|
<p id="obs_04_0023__p332117263559"><strong id="obs_04_0023__b132192614555">Default value</strong>:</p>
|
|
<p id="obs_04_0023__p5321926155511">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0023__row87863171316"><td class="cellrowborder" valign="top" width="32.72%" headers="mcps1.3.7.4.2.4.1.1 "><p id="obs_04_0023__p27814301313">Access-Control-Allow-Origin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.34%" headers="mcps1.3.7.4.2.4.1.2 "><p id="obs_04_0023__p10593134316109">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.94%" headers="mcps1.3.7.4.2.4.1.3 "><p id="obs_04_0023__p14822315247"><strong id="obs_04_0023__b20965462448383">Explanation</strong>:</p>
|
|
<p id="obs_04_0023__p1488173531116">Indicates that the origin is included in the response if the origin in the request meets the CORS configuration requirements when CORS is configured for buckets.</p>
|
|
<p id="obs_04_0023__p826551218592"><strong id="obs_04_0023__b1826501255918">Restrictions</strong>:</p>
|
|
<p id="obs_04_0023__p12265112155919">None</p>
|
|
<p id="obs_04_0023__p826591215591"><strong id="obs_04_0023__b42651912205915">Value range</strong>:</p>
|
|
<p id="obs_04_0023__p0265111275916">The value that complies with the CORS</p>
|
|
<p id="obs_04_0023__p162652124597"><strong id="obs_04_0023__b16265171285915">Default value</strong>:</p>
|
|
<p id="obs_04_0023__p1126511121596">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0023__row9781135137"><td class="cellrowborder" valign="top" width="32.72%" headers="mcps1.3.7.4.2.4.1.1 "><p id="obs_04_0023__p47823151318">Access-Control-Allow-Headers</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.34%" headers="mcps1.3.7.4.2.4.1.2 "><p id="obs_04_0023__p7971344171014">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.94%" headers="mcps1.3.7.4.2.4.1.3 "><p id="obs_04_0023__p12470350247"><strong id="obs_04_0023__b448218558383">Explanation</strong>:</p>
|
|
<p id="obs_04_0023__p601528171113">Indicates that the headers are included in the response if headers in the request meet the CORS configuration requirements when CORS is configured for buckets.</p>
|
|
<p id="obs_04_0023__p78771326596"><strong id="obs_04_0023__b1587753214594">Restrictions</strong>:</p>
|
|
<p id="obs_04_0023__p11877832195916">None</p>
|
|
<p id="obs_04_0023__p4877183245918"><strong id="obs_04_0023__b1987713220596">Value range</strong>:</p>
|
|
<p id="obs_04_0023__p178777324597">The value that complies with the CORS</p>
|
|
<p id="obs_04_0023__p1877193219590"><strong id="obs_04_0023__b687753265917">Default value</strong>:</p>
|
|
<p id="obs_04_0023__p1087783225919">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0023__row107819331315"><td class="cellrowborder" valign="top" width="32.72%" headers="mcps1.3.7.4.2.4.1.1 "><p id="obs_04_0023__p14782311134">Access-Control-Max-Age</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.34%" headers="mcps1.3.7.4.2.4.1.2 "><p id="obs_04_0023__p6238161771110">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.94%" headers="mcps1.3.7.4.2.4.1.3 "><p id="obs_04_0023__p20111108152414"><strong id="obs_04_0023__b18690710158383">Explanation</strong>:</p>
|
|
<p id="obs_04_0023__p87814319139">Value of <strong id="obs_04_0023__b816555405">MaxAgeSeconds</strong> in the CORS configuration of the server when CORS is configured for buckets.</p>
|
|
<p id="obs_04_0023__p111824321708"><strong id="obs_04_0023__b5182732103">Restrictions</strong>:</p>
|
|
<p id="obs_04_0023__p41821326011">None</p>
|
|
<p id="obs_04_0023__p9182632204"><strong id="obs_04_0023__b111827321908">Value range</strong>:</p>
|
|
<p id="obs_04_0023__p21821532101">An integer greater than or equal to 0, in seconds</p>
|
|
<p id="obs_04_0023__p5182113217019"><strong id="obs_04_0023__b9182532609">Default value</strong>:</p>
|
|
<p id="obs_04_0023__p4182173217017">3000</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0023__row07803171315"><td class="cellrowborder" valign="top" width="32.72%" headers="mcps1.3.7.4.2.4.1.1 "><p id="obs_04_0023__p177820321318">Access-Control-Allow-Methods</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.34%" headers="mcps1.3.7.4.2.4.1.2 "><p id="obs_04_0023__p15777194815109">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.94%" headers="mcps1.3.7.4.2.4.1.3 "><p id="obs_04_0023__p6792161082412"><strong id="obs_04_0023__b14339165568383">Explanation</strong>:</p>
|
|
<p id="obs_04_0023__p1088121116115">Indicates that methods in the rule are included in the response if <strong id="obs_04_0023__b151409763">Access-Control-Request-Method</strong> in the request meets the CORS configuration requirements when CORS is configured for buckets.</p>
|
|
<p id="obs_04_0023__p854935142720"><strong id="obs_04_0023__b105491854276">Restrictions</strong>:</p>
|
|
<p id="obs_04_0023__p390574817013">None</p>
|
|
<p id="obs_04_0023__p87921410102413"><strong id="obs_04_0023__b118699730384037">Value range</strong>:</p>
|
|
<ul id="obs_04_0023__ul1173542314273"><li id="obs_04_0023__li37359233273">GET</li><li id="obs_04_0023__li187350233276">PUT</li><li id="obs_04_0023__li167351023112717">HEAD</li><li id="obs_04_0023__li19735172310276">POST</li><li id="obs_04_0023__li1473572322713">DELETE</li></ul>
|
|
<p id="obs_04_0023__p679231010246"><strong id="obs_04_0023__b37455149384130">Default value</strong>:</p>
|
|
<p id="obs_04_0023__p102881503013">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0023__row6786313138"><td class="cellrowborder" valign="top" width="32.72%" headers="mcps1.3.7.4.2.4.1.1 "><p id="obs_04_0023__p177819351317">Access-Control-Expose-Headers</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.34%" headers="mcps1.3.7.4.2.4.1.2 "><p id="obs_04_0023__p133351506106">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.94%" headers="mcps1.3.7.4.2.4.1.3 "><p id="obs_04_0023__p62035417"><strong id="obs_04_0023__b1186534753">Explanation</strong>:</p>
|
|
<p id="obs_04_0023__p6203511110"><strong id="obs_04_0023__b7252194111485">ExposeHeader</strong> in the CORS rules of the bucket. It specifies additional headers allowed in the response by a CORS rule, which are used to provide extra information to clients. By default, a browser can access only headers <strong id="obs_04_0023__b1061971995010">Content-Length</strong> and <strong id="obs_04_0023__b462014191506">Content-Type</strong>. If the browser needs to access other headers, you need to configure them in this parameter.</p>
|
|
<p id="obs_04_0023__p1120105915"><strong id="obs_04_0023__b19201051714">Restrictions</strong>:</p>
|
|
<p id="obs_04_0023__p7201251412">Spaces, wildcard characters (*), ampersands (&), colons (:), less-than signs (<), and full-width characters are not allowed.</p>
|
|
<p id="obs_04_0023__p2020145617"><strong id="obs_04_0023__b2201351118">Value range</strong>:</p>
|
|
<p id="obs_04_0023__p8206510113">None</p>
|
|
<p id="obs_04_0023__p8201352117"><strong id="obs_04_0023__b1140532728">Default value</strong>:</p>
|
|
<p id="obs_04_0023__p1820105216">None</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section42380405"><h4 class="sectiontitle">Response Elements</h4><p id="obs_04_0023__p43090167">This response contains no elements.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section45879330"><h4 class="sectiontitle">Error Responses</h4><p id="obs_04_0023__p642611">No special error responses are returned. For details about error responses, see <a href="obs_04_0115.html#obs_04_0115__d0e843">Table 2</a>.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section14482163815396"><h4 class="sectiontitle">Sample Request: Getting CORS Configuration (with No Headers Specified)</h4><div class="codecoloring" codetype="Xml" id="obs_04_0023__screen8484163863919"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span>
|
|
<span class="normal">6</span></pre></div></td><td class="code"><div><pre><span></span>HEAD<span class="w"> </span>/<span class="w"> </span>HTTP/1.1
|
|
User-Agent:<span class="w"> </span>curl/7.29.0
|
|
Host:<span class="w"> </span>examplebucket.obs.region.example.com
|
|
Accept:<span class="w"> </span>*/*
|
|
Date:<span class="w"> </span>WED,<span class="w"> </span>01<span class="w"> </span>Jul<span class="w"> </span>2015<span class="w"> </span>02:30:25<span class="w"> </span>GMT
|
|
Authorization:<span class="w"> </span>OBS<span class="w"> </span>H4IPJX0TQTHTHEBQQCEC:niCQCuGIZpETKIyx1datxHZyYlk=
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section76081155815"><h4 class="sectiontitle">Sample Response: Getting CORS Configuration (with No Headers Specified)</h4><div class="codecoloring" codetype="Xml" id="obs_04_0023__screen8485113814"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
|
|
<span class="normal"> 2</span>
|
|
<span class="normal"> 3</span>
|
|
<span class="normal"> 4</span>
|
|
<span class="normal"> 5</span>
|
|
<span class="normal"> 6</span>
|
|
<span class="normal"> 7</span>
|
|
<span class="normal"> 8</span>
|
|
<span class="normal"> 9</span>
|
|
<span class="normal">10</span></pre></div></td><td class="code"><div><pre><span></span>HTTP/1.1<span class="w"> </span>200<span class="w"> </span>OK
|
|
Server:<span class="w"> </span>OBS
|
|
x-obs-request-id:<span class="w"> </span>BF260000016439C734E0788404623FA8
|
|
Content-Type:<span class="w"> </span>application/xml
|
|
x-obs-storage-class:<span class="w"> </span>STANDARD
|
|
x-obs-id-2:<span class="w"> </span>32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSxwLpq9Hzf3OnaXr+pI/OPLKdrtiQAF
|
|
Date:<span class="w"> </span>WED,<span class="w"> </span>01<span class="w"> </span>Jul<span class="w"> </span>2015<span class="w"> </span>02:30:25<span class="w"> </span>GMT
|
|
x-obs-bucket-location:<span class="w"> </span>region
|
|
x-obs-version:<span class="w"> </span>3.0
|
|
Content-Length:<span class="w"> </span>0
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section061751194812"><h4 class="sectiontitle">Sample Request: Getting Bucket Metadata and CORS Configuration</h4><div class="codecoloring" codetype="Xml" id="obs_04_0023__screen1668910265501"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span>
|
|
<span class="normal">6</span>
|
|
<span class="normal">7</span>
|
|
<span class="normal">8</span></pre></div></td><td class="code"><div><pre><span></span>HEAD<span class="w"> </span>/<span class="w"> </span>HTTP/1.1
|
|
User-Agent:<span class="w"> </span>curl/7.29.0
|
|
Host:<span class="w"> </span>examplebucket.obs.region.example.com
|
|
Accept:<span class="w"> </span>*/*
|
|
Date:<span class="w"> </span>WED,<span class="w"> </span>01<span class="w"> </span>Jul<span class="w"> </span>2015<span class="w"> </span>02:30:25<span class="w"> </span>GMT
|
|
Authorization:<span class="w"> </span>OBS<span class="w"> </span>H4IPJX0TQTHTHEBQQCEC:niCQCuGIZpETKIyx1datxHZyYlk=
|
|
Origin:www.example.com
|
|
Access-Control-Request-Headers:AllowedHeader_1
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0023__section1985922615524"><h4 class="sectiontitle">Sample Response: Getting Bucket Metadata and CORS Configuration</h4><div class="codecoloring" codetype="Xml" id="obs_04_0023__screen1234312101531"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
|
|
<span class="normal"> 2</span>
|
|
<span class="normal"> 3</span>
|
|
<span class="normal"> 4</span>
|
|
<span class="normal"> 5</span>
|
|
<span class="normal"> 6</span>
|
|
<span class="normal"> 7</span>
|
|
<span class="normal"> 8</span>
|
|
<span class="normal"> 9</span>
|
|
<span class="normal">10</span>
|
|
<span class="normal">11</span>
|
|
<span class="normal">12</span>
|
|
<span class="normal">13</span>
|
|
<span class="normal">14</span>
|
|
<span class="normal">15</span></pre></div></td><td class="code"><div><pre><span></span>HTTP/1.1<span class="w"> </span>200<span class="w"> </span>OK
|
|
Server:<span class="w"> </span>OBS
|
|
x-obs-request-id:<span class="w"> </span>BF260000016439C734E0788404623FA8
|
|
Content-Type:<span class="w"> </span>application/xml
|
|
x-obs-storage-class:<span class="w"> </span>STANDARD
|
|
x-obs-id-2:<span class="w"> </span>32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSxwLpq9Hzf3OnaXr+pI/OPLKdrtiQAF
|
|
Date:<span class="w"> </span>WED,<span class="w"> </span>01<span class="w"> </span>Jul<span class="w"> </span>2015<span class="w"> </span>02:30:25<span class="w"> </span>GMT
|
|
x-obs-bucket-location:<span class="w"> </span>region
|
|
Access-Control-Allow-Origin:<span class="w"> </span>www.example.com<span class="w"> </span>
|
|
Access-Control-Allow-Methods:<span class="w"> </span>POST,GET,HEAD,PUT<span class="w"> </span>
|
|
Access-Control-Allow-Headers:<span class="w"> </span>AllowedHeader_1<span class="w"> </span>
|
|
Access-Control-Max-Age:<span class="w"> </span>100<span class="w"> </span>
|
|
Access-Control-Expose-Headers:<span class="w"> </span>ExposeHeader_1<span class="w"> </span>
|
|
x-obs-version:<span class="w"> </span>3.0
|
|
Content-Length:<span class="w"> </span>0
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_04_0019.html">Operations on Buckets</a></div>
|
|
</div>
|
|
</div>
|
|
|