doc-exports/docs/obs/api-swift/obs_03_0057.html
zhangyue 894279c39a Object Storage Service API Reference Swift V1
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2023-02-02 08:50:48 +00:00

35 lines
2.1 KiB
HTML

<a name="obs_03_0057"></a><a name="obs_03_0057"></a>
<h1 class="topictitle1">Examples</h1>
<div id="body1442649345330"><div class="section" id="obs_03_0057__section2201390"><h4 class="sectiontitle">Show Object Details</h4><p id="obs_03_0057__p61892272161737">Show the content and metadata of the <strong id="obs_03_0057__b21441151">goodbye</strong> object in the <strong id="obs_03_0057__b58752636">marktwain</strong> container:</p>
</div>
<pre class="codeblock" id="obs_03_0057__codeblock6656516210550">curl -i http://172.28.54.12:80/v1/AUTH_4b34aa268d8c45879cf4da16443d3f95/marketwain/goodbye -H "X-Auth-Token:74565091b56b4783818430cecb283e7f" -XGET</pre>
<pre class="screen" id="obs_03_0057__screen5682122105527">HTTP/1.1 200 OK
X-Trans-Id: tx000001513c8f3596370c0-d09b6a1f24
Accept-Ranges: bytes
Content-Length: 15
Content-Type: application/octet-stream
Date: Wed, 25 Nov 2015 02:53:17 GMT
ETag: e85f5c28b588fa64a379ba876e3591d2
Last-Modified: Wed, 25 Nov 2015 02:53:08 GMT
X-Timestamp: 1448419988.76750
<em id="obs_03_0057__i1127171714419">[15 Byte data content]</em></pre>
<div class="section" id="obs_03_0057__section60098234144536"><h4 class="sectiontitle">Show Object Details for a Non-Existing Object</h4><p id="obs_03_0057__p48068385162043">Show object details for the <strong id="obs_03_0057__b39719970">notexist</strong> object, which does not exist, in the <strong id="obs_03_0057__b21935418">marktwain</strong> container:</p>
<pre class="codeblock" id="obs_03_0057__codeblock55769983105619">curl -i http://172.28.54.12:80/v1/AUTH_4b34aa268d8c45879cf4da16443d3f95/marketwain/notexist -H "X-Auth-Token:74565091b56b4783818430cecb283e7f" -XGET</pre>
</div>
<pre class="screen" id="obs_03_0057__screen46317933145020">HTTP/1.1 404 Not Found
X-Trans-Id: tx000001513c90aab6370c0-b90ea4b1b7
Content-Type: text/html;charset=UTF-8
Date: Wed, 25 Nov 2015 02:54:52 GMT
Content-Length: 70
&lt;html&gt;&lt;h1&gt;Not Found&lt;/h1&gt;&lt;p&gt;The resource could not be found.&lt;/p&gt;&lt;/html&gt;</pre>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0054.html">Get Object Content and Metadata</a></div>
</div>
</div>