forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
41 lines
2.9 KiB
HTML
41 lines
2.9 KiB
HTML
<a name="obs_03_0077"></a><a name="obs_03_0077"></a>
|
|
|
|
<h1 class="topictitle1">Examples</h1>
|
|
<div id="body1442649345357"><div class="section" id="obs_03_0077__section63148656103541"><h4 class="sectiontitle">Create Object Metadata</h4><p id="obs_03_0077__p14767479103541">Create object metadata <strong id="obs_03_0077__b20998422">Author</strong> with the value set to <strong id="obs_03_0077__b54768072">other</strong>:</p>
|
|
</div>
|
|
<pre class="codeblock" id="obs_03_0077__codeblock3195833611463">curl -i http://172.28.54.12:80/v1/AUTH_4b34aa268d8c45879cf4da16443d3f95/marketwain/goodbye -H "X-Auth-Token:74565091b56b4783818430cecb283e7f" -XPOST -H "X-Object-Meta-author:other"</pre>
|
|
<pre class="screen" id="obs_03_0077__screen17332581114626">HTTP/1.1 202 Accepted
|
|
X-Trans-Id: tx000001513cba7176370c1-adee95a013
|
|
Content-Type: text/html;charset=UTF-8
|
|
Date: Wed, 25 Nov 2015 03:40:30 GMT
|
|
Content-Length: 76
|
|
|
|
<html><h1>Accepted</h1><p>The request is accepted for processing.</p></html></pre>
|
|
<div class="section" id="obs_03_0077__section59441921103541"><h4 class="sectiontitle">Update Object Metadata</h4><p id="obs_03_0077__p58920503114140">Update object metadata <strong id="obs_03_0077__b34455957">Author</strong> with the value set to <strong id="obs_03_0077__b41668159">marktwain</strong>:</p>
|
|
<pre class="codeblock" id="obs_03_0077__codeblock61255617114745">curl -i http://172.28.54.12:80/v1/AUTH_4b34aa268d8c45879cf4da16443d3f95/marketwain/goodbye -H "X-Auth-Token:74565091b56b4783818430cecb283e7f" -XPOST -H "X-Object-Meta-author:marktwain"</pre>
|
|
</div>
|
|
<pre class="screen" id="obs_03_0077__screen5823067411483">HTTP/1.1 202 Accepted
|
|
X-Trans-Id: tx000001513cbfbf2f370c2-f9e7f1cf40
|
|
Content-Type: text/html;charset=UTF-8
|
|
Date: Wed, 25 Nov 2015 03:46:18 GMT
|
|
Content-Length: 76
|
|
|
|
<html><h1>Accepted</h1><p>The request is accepted for processing.</p></html></pre>
|
|
<div class="section" id="obs_03_0077__section54329679114246"><h4 class="sectiontitle">Delete Object Metadata</h4><p id="obs_03_0077__p38627894114246">Delete the metadata author, and leave the value blank.</p>
|
|
<pre class="codeblock" id="obs_03_0077__codeblock2509241711496">curl -i http://172.28.54.12:80/v1/AUTH_4b34aa268d8c45879cf4da16443d3f95/marketwain/goodbye -H "X-Auth-Token:74565091b56b4783818430cecb283e7f" -XPOST -H "X-Object-Meta-author:"</pre>
|
|
</div>
|
|
<pre class="screen" id="obs_03_0077__screen34547618114246">HTTP/1.1 202 Accepted
|
|
X-Trans-Id: tx000001513cc10d85370c2-cddc60cba5
|
|
Content-Type: text/html;charset=UTF-8
|
|
Date: Wed, 25 Nov 2015 03:47:43 GMT
|
|
Content-Length: 76
|
|
|
|
<html><h1>Accepted</h1><p>The request is accepted for processing.</p></html></pre>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0074.html">Create/Update/Delete Object Metadata</a></div>
|
|
</div>
|
|
</div>
|
|
|