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>
35 lines
2.6 KiB
HTML
35 lines
2.6 KiB
HTML
<a name="obs_03_0044"></a><a name="obs_03_0044"></a>
|
|
|
|
<h1 class="topictitle1">Examples</h1>
|
|
<div id="body1442459864680"><div class="section" id="obs_03_0044__section63148656103541"><h4 class="sectiontitle">Create Container Metadata</h4><p id="obs_03_0044__p14767479103541">Create container metadata <strong id="obs_03_0044__b37866150">Author</strong> with the value set to <strong id="obs_03_0044__b5251037">MarkTwain</strong>:</p>
|
|
</div>
|
|
<pre class="codeblock" id="obs_03_0044__codeblock297154831115">curl -i -H "X-auth-token:b85044aa87eb46b88552f1dcbae411e3" http://172.28.5.31:80/v1/AUTH_09ijuyhgt675432wert56yt789i0o98u/marktwain -X POST -H "X-Container-Meta-Author:MarkTwain"</pre>
|
|
<pre class="screen" id="obs_03_0044__screen51343900103541">HTTP/1.1 204 No Content
|
|
X-Trans-Id: tx756aafaa7d2725f407980-172957b1a5
|
|
Content-Type: text/html;charset=UTF-8
|
|
Date: Sat, 19 Sep 2015 03:53:50 GMT
|
|
Content-Length: 0</pre>
|
|
<div class="section" id="obs_03_0044__section59441921103541"><h4 class="sectiontitle">Update Container Metadata</h4><p id="obs_03_0044__p58920503114140">Update container metadata <strong id="obs_03_0044__b37978409">Author</strong> with the value set to <strong id="obs_03_0044__b6261369">Other</strong>:</p>
|
|
<pre class="codeblock" id="obs_03_0044__codeblock2694425411130">curl -i -H "X-auth-token:b85044aa87eb46b88552f1dcbae411e3" http://172.28.5.31:80/v1/AUTH_09ijuyhgt675432wert56yt789i0o98u/marktwain -X POST -H "X-Container-Meta-Author:Other"</pre>
|
|
</div>
|
|
<pre class="screen" id="obs_03_0044__screen16006812103541">HTTP/1.1 204 No Content
|
|
X-Trans-Id: tx78195a4320339a358ef6b-7d910daaf2
|
|
Content-Type: text/html;charset=UTF-8
|
|
Date: Sat, 19 Sep 2015 03:54:07 GMT
|
|
Content-Length: 0</pre>
|
|
<div class="section" id="obs_03_0044__section54329679114246"><h4 class="sectiontitle">Delete Container Metadata</h4><p id="obs_03_0044__p38627894114246">Delete container metadata <strong id="obs_03_0044__b19206131">Author</strong> with the value set to any non-empty character string:</p>
|
|
<pre class="codeblock" id="obs_03_0044__codeblock3551680111157">curl -i -H "X-auth-token:b85044aa87eb46b88552f1dcbae411e3" http://172.28.5.31:80/v1/AUTH_09ijuyhgt675432wert56yt789i0o98u/marktwain -X POST -H "X-Remove-Container-Meta-Author:x"</pre>
|
|
</div>
|
|
<pre class="screen" id="obs_03_0044__screen34547618114246">HTTP/1.1 204 No Content
|
|
X-Trans-Id: txd55ee251c5c4eb7747016-84b51a54c0
|
|
Content-Type: text/html;charset=UTF-8
|
|
Date: Sat, 19 Sep 2015 03:54:30 GMT
|
|
Content-Length: 0</pre>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0041.html">Create/Update/Delete Container Metadata</a></div>
|
|
</div>
|
|
</div>
|
|
|