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>
220 lines
15 KiB
HTML
220 lines
15 KiB
HTML
<a name="swr_02_0045"></a><a name="swr_02_0045"></a>
|
|
|
|
<h1 class="topictitle1">Querying Organization Permissions</h1>
|
|
<div id="body1531798197459"><div class="section" id="swr_02_0045__se03aae4436e64394a95dc13b6f233898"><h4 class="sectiontitle">Function</h4><p id="swr_02_0045__a7005bd3228d34f8ea0fb7b75b17cfbb2">Query organization permissions.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0045__s476df674307e4b04b9545f9575dde042"><h4 class="sectiontitle">URI</h4><p id="swr_02_0045__p3537273892216">GET /v2/manage/namespaces/{namespace}/access</p>
|
|
<p id="swr_02_0045__p7796183494813">For details about parameters, see <a href="#swr_02_0045__table73271639103420">Table 1</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0045__table73271639103420"></a><a name="table73271639103420"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0045__table73271639103420" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="swr_02_0045__row53291539153419"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.2.4.2.5.1.1"><p id="swr_02_0045__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_0045__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_0045__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_0045__p8241114913611">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0045__row7335939103416"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0045__p6843228526">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0045__p114410571773">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0045__p1714412571871">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0045__p19616524474">Organization name.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0045__s8246d3afdd6f44dc817ce0c3f2ac7d53"><h4 class="sectiontitle">Request</h4><ul id="swr_02_0045__ul1110712203406"><li id="swr_02_0045__li19107102018408">Request parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0045__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0045__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_0045__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_0045__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_0045__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_0045__p1139441132112">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0045__row53905142117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="swr_02_0045__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_0045__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_0045__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_0045__p4398121132110">Message body type (format). The value can be <strong id="swr_02_0045__b109574417771539">application/json</strong> or <strong id="swr_02_0045__b82508452271539">charset=utf-8 application/json</strong>.</p>
|
|
<p id="swr_02_0045__p164001319211">The default value is <strong id="swr_02_0045__b14276461972230">application/json</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0045__row139111182110"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="swr_02_0045__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_0045__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_0045__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_0045__p1240311152118">User token.</p>
|
|
<p id="swr_02_0045__p1840341142114">The token can be obtained by calling an IAM API. The value of <strong id="swr_02_0045__b157838497871426">X-Subject-Token</strong> in the response header is the user token.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="swr_02_0045__li85106211408">Example request<pre class="screen" id="swr_02_0045__screen11748172212473">GET https://{Endpoint}/v2/manage/namespaces/<em id="swr_02_0045__i121212664212">group</em>/access</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0045__sab9be5ce850743859bb238e072f8d1f2"><h4 class="sectiontitle">Response</h4><ul id="swr_02_0045__ul948212466426"><li id="swr_02_0045__li44821146164212">Response parameters<div class="p" id="swr_02_0045__p1257719236193"><a name="swr_02_0045__li44821146164212"></a><a name="li44821146164212"></a>Status code: 200
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0045__t4b8ef5821d984e5bb98d60fbcaae2f10" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="swr_02_0045__rb0bcfb9829c841cc8324bb05c4bf5f12"><th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.4.2.1.1.1.2.4.1.1"><p id="swr_02_0045__p1496715816819">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.1.1.1.2.4.1.2"><p id="swr_02_0045__p168241811381">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="59%" id="mcps1.3.4.2.1.1.1.2.4.1.3"><p id="swr_02_0045__p38244111882">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0045__rd2e8de514d8441b98053e2d715a61142"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.1.1.2.4.1.1 "><p id="swr_02_0045__p1012113524165">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.1.2.4.1.2 "><p id="swr_02_0045__p1512025251619">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.4.2.1.1.1.2.4.1.3 "><p id="swr_02_0045__p4119752181610">Permission ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0045__row674422085119"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.1.1.2.4.1.1 "><p id="swr_02_0045__p3118652111610">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.1.2.4.1.2 "><p id="swr_02_0045__p4323171581519">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.4.2.1.1.1.2.4.1.3 "><p id="swr_02_0045__p9116752151615">Organization name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0045__row195241733121314"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.1.1.2.4.1.1 "><p id="swr_02_0045__p2524153314134">creator_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.1.2.4.1.2 "><p id="swr_02_0045__p13326515191512">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.4.2.1.1.1.2.4.1.3 "><p id="swr_02_0045__p16524133181312">Organization creator.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0045__row19282975146"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.1.1.2.4.1.1 "><p id="swr_02_0045__p128214721413">self_auth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.1.2.4.1.2 "><p id="swr_02_0045__p1628218791415"><a href="#swr_02_0045__table16690123312516">Object</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.4.2.1.1.1.2.4.1.3 "><p id="swr_02_0045__p16502201811340">Permissions of the current user.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0045__row118081529141415"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.1.1.2.4.1.1 "><p id="swr_02_0045__p6808102917143">others_auths</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.1.2.4.1.2 "><p id="swr_02_0045__p4809172913147">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.4.2.1.1.1.2.4.1.3 "><p id="swr_02_0045__p61079469544">Permissions of other users.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0045__table16690123312516"></a><a name="table16690123312516"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0045__table16690123312516" frame="border" border="1" rules="all"><caption><b>Table 4 </b>self_auth parameter description</caption><thead align="left"><tr id="swr_02_0045__row12690103365117"><th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.4.2.1.1.2.2.4.1.1"><p id="swr_02_0045__p1069003385117">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.29%" id="mcps1.3.4.2.1.1.2.2.4.1.2"><p id="swr_02_0045__p9690133315518">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54.71%" id="mcps1.3.4.2.1.1.2.2.4.1.3"><p id="swr_02_0045__p196903338512">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0045__row469011335510"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.1.2.2.4.1.1 "><p id="swr_02_0045__p2690183325119">user_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.29%" headers="mcps1.3.4.2.1.1.2.2.4.1.2 "><p id="swr_02_0045__p69014461148">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.71%" headers="mcps1.3.4.2.1.1.2.2.4.1.3 "><p id="swr_02_0045__p46175204712">User ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0045__row86901833165118"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.1.2.2.4.1.1 "><p id="swr_02_0045__p1569063385116">user_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.29%" headers="mcps1.3.4.2.1.1.2.2.4.1.2 "><p id="swr_02_0045__p690624614140">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.71%" headers="mcps1.3.4.2.1.1.2.2.4.1.3 "><p id="swr_02_0045__p1761185234713">Username.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0045__row76916331519"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.1.2.2.4.1.1 "><p id="swr_02_0045__p136911433115115">auth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.29%" headers="mcps1.3.4.2.1.1.2.2.4.1.2 "><p id="swr_02_0045__p12295101317202">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.71%" headers="mcps1.3.4.2.1.1.2.2.4.1.3 "><p id="swr_02_0045__p1862135214710">User permission</p>
|
|
<ul id="swr_02_0045__ul654813144019"><li id="swr_02_0045__li115901316202">7: Manage</li><li id="swr_02_0045__li55991417708">3: Write</li><li id="swr_02_0045__li15482141406">1: Read</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</li><li id="swr_02_0045__li165464844217">Example response<pre class="screen" id="swr_02_0045__screen115699975811">{
|
|
"id": 1334795,
|
|
"name": "group",
|
|
"creator_name": "user",
|
|
"self_auth": {
|
|
"user_id": "050b12577f00269a1fcfc01f65239697",
|
|
"user_name": "user",
|
|
"auth": 7
|
|
},
|
|
"others_auths": [
|
|
{
|
|
"user_id": "06d89c3b6d800f2d1f28c01f0d882285",
|
|
"user_name": "user_01",
|
|
"auth": 1
|
|
},
|
|
{
|
|
"user_id": "050b12577f00269a1fcfc01f65239697",
|
|
"user_name": "user",
|
|
"auth": 7
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0045__s336c1dbc7af446a1b3cc077ea3f82fc9"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0045__t33d02fa79e8443868a71c99f411610a5" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0045__r9eb80d64e8f34d0db940daa95fc929dd"><th align="left" class="cellrowborder" valign="top" width="16.439999999999998%" id="mcps1.3.5.2.1.3.1.1"><p id="swr_02_0045__p15519411418">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="83.56%" id="mcps1.3.5.2.1.3.1.2"><p id="swr_02_0045__p85214434110">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0045__r1cc0192c651444db882dde750b14be23"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0045__a6a3639a3cb154e17b95c5076c8036471">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0045__p125033664815">Request successful.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0045__r0bd68000afe546dd9c7a8d3a05991a04"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0045__ad46ccdc6b7e04df3b6b5679f7606f434">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0045__p450143634820">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0045__row059261364320"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0045__p059261310438">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0045__p75033614814">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0045__row9547111612437"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0045__p19547131615432">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0045__p10501336134817">The organization does not exist.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0045__r19bdef782c164c93917f897241e521f8"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0045__a7da68e311c0f4267bacf3cbdb71d1ead">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0045__p9672319114">Internal error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0045__section134071631161117"><h4 class="sectiontitle">Error Codes</h4><p id="swr_02_0045__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>
|
|
|