forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Jawei, Li <lijiawei5@huawei.com> Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
117 lines
6.7 KiB
HTML
117 lines
6.7 KiB
HTML
<a name="obs_04_0038"></a><a name="obs_04_0038"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining Bucket Versioning Status</h1>
|
|
<div id="body43873924"><div class="section" id="obs_04_0038__section5584184924715"><h4 class="sectiontitle">Functions</h4><p class="msonormal" id="obs_04_0038__p6759720">This operation allows a bucket owner to get the versioning status of the bucket.</p>
|
|
<p class="msonormal" id="obs_04_0038__p60837480">If versioning is not configured for a bucket, no versioning status information will be returned following this operation.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0038__section10666408"><h4 class="sectiontitle">Request Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0038__screen64126951"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
|
|
2
|
|
3
|
|
4</pre></div></td><td class="code"><div class="highlight"><pre><span></span>GET /?versioning HTTP/1.1
|
|
Host: bucketname.obs.region.example.com
|
|
Date: date
|
|
Authorization: authorization
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0038__section28888809"><h4 class="sectiontitle">Request Parameters</h4><p class="msonormal" id="obs_04_0038__p55886561">This request contains no parameter.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0038__section58672692"><h4 class="sectiontitle">Request Headers</h4><p class="msonormal" id="obs_04_0038__p30517570">This request uses common headers. For details, see <a href="obs_04_0007.html#obs_04_0007__table25197309">Table 3</a>.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0038__section58292187"><h4 class="sectiontitle">Request Elements</h4><p class="msonormal" id="obs_04_0038__p34275185">This request involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0038__section54867637"><h4 class="sectiontitle">Response Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0038__screen24826585"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8</pre></div></td><td class="code"><div class="highlight"><pre><span></span>HTTP/1.1 status_code
|
|
Date: date
|
|
Content-Type: type
|
|
Content-Length: length
|
|
|
|
<span class="nt"><VersioningConfiguration</span> <span class="na">xmlns=</span><span class="s">"http://obs.region.example.com/doc/2015-06-30/"</span><span class="nt">></span>
|
|
<span class="nt"><Status></span>status<span class="nt"></Status></span>
|
|
<span class="nt"></VersioningConfiguration></span>
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0038__section24046693"><h4 class="sectiontitle">Response Headers</h4><p class="msonormal" id="obs_04_0038__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>
|
|
</div>
|
|
<div class="section" id="obs_04_0038__section15093651"><h4 class="sectiontitle">Response Elements</h4><p class="msonormal" id="obs_04_0038__p22153854">This response contains elements to specify the bucket versioning status. <a href="#obs_04_0038__table29764434204455">Table 1</a> describes the elements.</p>
|
|
|
|
<div class="tablenoborder"><a name="obs_04_0038__table29764434204455"></a><a name="table29764434204455"></a><table cellpadding="4" cellspacing="0" summary="" id="obs_04_0038__table29764434204455" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response elements</caption><thead align="left"><tr id="obs_04_0038__row31333717"><th align="left" class="cellrowborder" valign="top" width="32.45%" id="mcps1.3.8.3.2.3.1.1"><p id="obs_04_0038__p55003148">Element</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="67.55%" id="mcps1.3.8.3.2.3.1.2"><p id="obs_04_0038__p26069995">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_04_0038__row51856964"><td class="cellrowborder" valign="top" width="32.45%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0038__p39664525">VersioningConfiguration</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.55%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0038__p58709918">Element of versioning status information.</p>
|
|
<p id="obs_04_0038__p58627217">Type: element</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0038__row58004282"><td class="cellrowborder" valign="top" width="32.45%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0038__p726421">Status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.55%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0038__p58840153">Versioning status of the bucket.</p>
|
|
<p id="obs_04_0038__p59799329">Type: enumeration</p>
|
|
<p id="obs_04_0038__p1323052">Value options: Enabled, Suspended</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0038__section1625136"><h4 class="sectiontitle">Error Responses</h4><p class="msonormal" id="obs_04_0038__p23506982">No special error responses are involved. 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_0038__section14482163815396"><h4 class="sectiontitle">Sample Request</h4><div class="codecoloring" codetype="Xml" id="obs_04_0038__screen8484163863919"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6</pre></div></td><td class="code"><div class="highlight"><pre><span></span>GET /?versioning HTTP/1.1
|
|
User-Agent: curl/7.29.0
|
|
Host: examplebucket.obs.region.example.com
|
|
Accept: */*
|
|
Date: WED, 01 Jul 2015 03:15:20 GMT
|
|
Authorization: OBS H4IPJX0TQTHTHEBQQCEC:4N5qQIoluLO9xMY0m+8lIn/UWXM=
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0038__section76081155815"><h4 class="sectiontitle">Sample Response</h4><div class="codecoloring" codetype="Xml" id="obs_04_0038__screen8485113814"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre> 1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
11
|
|
12</pre></div></td><td class="code"><div class="highlight"><pre><span></span>HTTP/1.1 200 OK
|
|
Server: OBS
|
|
x-obs-request-id: BF260000016436BBA4930622B4FC9F17
|
|
x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSQIrNJ5/Ag6EPN8DAwWlPWgBc/xfBnx
|
|
Content-Type: application/xml
|
|
Date: WED, 01 Jul 2015 03:15:20 GMT
|
|
Content-Length: 180
|
|
|
|
<span class="cp"><?xml version="1.0" encoding="UTF-8" standalone="yes"?></span>
|
|
<span class="nt"><VersioningConfiguration</span> <span class="na">xmlns=</span><span class="s">"http://obs.example.com/doc/2015-06-30/"</span><span class="nt">></span>
|
|
<span class="nt"><Status></span>Enabled<span class="nt"></Status></span>
|
|
<span class="nt"></VersioningConfiguration></span>
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_04_0026.html">Advanced Bucket Settings</a></div>
|
|
</div>
|
|
</div>
|
|
|