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>
87 lines
5.9 KiB
HTML
87 lines
5.9 KiB
HTML
<a name="EN-US_TOPIC_0125560329"></a><a name="EN-US_TOPIC_0125560329"></a>
|
|
|
|
<h1 class="topictitle1">PUT Bucket quota</h1>
|
|
<div id="body43544058"><p id="EN-US_TOPIC_0125560329__p29864114369">Using this operation, an active bucket owner can modify the bucket quota.</p>
|
|
<p class="msonormal" id="EN-US_TOPIC_0125560329__p48112991">A bucket quota must be a non-negative integer expressed in bytes. The maximum allowed quota is (2^63 - 1) bytes. If a bucket quota is set to <strong id="EN-US_TOPIC_0125560329__b1598516424812">0</strong>, the quota has no upper limit.</p>
|
|
<div class="section" id="EN-US_TOPIC_0125560329__section35542142"><h4 class="sectiontitle">Request Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560329__screen6032070411270">PUT /?quota HTTP/1.1
|
|
User-Agent: agent
|
|
Host: bucketname.obs.example.com
|
|
Accept: */*
|
|
Date: date
|
|
Authorization: authorization
|
|
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_0125560329__section51443830"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0125560329__p45813296">This request involves no parameters.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560329__section60341288"><h4 class="sectiontitle">Request Headers</h4><p id="EN-US_TOPIC_0125560329__p19889495">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_0125560329__section6200687"><h4 class="sectiontitle">Request Elements</h4><p id="EN-US_TOPIC_0125560329__p35347654">This request contains one element to specify the bucket quota, as described in <a href="#EN-US_TOPIC_0125560329__table63485364">Table 1</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0125560329__table63485364"></a><a name="table63485364"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0125560329__table63485364" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request element</caption><thead align="left"><tr id="EN-US_TOPIC_0125560329__row23836773"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.6.3.2.4.1.1"><p id="EN-US_TOPIC_0125560329__p51730499">Element</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.6.3.2.4.1.2"><p id="EN-US_TOPIC_0125560329__p29420901">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.6.3.2.4.1.3"><p id="EN-US_TOPIC_0125560329__p34282804">Remarks</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0125560329__row25443735"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.6.3.2.4.1.1 "><p id="EN-US_TOPIC_0125560329__p47676663">StorageQuota</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.6.3.2.4.1.2 "><p id="EN-US_TOPIC_0125560329__p36604475">Indicates a bucket quota.</p>
|
|
<p id="EN-US_TOPIC_0125560329__p61004822">Type: Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.6.3.2.4.1.3 "><p id="EN-US_TOPIC_0125560329__p42443564">Mandatory</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560329__section40246421"><h4 class="sectiontitle">Response Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560329__screen23307934112736">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
|
|
Date: date
|
|
Content-Length: length</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560329__section26673471"><h4 class="sectiontitle">Response Headers</h4><p id="EN-US_TOPIC_0125560329__p29703787">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_0125560329__section38734655"><h4 class="sectiontitle">Response Elements</h4><p id="EN-US_TOPIC_0125560329__p2406899">This response involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560329__section13067581"><h4 class="sectiontitle">Error Responses</h4><p id="EN-US_TOPIC_0125560329__p60741093">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_0125560329__section15860434"><h4 class="sectiontitle">Sample Request</h4><pre class="screen" id="EN-US_TOPIC_0125560329__screen65311942112754">PUT /?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:17 +0000
|
|
Authorization: AWS 08350B985315591007AD:O4jTB/FzS3gXDouwRZgz1wiE2PE=
|
|
Content-Length:149
|
|
|
|
<?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 class="section" id="EN-US_TOPIC_0125560329__section8526181"><h4 class="sectiontitle">Sample Response</h4><pre class="screen" id="EN-US_TOPIC_0125560329__screen5371122411286">HTTP/1.1 200 OK
|
|
Server: OBS
|
|
x-amz-request-id: 90E2BA0F80EC0000013B277A80860000
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
x-amz-id-2: dSLkVtVbslB8z967VtfTQmFbD3q4IzeNUBL+tlpGLMGT1FgXnlady4r+oRI/bx2y
|
|
Date: Thu, 22 Nov 2012 09:37:17 GMT
|
|
Content-Length: 0</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>
|
|
|