forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com> Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
189 lines
13 KiB
HTML
189 lines
13 KiB
HTML
<a name="swr_02_0044"></a><a name="swr_02_0044"></a>
|
|
|
|
<h1 class="topictitle1">Updating Organization Permissions</h1>
|
|
<div id="body1531798197456"><div class="section" id="swr_02_0044__se03aae4436e64394a95dc13b6f233898"><h4 class="sectiontitle">Function</h4><p id="swr_02_0044__a7005bd3228d34f8ea0fb7b75b17cfbb2">Update the organization operation permissions for certain users.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__s476df674307e4b04b9545f9575dde042"><h4 class="sectiontitle">URI</h4><p id="swr_02_0044__p3537273892216">PATCH /v2/manage/namespaces/{<em id="swr_02_0044__i544112470411">namespace</em>}/access</p>
|
|
<p id="swr_02_0044__p792131614483">For details about parameters, see <a href="#swr_02_0044__table73271639103420">Table 1</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0044__table73271639103420"></a><a name="table73271639103420"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0044__table73271639103420" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="swr_02_0044__row53291539153419"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.2.4.2.5.1.1"><p id="swr_02_0044__p1324110491762">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13%" id="mcps1.3.2.4.2.5.1.2"><p id="swr_02_0044__p22411349265">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.2.4.2.5.1.3"><p id="swr_02_0044__p152414491669">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54%" id="mcps1.3.2.4.2.5.1.4"><p id="swr_02_0044__p8241114913611">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0044__row7335939103416"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0044__p6843228526">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0044__p284310281826">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0044__p1884432818210">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0044__p19616524474">Organization name.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__s8246d3afdd6f44dc817ce0c3f2ac7d53"><h4 class="sectiontitle">Request</h4><ul id="swr_02_0044__ul0174627238"><li id="swr_02_0044__li01747292320">Request parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0044__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0044__row183901613218"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="swr_02_0044__p03921162117">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="swr_02_0044__p13393314210">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="swr_02_0044__p93941919219">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="swr_02_0044__p1139441132112">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0044__row53905142117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="swr_02_0044__p4395116211">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="swr_02_0044__p839611110215">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="swr_02_0044__p133977122119">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="swr_02_0044__p4398121132110">Message body type (format). The value can be <strong id="swr_02_0044__b154502115572230">application/json</strong> or <strong id="swr_02_0044__b213275647672230">charset=utf-8 application/json</strong>.</p>
|
|
<p id="swr_02_0044__p164001319211">The default value is <strong id="swr_02_0044__b18399409872315">application/json</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__row139111182110"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="swr_02_0044__p840121122119">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="swr_02_0044__p1340115118212">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="swr_02_0044__p14027182118">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="swr_02_0044__p1240311152118">User token.</p>
|
|
<p id="swr_02_0044__p1840341142114">The token can be obtained by calling an IAM API. The value of <strong id="swr_02_0044__b189168952371426">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__table202391481153" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameter description</caption><thead align="left"><tr id="swr_02_0044__row72398489516"><th align="left" class="cellrowborder" valign="top" width="17.349999999999998%" id="mcps1.3.3.2.1.2.2.5.1.1"><p id="swr_02_0044__p72407481958">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.48%" id="mcps1.3.3.2.1.2.2.5.1.2"><p id="swr_02_0044__p1624016481457">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.05%" id="mcps1.3.3.2.1.2.2.5.1.3"><p id="swr_02_0044__p16240848251">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="55.120000000000005%" id="mcps1.3.3.2.1.2.2.5.1.4"><p id="swr_02_0044__p82400481556">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0044__row132401487515"><td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="swr_02_0044__p162402487513">[Array element]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.48%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="swr_02_0044__p5240124820512">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.05%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="swr_02_0044__p14240104812512">Array of <a href="#swr_02_0044__table6912142367">objects</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="55.120000000000005%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="swr_02_0044__p12240114819515">Information required for updating organization permissions</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0044__table6912142367"></a><a name="table6912142367"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0044__table6912142367" frame="border" border="1" rules="all"><caption><b>Table 4 </b>[Array element]</caption><thead align="left"><tr id="swr_02_0044__row494101419361"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.3.2.1.3.2.5.1.1"><p id="swr_02_0044__p93432046672">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13%" id="mcps1.3.3.2.1.3.2.5.1.2"><p id="swr_02_0044__p934311465719">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.3.2.1.3.2.5.1.3"><p id="swr_02_0044__p6343346671">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54%" id="mcps1.3.3.2.1.3.2.5.1.4"><p id="swr_02_0044__p123435460710">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0044__row69961413365"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.1.3.2.5.1.1 "><p id="swr_02_0044__p1110011416365">user_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.1.3.2.5.1.2 "><p id="swr_02_0044__p135943392073">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.3.2.5.1.3 "><p id="swr_02_0044__p134197181510">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.3.2.1.3.2.5.1.4 "><p id="swr_02_0044__p84183113218">User ID. Obtain it from IAM.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__row3105101418360"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.1.3.2.5.1.1 "><p id="swr_02_0044__p3107314193615">user_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.1.3.2.5.1.2 "><p id="swr_02_0044__p159712391173">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.3.2.5.1.3 "><p id="swr_02_0044__p154318711511">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.3.2.1.3.2.5.1.4 "><p id="swr_02_0044__p542111117218">Username. Obtain it from IAM.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__row135101232143711"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.1.3.2.5.1.1 "><p id="swr_02_0044__p35101132143714">auth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.1.3.2.5.1.2 "><p id="swr_02_0044__p260123920711">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.3.2.5.1.3 "><p id="swr_02_0044__p151033215376">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.3.2.1.3.2.5.1.4 "><p id="swr_02_0044__p1967577102418">User permission</p>
|
|
<ul id="swr_02_0044__ul33021412132414"><li id="swr_02_0044__li1816101510243">7: Manage</li><li id="swr_02_0044__li1970891672416">3: Write</li><li id="swr_02_0044__li430231212411">1: Read</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="swr_02_0044__li14691124192318">Example request<pre class="screen" id="swr_02_0044__screen12280231154116">PATCH https://{endpoint}/v2/manage/namespaces/{namespace}/access
|
|
|
|
[ {
|
|
"user_id" : "fb3f175c1fd146ab8cdae3272be6107b",
|
|
"user_name" : "user01",
|
|
"auth" : 7
|
|
} ]</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__sab9be5ce850743859bb238e072f8d1f2"><h4 class="sectiontitle">Response</h4><ul id="swr_02_0044__ul11656391015"><li id="swr_02_0044__li194756411106">Response parameters<p id="swr_02_0044__p370911481507"><a name="swr_02_0044__li194756411106"></a><a name="li194756411106"></a>N/A</p>
|
|
</li><li id="swr_02_0044__li129849446013">Example response<pre class="screen" id="swr_02_0044__screen148234561804">{}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__s336c1dbc7af446a1b3cc077ea3f82fc9"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0044__t33d02fa79e8443868a71c99f411610a5" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0044__r9eb80d64e8f34d0db940daa95fc929dd"><th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.5.2.1.3.1.1"><p id="swr_02_0044__p15519411418">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="84%" id="mcps1.3.5.2.1.3.1.2"><p id="swr_02_0044__p85214434110">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0044__r1cc0192c651444db882dde750b14be23"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0044__a6a3639a3cb154e17b95c5076c8036471">201</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="84%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0044__p125033664815">Updated successfully.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__r0bd68000afe546dd9c7a8d3a05991a04"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0044__ad46ccdc6b7e04df3b6b5679f7606f434">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="84%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0044__p450143634820">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__row059261364320"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0044__p059261310438">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="84%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0044__p75033614814">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__row9547111612437"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0044__p19547131615432">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="84%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0044__p10501336134817">The organization does not exist.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0044__r19bdef782c164c93917f897241e521f8"><td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0044__a7da68e311c0f4267bacf3cbdb71d1ead">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="84%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0044__p66431659191020">Internal error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0044__section134071631161117"><h4 class="sectiontitle">Error Codes</h4><p id="swr_02_0044__p15408431161114">For details, see <a href="swr_02_0024.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000001421005366.html">Organization Permission Management</a></div>
|
|
</div>
|
|
</div>
|
|
|