forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
189 lines
16 KiB
HTML
189 lines
16 KiB
HTML
<a name="swr_02_0044"></a><a name="swr_02_0044"></a>
|
|
|
|
<h1 class="topictitle1">Updating Organization Permissions</h1>
|
|
<div id="body8662426"><div class="section" id="swr_02_0044__en-us_topic_0000001231113973_section1220513173315"><h4 class="sectiontitle">Description</h4><p id="swr_02_0044__en-us_topic_0000001231113973_p52061313334">Update the organization operation permissions of certain users.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__en-us_topic_0000001231113973_section15206153173316"><h4 class="sectiontitle">Constraints</h4><p id="swr_02_0044__en-us_topic_0000001231113973_p82061531183315">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__en-us_topic_0000001231113973_section16207173114337"><h4 class="sectiontitle">URI</h4><p id="swr_02_0044__en-us_topic_0000001231113973_p17207531113311">PATCH /v2/manage/namespaces/{namespace}/access</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0044__en-us_topic_0000001231113973_table120873118339" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameter</caption><thead align="left"><tr id="swr_02_0044__en-us_topic_0000001231113973_row1420733153314"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="swr_02_0044__en-us_topic_0000001231113973_p132082031163312">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="swr_02_0044__en-us_topic_0000001231113973_p62091131123319">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="swr_02_0044__en-us_topic_0000001231113973_p42101531153310">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="swr_02_0044__en-us_topic_0000001231113973_p11211631203318">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0044__en-us_topic_0000001231113973_row1620853116332"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p521117318332">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p421103119332">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0044__en-us_topic_0000001231113973_p17211133103317">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0044__en-us_topic_0000001231113973_p92131031103315">Organization name. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__en-us_topic_0000001231113973_section921319311333"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0044__en-us_topic_0000001231113973_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0044__en-us_topic_0000001231113973_row132141031133319"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="swr_02_0044__en-us_topic_0000001231113973_p14215231153317">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="swr_02_0044__en-us_topic_0000001231113973_p121518316331">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="swr_02_0044__en-us_topic_0000001231113973_p321512312330">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="swr_02_0044__en-us_topic_0000001231113973_p1215133116334">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0044__en-us_topic_0000001231113973_row3214103114330"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p102167313334">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p172161314337">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0044__en-us_topic_0000001231113973_p0216153123318">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0044__en-us_topic_0000001231113973_p6216731113312">Message body type (format). The value can be <strong id="swr_02_0044__en-us_topic_0000001231113973_b1731016405017">application/json</strong> or <strong id="swr_02_0044__en-us_topic_0000001231113973_b93115405017">charset=utf-8 application/json</strong>.</p>
|
|
<p id="swr_02_0044__en-us_topic_0000001231113973_p172161831173315">Default value: <strong id="swr_02_0044__en-us_topic_0000001231113973_b27117431708">application/json</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__en-us_topic_0000001231113973_row821493183314"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p2216331173312">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p192165312334">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0044__en-us_topic_0000001231113973_p421710313332">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0044__en-us_topic_0000001231113973_p122171231193311">User token.</p>
|
|
<p id="swr_02_0044__en-us_topic_0000001231113973_p20217103117332">The token can be obtained by calling the IAM API used to obtain a user token. The value of <strong id="swr_02_0044__en-us_topic_0000001231113973_b9583964641196">X-Subject-Token</strong> in the response header is the user token.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0044__en-us_topic_0000001231113973_request_RequestParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameter</caption><thead align="left"><tr id="swr_02_0044__en-us_topic_0000001231113973_row1021793112335"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="swr_02_0044__en-us_topic_0000001231113973_p62191731173315">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="swr_02_0044__en-us_topic_0000001231113973_p721973143315">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="swr_02_0044__en-us_topic_0000001231113973_p1721993123317">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="swr_02_0044__en-us_topic_0000001231113973_p121933110332">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0044__en-us_topic_0000001231113973_row1821883143312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p2219143183318">[items]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p6219183118335">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="swr_02_0044__en-us_topic_0000001231113973_p221993117331">Array of <a href="#swr_02_0044__en-us_topic_0000001231113973_request_UserAuth">UserAuth</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="swr_02_0044__en-us_topic_0000001231113973_p92204315334">Permissions required for updating organization permissions</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0044__en-us_topic_0000001231113973_request_UserAuth"></a><a name="en-us_topic_0000001231113973_request_UserAuth"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0044__en-us_topic_0000001231113973_request_UserAuth" frame="border" border="1" rules="all"><caption><b>Table 4 </b>UserAuth</caption><thead align="left"><tr id="swr_02_0044__en-us_topic_0000001231113973_row122003183311"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.1"><p id="swr_02_0044__en-us_topic_0000001231113973_p1722113118339">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.2"><p id="swr_02_0044__en-us_topic_0000001231113973_p533724719818">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.3"><p id="swr_02_0044__en-us_topic_0000001231113973_p022103114334">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.4.2.5.1.4"><p id="swr_02_0044__en-us_topic_0000001231113973_p5222173115335">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0044__en-us_topic_0000001231113973_row522011313337"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p0222123133315">user_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p7222103143314">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="swr_02_0044__en-us_topic_0000001231113973_p1522220313337">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="swr_02_0044__en-us_topic_0000001231113973_p6222431123311">User ID, which needs to be obtained from IAM.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__en-us_topic_0000001231113973_row3220931103318"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p62221631113313">user_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p1622383115332">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="swr_02_0044__en-us_topic_0000001231113973_p42235312337">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="swr_02_0044__en-us_topic_0000001231113973_p182232031123320">Username, which needs to be obtained from IAM.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__en-us_topic_0000001231113973_row322133120339"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p13223131133315">auth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p1322323193313">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="swr_02_0044__en-us_topic_0000001231113973_p15224163117336">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="swr_02_0044__en-us_topic_0000001231113973_p0224131203312">User permissions. <strong id="swr_02_0044__en-us_topic_0000001231113973_b1136443073516">7</strong>: manage. <strong id="swr_02_0044__en-us_topic_0000001231113973_b1236403010359">3</strong>: edit. <strong id="swr_02_0044__en-us_topic_0000001231113973_b53647308355">1</strong>: read.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__en-us_topic_0000001231113973_section1722563113320"><h4 class="sectiontitle">Response Parameters</h4><p id="swr_02_0044__en-us_topic_0000001231113973_p1122573153310">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__en-us_topic_0000001231113973_section32251431183312"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="swr_02_0044__en-us_topic_0000001231113973_screen2225123153318">PATCH https://{endpoint}/v2/manage/namespaces/{namespace}/access
|
|
|
|
[ {
|
|
"user_id" : "fb3f175c1fd146ab8cdae3272be6107b",
|
|
"user_name" : "user01",
|
|
"auth" : 7
|
|
} ]</pre>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__en-us_topic_0000001231113973_section1122673113320"><h4 class="sectiontitle">Example Response</h4><p id="swr_02_0044__en-us_topic_0000001231113973_p142267316334">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__en-us_topic_0000001231113973_section399113317335"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0044__en-us_topic_0000001231113973_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0044__en-us_topic_0000001231113973_row16243113113335"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="swr_02_0044__en-us_topic_0000001231113973_p1599133116338">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="swr_02_0044__en-us_topic_0000001231113973_p399113110333">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0044__en-us_topic_0000001231113973_row13244103113312"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p19991331143318">201</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p159911431183317">Update succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__en-us_topic_0000001231113973_row3244153153315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p4991631103314">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p11991173183312">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__en-us_topic_0000001231113973_row1324423183315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p1399103120332">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p179923315335">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__en-us_topic_0000001231113973_row162440313339"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p1199243133317">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p1399243173312">The organization was not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__en-us_topic_0000001231113973_row10244123113313"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0044__en-us_topic_0000001231113973_p7992631103311">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0044__en-us_topic_0000001231113973_p16992931183314">Internal error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__en-us_topic_0000001231113973_section129921631163312"><h4 class="sectiontitle">Error Codes</h4><p id="swr_02_0044__en-us_topic_0000001231113973_p299213153312">For details, see <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="swr_02_0090.html">Organization Permission Management</a></div>
|
|
</div>
|
|
</div>
|
|
|