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>
51 lines
6.2 KiB
HTML
51 lines
6.2 KiB
HTML
<a name="obs_40_0014"></a><a name="obs_40_0014"></a>
|
|
|
|
<h1 class="topictitle1">Granting an IAM User the Permissions to Create and List Buckets</h1>
|
|
<div id="body1588765301378"><div class="section" id="obs_40_0014__section43491717165116"><h4 class="sectiontitle">Scenario</h4><p id="obs_40_0014__p3431154410448">This topic describes how to grant an IAM user the permissions to create and list buckets. An IAM user with this permission can create and list buckets. The created buckets are owned by the account of the IAM user. The IAM user can also view all buckets under the account.</p>
|
|
</div>
|
|
<div class="section" id="obs_40_0014__section106520378518"><h4 class="sectiontitle">Recommended Configuration</h4><p id="obs_40_0014__p103657437515">To create and list buckets, you need OBS-level permissions, which can be configured on IAM.</p>
|
|
</div>
|
|
<div class="section" id="obs_40_0014__section4844164485112"><h4 class="sectiontitle">Procedure</h4><ol id="obs_40_0014__ol170633855216"><li id="obs_40_0014__li10432131493113"><span>Log in to the management console using a cloud service account.</span></li><li id="obs_40_0014__li625685643115"><span>On the top menu bar, choose <strong id="obs_40_0014__b447811155440">Service List</strong> > <strong id="obs_40_0014__b154781715144419">Management & Deployment</strong> > <strong id="obs_40_0014__b1047841564414">Identity and Access Management</strong>.</span></li><li id="obs_40_0014__li1848615103345"><span>In the navigation pane, choose <strong id="obs_40_0014__b56342219314">Permissions</strong>.</span></li><li id="obs_40_0014__li1388483016366"><span>Click <strong id="obs_40_0014__b1210915505130">Create Custom Policy</strong> in the upper right corner.</span></li><li id="obs_40_0014__li1161395452712"><span>Configure a custom policy.</span><p><div class="fignone" id="obs_40_0014__fig692184720164"><span class="figcap"><b>Figure 1 </b>Configuring a custom policy</span><br><span><img id="obs_40_0014__image179221947161619" src="en-us_image_0000001385655888.png"></span></div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_40_0014__table6375112782815" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters for configuring a custom policy</caption><thead align="left"><tr id="obs_40_0014__row6375927132818"><th align="left" class="cellrowborder" valign="top" width="30.3%" id="mcps1.3.3.2.5.2.2.2.3.1.1"><p id="obs_40_0014__p23757272286"><strong id="obs_40_0014__b204325640094018">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.69999999999999%" id="mcps1.3.3.2.5.2.2.2.3.1.2"><p id="obs_40_0014__p63751027152820"><strong id="obs_40_0014__b128071713125610">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_40_0014__row17375102752819"><td class="cellrowborder" valign="top" width="30.3%" headers="mcps1.3.3.2.5.2.2.2.3.1.1 "><p id="obs_40_0014__p1737572772816">Policy Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.69999999999999%" headers="mcps1.3.3.2.5.2.2.2.3.1.2 "><p id="obs_40_0014__p83758278280">Enter a policy name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_40_0014__row1937592712288"><td class="cellrowborder" valign="top" width="30.3%" headers="mcps1.3.3.2.5.2.2.2.3.1.1 "><p id="obs_40_0014__p173753272284">Policy View</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.69999999999999%" headers="mcps1.3.3.2.5.2.2.2.3.1.2 "><p id="obs_40_0014__p17375102714285">Select one based on your own habits. <strong id="obs_40_0014__b838353619815">Visual editor</strong> is used here.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_40_0014__row133751227142812"><td class="cellrowborder" valign="top" width="30.3%" headers="mcps1.3.3.2.5.2.2.2.3.1.1 "><p id="obs_40_0014__p203751027172816">Policy Content</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.69999999999999%" headers="mcps1.3.3.2.5.2.2.2.3.1.2 "><ul id="obs_40_0014__ul312618263319"><li id="obs_40_0014__li112652673110">Select <strong id="obs_40_0014__b1980394573916">Allow</strong>.</li><li id="obs_40_0014__li1952919359">Select <strong id="obs_40_0014__b1664216445582">Object Storage Service (OBS)</strong>.</li><li id="obs_40_0014__li813512281313">Select <strong id="obs_40_0014__b32951138418">obs:bucket:CreateBucket</strong> from <strong id="obs_40_0014__b99244453414">ReadWrite</strong> actions and <strong id="obs_40_0014__b1824511271411">obs:bucket:ListAllMyBuckets</strong> from <strong id="obs_40_0014__b1712418495414">ListOnly</strong> actions.</li><li id="obs_40_0014__li024173143415">Select <strong id="obs_40_0014__b31073612414">All</strong> for resources.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_40_0014__row5473173210497"><td class="cellrowborder" valign="top" width="30.3%" headers="mcps1.3.3.2.5.2.2.2.3.1.1 "><p id="obs_40_0014__p83756273285">Scope</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.69999999999999%" headers="mcps1.3.3.2.5.2.2.2.3.1.2 "><p id="obs_40_0014__p1037542711283">Use the default value <strong id="obs_40_0014__b10986123241">Global services</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="obs_40_0014__li1293324623719"><span>Click <strong id="obs_40_0014__b152631939349">OK</strong>.</span></li><li id="obs_40_0014__li81339157389"><span><a href="https://docs.otc.t-systems.com/en-us/usermanual/iam/iam_01_0030.html" target="_blank" rel="noopener noreferrer">Create a user group and assign permissions</a>.</span><p><p id="obs_40_0014__p1312812258417">Apply the created custom policy to the user group by following the instructions in the IAM document.</p>
|
|
</p></li><li id="obs_40_0014__li12273529113919"><span><a href="https://docs.otc.t-systems.com/en-us/usermanual/iam/iam_01_0031.html" target="_blank" rel="noopener noreferrer">Add the IAM user you want to authorize to the created user group</a>.</span><p><div class="note" id="obs_40_0014__note1402619155515"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="obs_40_0014__p37253183814">Due to data caching, it takes about 10 to 15 minutes for a custom policy to take effect.</p>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_40_0013.html">Granting Permissions to an IAM User Under the Account</a></div>
|
|
</div>
|
|
</div>
|
|
|