forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
305 lines
28 KiB
HTML
305 lines
28 KiB
HTML
<a name="obs_04_0084"></a><a name="obs_04_0084"></a>
|
|
|
|
<h1 class="topictitle1">Querying Object Metadata</h1>
|
|
<div id="body5678772"><div class="section" id="obs_04_0084__section5584184924715"><h4 class="sectiontitle">Functions</h4><p class="msonormal" id="obs_04_0084__p50592173">Users with the read permission on objects can perform the HeadObject operation to obtain metadata of objects. The object metadata is included in the response.</p>
|
|
<p class="msonormal" id="obs_04_0084__p52676373">This operation supports server-side encryption.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0084__section4325311"><h4 class="sectiontitle">Versioning</h4><p class="msonormal" id="obs_04_0084__p57327367">By default, this operation returns the latest metadata of an object. If the object has a delete marker, status code 404 is returned. To obtain the object metadata of a specified version, the <strong id="obs_04_0084__b410731275716">versionId</strong> parameter can be used to specify the desired version.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0084__section38927805"><h4 class="sectiontitle">Request Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0084__screen12750633"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span></pre></div></td><td class="code"><div><pre><span></span>HEAD<span class="w"> </span>/ObjectName<span class="w"> </span>HTTP/1.1<span class="w"> </span>
|
|
Host:<span class="w"> </span>bucketname.obs.region.example.com
|
|
Date:<span class="w"> </span>date
|
|
Authorization:<span class="w"> </span>authorization
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0084__section14805926"><h4 class="sectiontitle">Request Parameters</h4><p class="msonormal" id="obs_04_0084__p34188773"><a href="#obs_04_0084__table58067199194414">Table 1</a> describes the request parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="obs_04_0084__table58067199194414"></a><a name="table58067199194414"></a><table cellpadding="4" cellspacing="0" summary="" id="obs_04_0084__table58067199194414" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request parameters</caption><thead align="left"><tr id="obs_04_0084__row47703054"><th align="left" class="cellrowborder" valign="top" width="22.220000000000002%" id="mcps1.3.4.3.2.4.1.1"><p id="obs_04_0084__p38742141">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="62.629999999999995%" id="mcps1.3.4.3.2.4.1.2"><p id="obs_04_0084__p57298161">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.15%" id="mcps1.3.4.3.2.4.1.3"><p id="obs_04_0084__p28645973">Mandatory</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_04_0084__row12058206"><td class="cellrowborder" valign="top" width="22.220000000000002%" headers="mcps1.3.4.3.2.4.1.1 "><p id="obs_04_0084__p37190649">versionId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.4.3.2.4.1.2 "><p id="obs_04_0084__p59652605">Object version ID</p>
|
|
<p id="obs_04_0084__p2533">Type: string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.15%" headers="mcps1.3.4.3.2.4.1.3 "><p id="obs_04_0084__p205208">No</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0084__section66144477"><h4 class="sectiontitle">Request Headers</h4><p class="msonormal" id="obs_04_0084__p16621896">This request uses common headers. For details, see <a href="obs_04_0007.html#obs_04_0007__table25197309">Table 3</a>.</p>
|
|
<p class="msonormal" id="obs_04_0084__p4196316">In addition, the request can use additional headers, as shown in <a href="#obs_04_0084__table61280977212224">Table 2</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="obs_04_0084__table61280977212224"></a><a name="table61280977212224"></a><table cellpadding="4" cellspacing="0" summary="" id="obs_04_0084__table61280977212224" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request headers</caption><thead align="left"><tr id="obs_04_0084__row15136906"><th align="left" class="cellrowborder" valign="top" width="19.388061193880613%" id="mcps1.3.5.4.2.4.1.1"><p id="obs_04_0084__p18129858">Header</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="63.26367363263674%" id="mcps1.3.5.4.2.4.1.2"><p id="obs_04_0084__p59232370">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.348265173482652%" id="mcps1.3.5.4.2.4.1.3"><p id="obs_04_0084__p33092675">Mandatory</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_04_0084__row63261020"><td class="cellrowborder" valign="top" width="19.388061193880613%" headers="mcps1.3.5.4.2.4.1.1 "><p id="obs_04_0084__p23869030">Origin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.26367363263674%" headers="mcps1.3.5.4.2.4.1.2 "><p id="obs_04_0084__p54343305">Origin of the cross-domain request specified by the pre-request. Generally, it is a domain name.</p>
|
|
<p id="obs_04_0084__p19327699">Type: string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.5.4.2.4.1.3 "><p id="obs_04_0084__p22039757">No</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row64140087"><td class="cellrowborder" valign="top" width="19.388061193880613%" headers="mcps1.3.5.4.2.4.1.1 "><p id="obs_04_0084__p27964563">Access-Control-Request-Headers</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.26367363263674%" headers="mcps1.3.5.4.2.4.1.2 "><p id="obs_04_0084__p50537127">Indicates the HTTP headers of a request. The request can use multiple HTTP headers.</p>
|
|
<p id="obs_04_0084__p52180966">Type: string</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.5.4.2.4.1.3 "><p id="obs_04_0084__p65908738">No</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row56307738"><td class="cellrowborder" valign="top" width="19.388061193880613%" headers="mcps1.3.5.4.2.4.1.1 "><p id="obs_04_0084__p64632904">x-obs-server-side-encryption-customer-algorithm</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.26367363263674%" headers="mcps1.3.5.4.2.4.1.2 "><p id="obs_04_0084__p773838">Indicates the decryption algorithm when SSE-C is used.</p>
|
|
<p id="obs_04_0084__p6964546">Type: string</p>
|
|
<p id="obs_04_0084__p62680917">Example: <strong id="obs_04_0084__b48053075917">x-obs-server-side-encryption-customer-algorithm:AES256</strong></p>
|
|
<p id="obs_04_0084__p27257344">Constraint: This header must be used together with <strong id="obs_04_0084__b1116775151115">x-obs-server-side-encryption-customer-key</strong> and <strong id="obs_04_0084__b1617312518113">x-obs-server-side-encryption-customer-key-MD5</strong>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.5.4.2.4.1.3 "><p id="obs_04_0084__p60361259">No. This header is required when SSE-C is used.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row6380420"><td class="cellrowborder" valign="top" width="19.388061193880613%" headers="mcps1.3.5.4.2.4.1.1 "><p id="obs_04_0084__p47052029">x-obs-server-side-encryption-customer-key</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.26367363263674%" headers="mcps1.3.5.4.2.4.1.2 "><p id="obs_04_0084__p53117974">Indicates the decryption key when SSE-C is used.</p>
|
|
<p id="obs_04_0084__p8299718">Type: string</p>
|
|
<p id="obs_04_0084__p7588599">Example: <strong id="obs_04_0084__b653616341591">x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw=</strong></p>
|
|
<p id="obs_04_0084__p1188530">Constraint: This header is a Base64-encoded 256-bit key and must be used together with <strong id="obs_04_0084__b159154910590">x-obs-server-side-encryption-customer-algorithm</strong> and <strong id="obs_04_0084__b098495596">x-obs-server-side-encryption-customer-key-MD5</strong>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.5.4.2.4.1.3 "><p id="obs_04_0084__p29162131">No. This header is required when SSE-C is used.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row61132595"><td class="cellrowborder" valign="top" width="19.388061193880613%" headers="mcps1.3.5.4.2.4.1.1 "><p id="obs_04_0084__p52793182">x-obs-server-side-encryption-customer-key-MD5</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.26367363263674%" headers="mcps1.3.5.4.2.4.1.2 "><p id="obs_04_0084__p48389362">Indicates the MD5 value of the decryption key when SSE-C is used. The MD5 value is used to check whether any error occurs during the transmission of the key.</p>
|
|
<p id="obs_04_0084__p32851074">Type: string</p>
|
|
<p id="obs_04_0084__p27224213">Example: <strong id="obs_04_0084__b13838193965919">x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==</strong></p>
|
|
<p id="obs_04_0084__p43691333">Constraint: This header is a Base64-encoded 128-bit MD5 value and must be used together with <strong id="obs_04_0084__b2087516241207">x-obs-server-side-encryption-customer-algorithm</strong> and <strong id="obs_04_0084__b1188118241505">x-obs-server-side-encryption-customer-key</strong>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.5.4.2.4.1.3 "><p id="obs_04_0084__p49337093">No. This header is required when SSE-C is used.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0084__section58429386"><h4 class="sectiontitle">Request Elements</h4><p class="msonormal" id="obs_04_0084__p36881577">This request involves no elements.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0084__section56102430"><h4 class="sectiontitle">Response Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0084__screen3213824"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span>
|
|
<span class="normal">6</span></pre></div></td><td class="code"><div><pre><span></span>HTTP/1.1<span class="w"> </span>status_code
|
|
Content-Type:<span class="w"> </span>type
|
|
Date:<span class="w"> </span>date
|
|
Content-Length:<span class="w"> </span>length
|
|
Etag:<span class="w"> </span>etag
|
|
Last-Modified:<span class="w"> </span>time
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0084__section35159826"><h4 class="sectiontitle">Response Headers</h4><p class="msonormal" id="obs_04_0084__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>
|
|
<p class="msonormal" id="obs_04_0084__p56384785">In addition to the common response headers, the message headers listed in <a href="#obs_04_0084__table53333691145218">Table 3</a> may be used.</p>
|
|
|
|
<div class="tablenoborder"><a name="obs_04_0084__table53333691145218"></a><a name="table53333691145218"></a><table cellpadding="4" cellspacing="0" summary="" id="obs_04_0084__table53333691145218" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Additional response headers</caption><thead align="left"><tr id="obs_04_0084__row48853136"><th align="left" class="cellrowborder" valign="top" width="40.400000000000006%" id="mcps1.3.8.4.2.3.1.1"><p id="obs_04_0084__p64789980">Header</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="59.599999999999994%" id="mcps1.3.8.4.2.3.1.2"><p id="obs_04_0084__p13496995">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_04_0084__row19514831"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p37197512">x-obs-expiration</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p60208501">When an object has its lifecycle rule, the object expiration time is subject to its lifecycle rule. This header field is use <strong id="obs_04_0084__b65165117386">expiry-date</strong> to describe the object expiration date. If the lifecycle rule is configured only for the entire bucket not individual objects, the object expiration time is subject to the bucket lifecycle rule. This header field uses the <strong id="obs_04_0084__b8618513380">expiry-date</strong> and <strong id="obs_04_0084__b6612511380">rule-id</strong> to describe the detailed expiration information of objects. If no lifecycle rule is configured, this header field is not contained in the response.</p>
|
|
<p id="obs_04_0084__p5005603">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row45050431"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p25206285">x-obs-website-redirect-location</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p28443208">Indicates the redirected-to location. If the bucket is configured with website information, this parameter can be set for the object metadata so that the website endpoint will evaluate the request for the object as a 301 redirect to another object in the same bucket or an external URL.</p>
|
|
<p id="obs_04_0084__p54662281">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row22198487"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p53247011">x-obs-version-id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p18040595">Object version ID. If the object has no version number specified, the response does not contain this header.</p>
|
|
<p id="obs_04_0084__p28147628">Type: string</p>
|
|
<p id="obs_04_0084__p52002063">Default value: none</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row65365390"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p60105224">Access-Control-Allow-Origin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p36684995">Indicates that the origin is included in the response if the origin in the request meets the CORS configuration requirements when CORS is configured for buckets.</p>
|
|
<p id="obs_04_0084__p61729504">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row18694631"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p37870106">Access-Control-Allow-Headers</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p47579783">Indicates that the headers are included in the response if headers in the request meet the CORS configuration requirements when CORS is configured for buckets.</p>
|
|
<p id="obs_04_0084__p25564866">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row28757204"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p47632169">Access-Control-Max-Age</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p33000495">Value of <strong id="obs_04_0084__b3651102347">MaxAgeSeconds</strong> in the CORS configuration of the server when CORS is configured for buckets.</p>
|
|
<p id="obs_04_0084__p28569004">Type: integer</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row55794445"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p23056236">Access-Control-Allow-Methods</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p55615860">Indicates that methods in the rule are included in the response if Access-Control-Request-Method in the request meets the CORS configuration requirements when CORS is configured for buckets.</p>
|
|
<p id="obs_04_0084__p30780694">Type: string</p>
|
|
<p id="obs_04_0084__p8590796">Value options: <strong id="obs_04_0084__b339612352471">GET</strong>, <strong id="obs_04_0084__b3396193514478">PUT</strong>, <strong id="obs_04_0084__b8396183544716">HEAD</strong>, <strong id="obs_04_0084__b239733514475">POST</strong>, <strong id="obs_04_0084__b173972356475">DELETE</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row10208301"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p21566081">Access-Control-Expose-Headers</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p2022137">Value of <strong id="obs_04_0084__b7102534">ExposeHeader</strong> in the CORS configuration of a server when CORS is configured for buckets.</p>
|
|
<p id="obs_04_0084__p18199238">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row29575422"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p46798967">x-obs-server-side-encryption</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p32619981">This header is included in a response if SSE-KMS is used. </p>
|
|
<p id="obs_04_0084__p25144374">Type: string</p>
|
|
<p id="obs_04_0084__p24972775">Example: <strong id="obs_04_0084__b189611743115914">x-obs-server-side-encryption:kms</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row23428385"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p18651037">x-obs-server-side-encryption-kms-key-id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p34339025">Indicates the master key ID. This header is included in a response if SSE-KMS is used. </p>
|
|
<p id="obs_04_0084__p1162761803510">Type: string</p>
|
|
<p id="obs_04_0084__p5627111814351">Format: <em id="obs_04_0084__i14782182611616">regionID</em><strong id="obs_04_0084__b20788112616611">:</strong><em id="obs_04_0084__i8789142616611">domainID</em><strong id="obs_04_0084__b27891826968">:key/</strong><em id="obs_04_0084__i778952618619">key_id</em> <em id="obs_04_0084__i863125510219">regionID</em> indicates the ID of the region where the key belongs. <em id="obs_04_0084__i36318551022">domainID</em> indicates the ID of the tenant where the key belongs. <em id="obs_04_0084__i163155520215">key_id</em> indicates the key ID used in this encryption.</p>
|
|
<p id="obs_04_0084__p4699111445312">Example: <strong id="obs_04_0084__b4908449125914">x-obs-server-side-encryption-kms-key-id:</strong><strong id="obs_04_0084__b8910144918597"><em id="obs_04_0084__i39092490599">region</em></strong><strong id="obs_04_0084__b6910204955919">:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row29997670"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p13892228">x-obs-server-side-encryption-customer-algorithm</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p51528658">Indicates a decryption algorithm. This header is included in a response if SSE-C is used. </p>
|
|
<p id="obs_04_0084__p61104738">Type: string</p>
|
|
<p id="obs_04_0084__p13071736">Example: <strong id="obs_04_0084__b040895765913">x-obs-server-side-encryption-customer-algorithm:AES256</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row50536764"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p66946074">x-obs-server-side-encryption-customer-key-MD5</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p53922917">Indicates the MD5 value of a key used to decrypt objects. This header is included in a response if SSE-C is used. </p>
|
|
<p id="obs_04_0084__p15544206">Type: string</p>
|
|
<p id="obs_04_0084__p5680132">Example: <strong id="obs_04_0084__b13552817016">x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ==</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row51121191"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p47175776">x-obs-storage-class</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p63141473">This header is returned when the storage class of an object is not Standard. The value can be <strong id="obs_04_0084__b16895102974016">WARM</strong> or <strong id="obs_04_0084__b188954297408">COLD</strong>.</p>
|
|
<p id="obs_04_0084__p31402348">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row14185683"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p8189661">x-obs-restore</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p59382824">This header is returned when a Cold object is being restored or has been restored. It represents the object's restore status, which can be <strong id="obs_04_0084__b498324182620">ongoing-request="true"</strong> (the object is being restored) or <strong id="obs_04_0084__b515710509266">ongoing-request="false", expiry-date="Wed, 7 Nov 2012 00:00:00 GMT"</strong> (the object has been restored). In these statuses, <strong id="obs_04_0084__b1657562310287">expiry-date</strong> indicates when the restored object will expire.</p>
|
|
<p id="obs_04_0084__p64683373">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row18791039144211"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p118791639154211">x-obs-object-type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p108799391421">If the object is not a normal one, this header field is returned. The value can be <strong id="obs_04_0084__b121331492">Appendable</strong></p>
|
|
<p id="obs_04_0084__p32878451">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row03431158460"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p434312159462">x-obs-next-append-position</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p11343121594610">This header field is returned when the object is an appendable object.</p>
|
|
<p id="obs_04_0084__p1464163613488">Type: integer</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row4929381684"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p4978132513811">x-obs-uploadId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p1997818251184">This header is returned if the object is a combination of multiple parts. The header value indicates the ID of the corresponding multipart upload task.</p>
|
|
<p id="obs_04_0084__p1297832514820">Type: string</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row176651040597"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p5180191819182"><span style="color:#494949;">x-obs-object-lock-mode</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p6180918151813">WORM mode that will be applied to the object. Currently, only <strong id="obs_04_0084__b2443165812187">COMPLIANCE</strong> is supported. This header is returned only when the object has any object-level retention policy configured or has the default bucket-level WORM policy applied. To configure this header, the <strong id="obs_04_0084__b335715924120">GetObjectRetention</strong> permission is required.</p>
|
|
<p id="obs_04_0084__p14496145181918">Type: string</p>
|
|
<p id="obs_04_0084__p154228537191">Example: <strong id="obs_04_0084__b773731920020">x-obs-object-lock-mode:COMPLIANCE</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_04_0084__row5212243599"><td class="cellrowborder" valign="top" width="40.400000000000006%" headers="mcps1.3.8.4.2.3.1.1 "><p id="obs_04_0084__p14809920131812"><span style="color:#494949;">x-obs-object-lock-retain-until-date</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.599999999999994%" headers="mcps1.3.8.4.2.3.1.2 "><p id="obs_04_0084__p97201718162111">Indicates the expiration time of the WORM retention. The value must be a UTC time that complies with ISO 8601, for example, <strong id="obs_04_0084__b937161762618">2015-07-01T04:11:15Z</strong>. This header is returned only when the object has any object-level retention policy configured or has the default bucket-level WORM policy applied. To configure this header, the <strong id="obs_04_0084__b10371151782610">GetObjectRetention</strong> permission is required.</p>
|
|
<p id="obs_04_0084__p1972081822113">Type: string</p>
|
|
<p id="obs_04_0084__p372031872119">Example: <strong id="obs_04_0084__b131940433014">x-obs-object-lock-retain-until-date:2015-07-01T04:11:15Z</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0084__section48002983"><h4 class="sectiontitle">Response Elements</h4><p class="msonormal" id="obs_04_0084__p4861884">This response contains no elements.</p>
|
|
</div>
|
|
<div class="section" id="obs_04_0084__section29373671"><h4 class="sectiontitle">Error Responses</h4><p class="msonormal" id="obs_04_0084__p58268319">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_0084__section412912471360"><h4 class="sectiontitle">Sample Request</h4><div class="codecoloring" codetype="Xml" id="obs_04_0084__screen893117504617"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span>
|
|
<span class="normal">6</span></pre></div></td><td class="code"><div><pre><span></span>HEAD<span class="w"> </span>/object1<span class="w"> </span>HTTP/1.1
|
|
User-Agent:<span class="w"> </span>curl/7.29.0
|
|
Host:<span class="w"> </span>examplebucket.obs.region.example.com
|
|
Accept:<span class="w"> </span>*/*
|
|
Date:<span class="w"> </span>WED,<span class="w"> </span>01<span class="w"> </span>Jul<span class="w"> </span>2015<span class="w"> </span>04:19:25<span class="w"> </span>GMT
|
|
Authorization:<span class="w"> </span>OBS<span class="w"> </span>H4IPJX0TQTHTHEBQQCEC:/cARjk81l2iExMfQqn6iT3qEZ74=
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="obs_04_0084__section18605296485"><h4 class="sectiontitle">Sample Response</h4><div class="codecoloring" codetype="Xml" id="obs_04_0084__screen91063375488"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
|
|
<span class="normal"> 2</span>
|
|
<span class="normal"> 3</span>
|
|
<span class="normal"> 4</span>
|
|
<span class="normal"> 5</span>
|
|
<span class="normal"> 6</span>
|
|
<span class="normal"> 7</span>
|
|
<span class="normal"> 8</span>
|
|
<span class="normal"> 9</span>
|
|
<span class="normal">10</span></pre></div></td><td class="code"><div><pre><span></span>HTTP/1.1<span class="w"> </span>200<span class="w"> </span>OK
|
|
Server:<span class="w"> </span>OBS
|
|
x-obs-request-id:<span class="w"> </span>8DF400000163D3E4BB5905C41B6E65B6
|
|
Accept-Ranges:<span class="w"> </span>bytes
|
|
ETag:<span class="w"> </span>"3b46eaf02d3b6b1206078bb86a7b7013"
|
|
Last-Modified:<span class="w"> </span>WED,<span class="w"> </span>01<span class="w"> </span>Jul<span class="w"> </span>2015<span class="w"> </span>01:19:21<span class="w"> </span>GMT
|
|
Content-Type:<span class="w"> </span>binary/octet-stream
|
|
x-obs-id-2:<span class="w"> </span>32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSD3nAiTaBoeyt9oHp9vTYtXnLDmwV6D
|
|
Date:<span class="w"> </span>WED,<span class="w"> </span>01<span class="w"> </span>Jul<span class="w"> </span>2015<span class="w"> </span>04:19:21<span class="w"> </span>GMT
|
|
Content-Length:<span class="w"> </span>4572
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_04_0079.html">Operations on Objects</a></div>
|
|
</div>
|
|
</div>
|
|
|