forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
63 lines
7.0 KiB
HTML
63 lines
7.0 KiB
HTML
<a name="obs_03_0135"></a><a name="obs_03_0135"></a>
|
|
|
|
<h1 class="topictitle1">Application Example 2: Authorizing Access Permissions Required for Adding an External Bucket Through the Standard Bucket Policy</h1>
|
|
<div id="body1557194771182"><p id="obs_03_0135__p4815145652014">A standard bucket policy can be used to grant the read and write access to a bucket. The standard bucket policy grants the public read and write access to the bucket, that is, all users can access the bucket. Permissions controlled by a standard bucket policy are as follows:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_03_0135__table862416458164" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Permissions controlled by a standard bucket policy</caption><thead align="left"><tr id="obs_03_0135__obs_03_0434_row15249821152217"><th align="left" class="cellrowborder" valign="top" width="22.35%" id="mcps1.3.2.2.4.1.1"><p id="obs_03_0135__obs_03_0434_p122491621102215">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="37.65%" id="mcps1.3.2.2.4.1.2"><p id="obs_03_0135__obs_03_0434_p9249112142212">Public Read</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.2.4.1.3"><p id="obs_03_0135__obs_03_0434_p14249421172212">Public Read and Write</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_03_0135__obs_03_0434_row724919215226"><td class="cellrowborder" valign="top" width="22.35%" headers="mcps1.3.2.2.4.1.1 "><p id="obs_03_0135__obs_03_0434_p102491321142216">Effect</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37.65%" headers="mcps1.3.2.2.4.1.2 "><p id="obs_03_0135__obs_03_0434_p02496219224">Allow</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.2.4.1.3 "><p id="obs_03_0135__obs_03_0434_p424962162212">Allow</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_03_0135__obs_03_0434_row1224915215221"><td class="cellrowborder" valign="top" width="22.35%" headers="mcps1.3.2.2.4.1.1 "><p id="obs_03_0135__obs_03_0434_p824919216225">Principal</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37.65%" headers="mcps1.3.2.2.4.1.2 "><p id="obs_03_0135__obs_03_0434_p12503210220">* (Any user)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.2.4.1.3 "><p id="obs_03_0135__obs_03_0434_p132503214228">* (Any user)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_03_0135__obs_03_0434_row5250121102214"><td class="cellrowborder" valign="top" width="22.35%" headers="mcps1.3.2.2.4.1.1 "><p id="obs_03_0135__obs_03_0434_p1625082192215">Resources</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37.65%" headers="mcps1.3.2.2.4.1.2 "><p id="obs_03_0135__obs_03_0434_p125022172220">* (All objects in a bucket)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.2.4.1.3 "><p id="obs_03_0135__obs_03_0434_p3250112172220">* (All objects in a bucket)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_03_0135__obs_03_0434_row14250821122214"><td class="cellrowborder" valign="top" width="22.35%" headers="mcps1.3.2.2.4.1.1 "><p id="obs_03_0135__obs_03_0434_p1125052118223">Actions</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37.65%" headers="mcps1.3.2.2.4.1.2 "><ul id="obs_03_0135__obs_03_0434_ul1512955514"><li id="obs_03_0135__obs_03_0434_li2478957162817">GetObject</li><li id="obs_03_0135__obs_03_0434_li25017322553">GetObjectVersion</li><li id="obs_03_0135__obs_03_0434_li923681117457">ListBucket</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.2.4.1.3 "><ul id="obs_03_0135__obs_03_0434_ul5350174995516"><li id="obs_03_0135__obs_03_0434_li235184914552">GetObject</li><li id="obs_03_0135__obs_03_0434_li635354905514">GetObjectVersion</li><li id="obs_03_0135__obs_03_0434_li67015320563">PutObject</li><li id="obs_03_0135__obs_03_0434_li165585435619">DeleteObject</li><li id="obs_03_0135__obs_03_0434_li133265814550">DeleteObjectVersion</li><li id="obs_03_0135__obs_03_0434_li270053214419">ListBucket</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_03_0135__obs_03_0434_row122501121162216"><td class="cellrowborder" valign="top" width="22.35%" headers="mcps1.3.2.2.4.1.1 "><p id="obs_03_0135__obs_03_0434_p22501217226">Conditions</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37.65%" headers="mcps1.3.2.2.4.1.2 "><p id="obs_03_0135__obs_03_0434_p132501521172219">N/A</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.2.4.1.3 "><p id="obs_03_0135__obs_03_0434_p1325042111223">N/A</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="section" id="obs_03_0135__section9799102151917"><h4 class="sectiontitle">Procedure</h4><ol id="obs_03_0135__ol430282901616"><li id="obs_03_0135__li93021529111613"><span>Log in to OBS Console.</span></li><li id="obs_03_0135__li99821455306"><span>In the bucket list, click the bucket you want to operate. The <strong id="obs_03_0135__obs_03_0307_b144421021120">Overview</strong> page is displayed.</span></li><li id="obs_03_0135__li51927620"><span>In the navigation pane on the left, click <strong id="obs_03_0135__obs_03_0134_b12922143915198">Permissions</strong> to go to the permission management page.</span></li><li id="obs_03_0135__li38201242113212"><span>Select the <strong id="obs_03_0135__b6201194615351">Public Read and Write</strong> policy from the standard bucket policies that are pre-defined.</span></li><li id="obs_03_0135__li10662531123619"><span>In the dialog box that is displayed, click <strong id="obs_03_0135__b14784123011367">Yes</strong>.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="obs_03_0135__section88013218195"><h4 class="sectiontitle">Verification</h4><ol id="obs_03_0135__obs_03_0134_ol156616519218"><li id="obs_03_0135__obs_03_0134_l4b7405eee906443fbf78863c50e610ca"><span>Log in to OBS Browser.</span></li><li id="obs_03_0135__obs_03_0134_lc82457e25c0548d6bbabb6de63eb7732"><span>Click <strong id="obs_03_0135__obs_03_0134_b1674854817265">Add Bucket</strong> on the upper left corner of the page. The <strong id="obs_03_0135__obs_03_0134_b13751144862618">Add Bucket</strong> dialog box is displayed.</span></li><li id="obs_03_0135__obs_03_0134_li7377145292"><span>Select <strong id="obs_03_0135__obs_03_0134_b5912125062619">Add external bucket</strong> and enter the bucket name.</span></li><li id="obs_03_0135__obs_03_0134_la9ceacba80e54f22a68a7e5177d98bdc"><span>Click <strong id="obs_03_0135__obs_03_0134_b18805125942613">OK</strong>. The external bucket is added successfully.</span></li><li id="obs_03_0135__obs_03_0134_li758104014911"><span>Click the newly added external bucket to open the bucket.</span></li><li id="obs_03_0135__obs_03_0134_li66442415105"><span>Click <strong id="obs_03_0135__obs_03_0134_b77747554275">Upload Object</strong>, and objects can be successfully uploaded to the bucket.</span></li><li id="obs_03_0135__obs_03_0134_li8101136191118"><span>Select an object in the bucket and click <strong id="obs_03_0135__obs_03_0134_b69808597288">Delete</strong>. The object can be deleted successfully.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0433.html">External Buckets</a></div>
|
|
</div>
|
|
</div>
|
|
|