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_0053"></a><a name="obs_04_0053"></a>
|
|
|
|
<h1 class="topictitle1">Querying Bucket Storage Quota</h1>
|
|
<div id="body7940910"><div class="section" id="obs_04_0053__section5584184924715"><h4 class="sectiontitle">Functions</h4><p class="msonormal" id="obs_04_0053__p12427570">Only the bucket owner can query information about the bucket storage quota. However, an inactive owner is not allowed to get the bucket quota. The bucket storage quota is measured by byte. <strong id="obs_04_0053__b193051652122919">0</strong> indicates that no upper limit is set.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0053__section44739271"><h4 class="sectiontitle">Request Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0053__screen39233970"><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 /?quota 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_0053__section263"><h4 class="sectiontitle">Request Parameters</h4><p class="msonormal" id="obs_04_0053__p47928729">This request contains no parameter.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0053__section2369"><h4 class="sectiontitle">Request Headers</h4><p class="msonormal" id="obs_04_0053__p57021840">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_0053__section21328"><h4 class="sectiontitle">Request Elements</h4><p class="msonormal" id="obs_04_0053__p28534830">This request contains no elements.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0053__section191956"><h4 class="sectiontitle">Response Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0053__screen29619869"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9</pre></div></td><td class="code"><div class="highlight"><pre><span></span>HTTP/1.1 status_code
|
|
Date: date
|
|
Content-Type: application/xml
|
|
Content-Length: length
|
|
|
|
<span class="cp"><?xml version="1.0" encoding="UTF-8" standalone="yes"?></span>
|
|
<span class="nt"><Quota</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"><StorageQuota></span>quota<span class="nt"></StorageQuota></span>
|
|
<span class="nt"></Quota></span>
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0053__section1727606"><h4 class="sectiontitle">Response Headers</h4><p class="msonormal" id="obs_04_0053__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_0053__section15548455"><h4 class="sectiontitle">Response Elements</h4><p class="msonormal" id="obs_04_0053__p65060221">This response contains elements of information about the bucket quota. <a href="#obs_04_0053__d0e8370">Table 1</a> describes the elements.</p>
|
|
|
|
<div class="tablenoborder"><a name="obs_04_0053__d0e8370"></a><a name="d0e8370"></a><table cellpadding="4" cellspacing="0" summary="" id="obs_04_0053__d0e8370" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response elements</caption><thead align="left"><tr id="obs_04_0053__row7433603"><th align="left" class="cellrowborder" valign="top" width="39.39393939393939%" id="mcps1.3.8.3.2.3.1.1"><p id="obs_04_0053__p65251010">Element</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60.60606060606061%" id="mcps1.3.8.3.2.3.1.2"><p id="obs_04_0053__p54911228">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_04_0053__row33402770"><td class="cellrowborder" valign="top" width="39.39393939393939%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0053__p21269859">Quota</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.60606060606061%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0053__p45137020">Bucket storage quota. This element contains the StorageQuota element.</p>
|
|
<p id="obs_04_0053__p3580004">Type: XML</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0053__row32220038"><td class="cellrowborder" valign="top" width="39.39393939393939%" headers="mcps1.3.8.3.2.3.1.1 "><p id="obs_04_0053__p59686313">StorageQuota</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.60606060606061%" headers="mcps1.3.8.3.2.3.1.2 "><p id="obs_04_0053__p2753164">Bucket storage quota quantity. The unit is byte. </p>
|
|
<p id="obs_04_0053__p24778477">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0053__section5718368"><h4 class="sectiontitle">Error Responses</h4><p class="msonormal" id="obs_04_0053__p60899603">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_0053__section14819157124617"><h4 class="sectiontitle">Sample Request</h4><div class="codecoloring" codetype="Xml" id="obs_04_0053__screen42901510155312"><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 /?quota HTTP/1.1
|
|
User-Agent: curl/7.29.0
|
|
Host: examplebucket.obs.region.example.com
|
|
Accept: */*
|
|
Date: WED, 01 Jul 2015 03:27:45 GMT
|
|
Authorization: OBS H4IPJX0TQTHTHEBQQCEC:8m4bW1gFCNeXQlfu45uO2gpo7l8=
|
|
</pre></div>
|
|
</td></tr></table></div>
|
|
</div>
|
|
<div class="section" id="obs_04_0053__section13755536443"><h4 class="sectiontitle">Sample Response</h4><div class="codecoloring" codetype="Xml" id="obs_04_0053__screen18548202314552"><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: BF260000016436B55D8DED9AE26C4D18
|
|
x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSs2Q5vz5AfpAJ/CMNgCfo2hmDowp7M9
|
|
Content-Type: application/xml
|
|
Date: WED, 01 Jul 2015 03:27:45 GMT
|
|
Content-Length: 150
|
|
|
|
<span class="cp"><?xml version="1.0" encoding="UTF-8" standalone="yes"?></span>
|
|
<span class="nt"><Quota</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"><StorageQuota></span>0<span class="nt"></StorageQuota></span>
|
|
<span class="nt"></Quota></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>
|
|
|