doc-exports/docs/obs/api-ref/obs_04_0064.html
Jawei, Li f1cb839979 OBS api-ref 2.0.38.SP5
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Jawei, Li <lijiawei5@huawei.com>
Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
2022-11-03 11:54:51 +00:00

78 lines
4.5 KiB
HTML

<a name="obs_04_0064"></a><a name="obs_04_0064"></a>
<h1 class="topictitle1">Deleting the Encryption Configuration of a Bucket</h1>
<div id="body1549963978429"><div class="section" id="obs_04_0064__section5584184924715"><h4 class="sectiontitle">Functions</h4><p id="obs_04_0064__p328123010563">OBS uses the DELETE method to delete the encryption configuration of a specified bucket.</p>
<p id="obs_04_0064__p028114308563">To perform this operation, you must have the <strong id="obs_04_0064__b19156642205018">PutEncryptionConfiguration</strong> permission. By default, only the bucket owner can delete the tags of a bucket. The bucket owner can allow other users to perform this operation by setting a bucket policy or granting them the permission.</p>
</div>
<div class="section" id="obs_04_0064__section760823317564"><h4 class="sectiontitle">Request Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0064__screen19232727152544"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5
6</pre></div></td><td class="code"><div class="highlight"><pre><span></span>DELETE /?encryption HTTP/1.1
User-Agent: curl/7.29.0
Host: bucketname.obs.region.example.com
Accept: */*
Date: date
Authorization: authorization string
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="obs_04_0064__section1371325895711"><h4 class="sectiontitle">Request parameters</h4><p id="obs_04_0064__p16726201482310">This request contains no parameter.</p>
</div>
<div class="section" id="obs_04_0064__section1082510151584"><h4 class="sectiontitle">Request Headers</h4><p id="obs_04_0064__p1231635205817">This request uses common headers. For details, see <a href="obs_04_0007.html#obs_04_0007__table25197309">Table 3</a>.</p>
</div>
<div class="section" id="obs_04_0064__section4216153718588"><h4 class="sectiontitle">Request Elements</h4><p id="obs_04_0064__p512465625811">This request involves no elements.</p>
</div>
<div class="section" id="obs_04_0064__section7375637599"><h4 class="sectiontitle">Response Syntax</h4><div class="codecoloring" codetype="Xml" id="obs_04_0064__screen1351602445911"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5</pre></div></td><td class="code"><div class="highlight"><pre><span></span>HTTP/1.1 status_code
Server: OBS
x-obs-request-id: request id
x-obs-id-2: id
Date: date
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="obs_04_0064__section4327836215"><h4 class="sectiontitle">Response Headers</h4><p class="msonormal" id="obs_04_0064__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>
</div>
<div class="section" id="obs_04_0064__section2085012491723"><h4 class="sectiontitle">Response Elements</h4><p id="obs_04_0064__p63829146313">This response involves no elements.</p>
</div>
<div class="section" id="obs_04_0064__section75624441842"><h4 class="sectiontitle">Error Responses</h4><p id="obs_04_0064__p9928192695312">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_0064__section51791023968"><h4 class="sectiontitle">Sample Request</h4><div class="codecoloring" codetype="Xml" id="obs_04_0064__screen5561411267"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5
6</pre></div></td><td class="code"><div class="highlight"><pre><span></span>DELETE /examplebucket?encryption HTTP/1.1
User-Agent: curl/7.29.0
Host: examplebucket.obs.region.example.com
Accept: */*
Date: Tue, 08 Jan 2019 13:18:35 +0000
Authorization: OBS UDSIAMSTUBTEST000001:UT9F2YUgaFu9uFGMmxFj2CBgQHs=
</pre></div>
</td></tr></table></div>
</div>
<div class="section" id="obs_04_0064__section18234571088"><h4 class="sectiontitle">Sample Response</h4><div class="codecoloring" codetype="Xml" id="obs_04_0064__screen1219123011919"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5</pre></div></td><td class="code"><div class="highlight"><pre><span></span>HTTP/1.1 204 No Content
Server: OBS
x-obs-request-id: 000001682D993B666808E265A3F6361D
x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSyB46jGSQsu06m1nyIeKxTuJ+H27ooC
Date: Tue, 08 Jan 2019 13:14:03 GMT
</pre></div>
</td></tr></table></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_04_0026.html">Advanced Bucket Settings</a></div>
</div>
</div>