1
0
forked from docs/doc-exports
doc-exports/docs/css/api-ref/css_03_0065.html
Zheng, Xiu 3fa966049f css api 20240704 version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com>
Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
2024-07-22 17:01:37 +00:00

223 lines
20 KiB
HTML

<a name="css_03_0065"></a><a name="css_03_0065"></a>
<h1 class="topictitle1">Permissions Policies and Supported Actions</h1>
<div id="body8662426"><p id="css_03_0065__en-us_topic_0170926097_p461913135317">This section describes fine-grained permissions management for your CSS. If your cloud account does not need individual IAM users, then you may skip over this chapter.</p>
<p id="css_03_0065__p059412417397">By default, new IAM users do not have any permissions assigned. You need to add a user to one or more groups, and assign permissions policies to these groups. Users inherit permissions from the groups to which they are added and can perform specified operations on cloud services based on the permissions.</p>
<p id="css_03_0065__p072044011398">You can grant permissions to a role or by creating a policy. Roles are a type of coarse-grained authorization mechanism that defines permissions related to user responsibilities. Policies define API-based permissions for operations on specific resources under certain conditions, allowing for more fine-grained, secure access control of cloud resources.</p>
<div class="note" id="css_03_0065__note7150102411406"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="css_03_0065__p446213216382">Policy-based authorization is useful if you want to allow or deny the access to an API.</p>
</div></div>
<p id="css_03_0065__p855772312439">An account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. The permissions required for calling an API are determined by the actions supported by the API. Only users who have been granted permissions allowing the actions can call the API successfully.</p>
<div class="section" id="css_03_0065__section19608139154219"><h4 class="sectiontitle">Supported Actions</h4><p id="css_03_0065__p553516404422">CSS provides system-defined policies that can be directly used in IAM. CSS administrators can create custom policies and use them to supplement system-defined policies, implementing more refined access control. Actions supported by policies are specific to APIs. The following are common concepts related to policies:</p>
<ul id="css_03_0065__ul1233771218441"><li id="css_03_0065__li1433761234418">Permissions: Allow or deny operations on specified resources under specific conditions.</li><li id="css_03_0065__li7428184022710">APIs: REST APIs that can be called by a custom policy.</li><li id="css_03_0065__li944819674510">Actions: added to a custom policy to control permissions for specific operations.</li><li id="css_03_0065__li590814513453">Dependencies: actions which a specific action depends on. When allowing an action for a user, you also need to allow any existing action dependencies for that user.</li><li id="css_03_0065__li1777464514513">IAM or enterprise projects: type of projects for which an action will take effect. Policies that contain actions supporting both IAM and enterprise projects can be assigned to user groups and take effect in both IAM and Enterprise Management. Policies that only contain actions supporting IAM projects can be assigned to user groups and only take effect for IAM.<div class="note" id="css_03_0065__note1048733895216"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="css_03_0065__p688802545318">The check mark (√) indicates that an action takes effect. The cross mark (x) indicates that an action does not take effect.</p>
</div></div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0065__table1063293623915" frame="border" border="1" rules="all"><caption><b>Table 1 </b>API actions</caption><thead align="left"><tr id="css_03_0065__row2624133619399"><th align="left" class="cellrowborder" valign="top" width="16.028397160283973%" id="mcps1.3.6.3.5.2.2.6.1.1"><p id="css_03_0065__p562312366392">Permission</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="36.92630736926308%" id="mcps1.3.6.3.5.2.2.6.1.2"><p id="css_03_0065__p10623336113913">API</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.788121187881213%" id="mcps1.3.6.3.5.2.2.6.1.3"><p id="css_03_0065__p126231636123915">Action</p>
<p id="css_03_0065__p262383612390"> </p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.348865113488651%" id="mcps1.3.6.3.5.2.2.6.1.4"><p id="css_03_0065__p18623153603910">IAM Project</p>
<p id="css_03_0065__p06241336113920"> </p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.90830916908309%" id="mcps1.3.6.3.5.2.2.6.1.5"><p id="css_03_0065__p1962423611391">Enterprise Project</p>
<p id="css_03_0065__p18624143613399"> </p>
</th>
</tr>
</thead>
<tbody><tr id="css_03_0065__row18624173620393"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p26241236113915">Creating a cluster</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p8624163683917">POST /v1.0/{project_id}/clusters</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p4624436123915">css:cluster:create</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p13624113613918"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p126241036143912"></p>
</td>
</tr>
<tr id="css_03_0065__row1462463623917"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p15624193613393">Querying a cluster list</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p86241736153914">GET /v1.0/{project_id}/clusters</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p76241364396">css:cluster:list</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p206242369394"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p96241136153918"></p>
</td>
</tr>
<tr id="css_03_0065__row12625836183917"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p1062423615392">Querying cluster details</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p146242361399">GET /v1.0/{project_id}/clusters/{cluster_id}</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p16245367392">css:cluster:get</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p3625133673917"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p0625136103919"></p>
</td>
</tr>
<tr id="css_03_0065__row17625736103914"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p962503693918">Deleting a cluster</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p3625436133913">DELETE /v1.0/{project_id}/clusters/{cluster_id}</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p1162573613917">css:cluster:delete</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p1062517363390"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p6625123610394"></p>
</td>
</tr>
<tr id="css_03_0065__row18625103613910"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p17625123663920">Restarting a cluster</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p362512365399">POST /v1.0/{project_id}/clusters/{cluster_id}/restart</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p1662519368395">css:cluster:restart</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p10625203617392"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p1462543615390"></p>
</td>
</tr>
<tr id="css_03_0065__row26261436193917"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p362523611396">Scaling out a cluster</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p1462514361393">POST /v1.0/{project_id}/clusters/{cluster_id}/extend</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p136261636123917">css:cluster:scaleOut</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p7626203614397"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p36268362392"></p>
</td>
</tr>
<tr id="css_03_0065__row1362613653918"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p2062613614390">Adding instances and expanding instance storage capacity</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p2626123610397">POST /v1.0/{project_id}/clusters/{cluster_id}/role_extend</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p1562663613918">css:cluster:expand</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p6626103614398"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p1462633611397"></p>
</td>
</tr>
<tr id="css_03_0065__row146260362396"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p176261336163919">Querying tags of a specified cluster</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p156264367395">GET /v1.0/{project_id}/css-cluster/{cluster_id}/tags</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p13626113617390">css:tag:get</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p46261936133919"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p1662673610398"></p>
</td>
</tr>
<tr id="css_03_0065__row1062911362392"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p462919360391">Automatically setting basic configurations of a cluster snapshot</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p13629636193917">POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/auto_setting</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p206291936153912">css:snapshot:enableAtomaticSnapsot</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p162918360391"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p1362953673913"></p>
</td>
</tr>
<tr id="css_03_0065__row462918364398"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p76291336153914">Modifying basic configurations of a cluster snapshot</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p5629163633915">POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/setting</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p2629103610396">css:snapshot:setSnapshotContiguration</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p0629173617397"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p166296364396"></p>
</td>
</tr>
<tr id="css_03_0065__row116302364392"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p8630143673915">Setting the automatic snapshot creation policy</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p1863012366396">POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p7630163653919">css:snapshot:setSnapshotPolicy</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p20630183617397"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p5630113612396"></p>
</td>
</tr>
<tr id="css_03_0065__row10630153613919"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p2063003617391">Querying the automatic snapshot creation policy</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p1063016364395">GET /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p126301736143914">css:snapshot:getSnapshotPolicy</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p116304365396"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p36301936183914"></p>
</td>
</tr>
<tr id="css_03_0065__row1363083673915"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p16630103683916">Manually creating a snapshot</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p863033613916">POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p126301036133917">css:snapshot:create</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p6630143633918"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p563017365399"></p>
</td>
</tr>
<tr id="css_03_0065__row146312368397"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p76301736163910">Querying the snapshot list</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p10631103620394">GET /v1.0/{project_id}/clusters/{cluster_id}/index_snapshots</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p1963153613910">css:snapshot:list</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p363143612395"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p15631183683913"></p>
</td>
</tr>
<tr id="css_03_0065__row46314364394"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p1363163673917">Restoring a snapshot</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p4631836113913">POST /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/{snapshot_id}/restore</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p263163616395">css:snapshot:restore</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p8631113613398"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p2631136133912"></p>
</td>
</tr>
<tr id="css_03_0065__row1632113663918"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p5631636133920">Deleting a snapshot</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p1163123612392">DELETE /v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/{snapshot_id}</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p8631436103913">css:snapshot:delete</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p7631113617395"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p156322365395"></p>
</td>
</tr>
<tr id="css_03_0065__row13632173620398"><td class="cellrowborder" valign="top" width="16.028397160283973%" headers="mcps1.3.6.3.5.2.2.6.1.1 "><p id="css_03_0065__p10632736173913">Disabling the snapshot function</p>
</td>
<td class="cellrowborder" valign="top" width="36.92630736926308%" headers="mcps1.3.6.3.5.2.2.6.1.2 "><p id="css_03_0065__p56326361399">DELETE /v1.0/{project_id}/clusters/{cluster_id}/index_snapshots</p>
</td>
<td class="cellrowborder" valign="top" width="18.788121187881213%" headers="mcps1.3.6.3.5.2.2.6.1.3 "><p id="css_03_0065__p19632336153917">css:snapshot:disableSnapshotFuction</p>
</td>
<td class="cellrowborder" valign="top" width="11.348865113488651%" headers="mcps1.3.6.3.5.2.2.6.1.4 "><p id="css_03_0065__p863243633911"></p>
</td>
<td class="cellrowborder" valign="top" width="16.90830916908309%" headers="mcps1.3.6.3.5.2.2.6.1.5 "><p id="css_03_0065__p20632193612394"></p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
</div>