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>
89 lines
6.1 KiB
HTML
89 lines
6.1 KiB
HTML
<a name="EN-US_TOPIC_0125560383"></a><a name="EN-US_TOPIC_0125560383"></a>
|
|
|
|
<h1 class="topictitle1">GET Bucket quota</h1>
|
|
<div id="body28905265"><p class="msonormal" id="EN-US_TOPIC_0125560383__p1164282814378">Using this operation, an active bucket owner can obtain its quota.</p>
|
|
<p class="msonormal" id="EN-US_TOPIC_0125560383__p64570945">A bucket quota is expressed in bytes. If the quota is set to <strong id="EN-US_TOPIC_0125560383__b477104945220">0</strong>, the quota has no upper limit.</p>
|
|
<div class="section" id="EN-US_TOPIC_0125560383__section27998217"><h4 class="sectiontitle">Request Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560383__screen3154280112820">GET /?quota 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_0125560383__section50657369"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0125560383__p29121115">This request involves no parameters.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560383__section53263142"><h4 class="sectiontitle">Request Headers</h4><p id="EN-US_TOPIC_0125560383__p10000077">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_0125560383__section9606233"><h4 class="sectiontitle">Request Elements</h4><p id="EN-US_TOPIC_0125560383__p45149592">This request involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560383__section12985168"><h4 class="sectiontitle">Response Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560383__screen24982589112836">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"?>
|
|
<Quota xmlns="http://obs.example.com/doc/2015-06-30/">
|
|
<StorageQuota>value</StorageQuota>
|
|
</Quota></pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560383__section49757651"><h4 class="sectiontitle">Response Headers</h4><p id="EN-US_TOPIC_0125560383__p55413673">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_0125560383__section45165677"><h4 class="sectiontitle">Response Elements</h4><p id="EN-US_TOPIC_0125560383__p40397711">This response contains elements to provide details about a bucket quota. <a href="#EN-US_TOPIC_0125560383__table40100219">Table 1</a> describes the elements.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0125560383__table40100219"></a><a name="table40100219"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0125560383__table40100219" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Response elements</caption><thead align="left"><tr id="EN-US_TOPIC_0125560383__row27660031"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.9.3.2.3.1.1"><p id="EN-US_TOPIC_0125560383__p25870061">Element</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.9.3.2.3.1.2"><p id="EN-US_TOPIC_0125560383__p15100171">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0125560383__row15154305"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.9.3.2.3.1.1 "><p id="EN-US_TOPIC_0125560383__p19539192">Quota</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.9.3.2.3.1.2 "><p id="EN-US_TOPIC_0125560383__p39170711">Indicates bucket quota details. This element contains the <strong id="EN-US_TOPIC_0125560383__b16992086">StorageQuota</strong> element.</p>
|
|
<p id="EN-US_TOPIC_0125560383__p18711047">Type: XML</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0125560383__row34181701"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.9.3.2.3.1.1 "><p id="EN-US_TOPIC_0125560383__p17254385">StorageQuota</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.9.3.2.3.1.2 "><p id="EN-US_TOPIC_0125560383__p55427905">Indicates the bucket quota value.</p>
|
|
<p id="EN-US_TOPIC_0125560383__p29089098">Type: String</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560383__section3837911"><h4 class="sectiontitle">Error Responses</h4><p id="EN-US_TOPIC_0125560383__p66660590">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_0125560383__section23778621"><h4 class="sectiontitle">Sample Request</h4><pre class="screen" id="EN-US_TOPIC_0125560383__screen28937974112853">GET /?quota HTTP/1.1
|
|
User-Agent: Jakarta Commons-HttpClient/3.1
|
|
Host: bucketname.obs.example.com
|
|
Accept-Encoding: gzip,deflate
|
|
Date: Thu, 22 Nov 2012 09:37:38 +0000
|
|
Authorization: AWS 08350B985315591007AD:O4jTB/FzS3gXDouwRZgz1wiE2PE= </pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560383__section12681003"><h4 class="sectiontitle">Sample Response</h4><pre class="screen" id="EN-US_TOPIC_0125560383__screen50644348112859">HTTP/1.1 200 OK
|
|
Server: OBS
|
|
x-amz-request-id: 90E2BA0F80EC0000013B277AD1970001
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
x-amz-id-2: ReSvzDszzWqXunSRGkNv+aIjXO56ekT48XVAOcyjIEU6zufqkoqJRO6z1VPLvDcm
|
|
Content-Type: application/xml
|
|
Date: Thu, 22 Nov 2012 09:37:38 GMT
|
|
Content-Length: 148
|
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<Quota xmlns="http://obs.example.com/doc/2015-06-30/">
|
|
<StorageQuota>8</StorageQuota>
|
|
</Quota></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>
|
|
|