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>
31 lines
1.8 KiB
HTML
31 lines
1.8 KiB
HTML
<a name="obs_03_0061"></a><a name="obs_03_0061"></a>
|
|
|
|
<h1 class="topictitle1">Examples</h1>
|
|
<div id="body1442649345339"><div class="section" id="obs_03_0061__section2201390"><h4 class="sectiontitle">Create Object</h4><p id="obs_03_0061__p61892272161737">Create <strong id="obs_03_0061__b61723024">marktwain/goodbye</strong>:</p>
|
|
</div>
|
|
<pre class="codeblock" id="obs_03_0061__codeblock55446332105841">curl -i http://172.28.54.12:80/v1/AUTH_4b34aa268d8c45879cf4da16443d3f95/marketwain/goodbye -H "X-Auth-Token:74565091b56b4783818430cecb283e7f" -XPUT -T ./goodbye.txt</pre>
|
|
<pre class="screen" id="obs_03_0061__screen4089713110598">HTTP/1.1 201 Created
|
|
X-Trans-Id: tx000001513c8f12fd370c0-b7e3f340fc
|
|
Content-Type: text/html;charset=UTF-8
|
|
Date: Wed, 25 Nov 2015 02:53:08 GMT
|
|
ETag: e85f5c28b588fa64a379ba876e3591d2
|
|
Last-Modified: Wed, 25 Nov 2015 02:53:08 GMT
|
|
Content-Length: 0</pre>
|
|
<div class="section" id="obs_03_0061__section60098234144536"><h4 class="sectiontitle">Replace Object</h4><p id="obs_03_0061__p48068385162043">Replace <strong id="obs_03_0061__b10143804">marktwain/goodbye</strong> (repeated creation):</p>
|
|
<pre class="codeblock" id="obs_03_0061__codeblock2637127211335">curl -i http://172.28.54.12:80/v1/AUTH_4b34aa268d8c45879cf4da16443d3f95/marketwain/goodbye -H "X-Auth-Token:74565091b56b4783818430cecb283e7f" -XPUT -T ./goodbye.txt</pre>
|
|
</div>
|
|
<pre class="screen" id="obs_03_0061__screen46317933145020">HTTP/1.1 201 Created
|
|
X-Trans-Id: tx000001513c99de91370c0-8a64466f2c
|
|
Content-Type: text/html;charset=UTF-8
|
|
Date: Wed, 25 Nov 2015 03:04:55 GMT
|
|
ETag: e85f5c28b588fa64a379ba876e3591d2
|
|
Last-Modified: Wed, 25 Nov 2015 03:04:55 GMT
|
|
Content-Length: 0</pre>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0058.html">Create or Replace Object</a></div>
|
|
</div>
|
|
</div>
|
|
|