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>
63 lines
4.1 KiB
HTML
63 lines
4.1 KiB
HTML
<a name="EN-US_TOPIC_0125560293"></a><a name="EN-US_TOPIC_0125560293"></a>
|
|
|
|
<h1 class="topictitle1">GET Bucket storage</h1>
|
|
<div id="body60660131"><p id="EN-US_TOPIC_0125560293__p59183197">Using this operation, the bucket owner can obtain the bucket's storage information such as the bucket size and number of objects in the bucket. The bucket size is a nonnegative integer, expressed in bytes.</p>
|
|
<div class="section" id="EN-US_TOPIC_0125560293__section2336166"><h4 class="sectiontitle">Request Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560293__screen16468485112539">GET /?storageinfo 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_0125560293__section21025500"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0125560293__p31872838">This request involves no parameters.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560293__section55011773"><h4 class="sectiontitle">Request Headers</h4><p id="EN-US_TOPIC_0125560293__p31563057">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_0125560293__section25343916"><h4 class="sectiontitle">Request Elements</h4><p id="EN-US_TOPIC_0125560293__p54375137">This request involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560293__section1340439"><h4 class="sectiontitle">Response Syntax</h4><pre class="screen" id="EN-US_TOPIC_0125560293__screen1971776611261">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
|
|
<Response Body></pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560293__section12063958"><h4 class="sectiontitle">Response Headers</h4><p id="EN-US_TOPIC_0125560293__p25975146">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_0125560293__section41466763"><h4 class="sectiontitle">Response Elements</h4><p id="EN-US_TOPIC_0125560293__p33532143">This response involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560293__section37656551"><h4 class="sectiontitle">Error Responses</h4><p id="EN-US_TOPIC_0125560293__p31749068">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_0125560293__section22366139"><h4 class="sectiontitle">Sample Request</h4><pre class="screen" id="EN-US_TOPIC_0125560293__screen29663630112633">GET /?storageinfo HTTP/1.1
|
|
User-Agent: Jakarta Commons-HttpClient/3.1
|
|
Host: bucketname.obs.example.com
|
|
Accept-Encoding: gzip,deflate
|
|
Date: Sat, 20 Oct 2012 06:23:16 +0000
|
|
Authorization: AWS 08350B985315591007AD:O4jTB/FzS3gXDouwRZgz1wiE2PE= </pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0125560293__section67077527"><h4 class="sectiontitle">Sample Response</h4><pre class="screen" id="EN-US_TOPIC_0125560293__screen58094398112645">HTTP/1.1 200 OK
|
|
Server: OBS
|
|
x-amz-request-id: 001B21D48A580000013A7CD702AB0011
|
|
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc
|
|
x-amz-id-2: 8NgBZD4YTt+Gi11OlhtdGE/zB1d/q6btnc+L3E5Iq0VU80pf+GtXUfZ9lVmrhU6J
|
|
Content-Type: application/xml
|
|
Date: Sat, 20 Oct 2012 06:23:16 GMT
|
|
Content-Length: 209
|
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<GetBucketStorageInfoResult xmlns="http://obs.example.com/doc/2015-06-30/">
|
|
<Size>14960</Size>
|
|
<ObjectNumber>11</ObjectNumber>
|
|
</GetBucketStorageInfoResult></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>
|
|
|