forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
310 lines
23 KiB
HTML
310 lines
23 KiB
HTML
<a name="en-us_topic_0057845640"></a><a name="en-us_topic_0057845640"></a>
|
|
|
|
<h1 class="topictitle1">Querying Permissions of a User Group Corresponding to a Project</h1>
|
|
<div id="body1492670576129"><div class="section" id="en-us_topic_0057845640__section495175389414"><h4 class="sectiontitle">Function</h4><p id="en-us_topic_0057845640__p7747356489">This API is used to query the permissions of a specified user group corresponding to a project. A role is a set of permissions and represents a group of actions.</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0057845640__section3019338085013"><h4 class="sectiontitle">URI</h4><ul id="en-us_topic_0057845640__en-us_topic_0032920307_ul52733512"><li id="en-us_topic_0057845640__en-us_topic_0032920307_li4839561">URI format<p id="en-us_topic_0057845640__en-us_topic_0032920307_p43556055"><a name="en-us_topic_0057845640__en-us_topic_0032920307_li4839561"></a><a name="en-us_topic_0032920307_li4839561"></a>GET /v3/projects/{project_id}/groups/{group_id}/roles</p>
|
|
</li><li id="en-us_topic_0057845640__li1205595994225">URI parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0057845640__en-us_topic_0032920307_table36168141" frame="border" border="1" rules="all"><thead align="left"><tr id="en-us_topic_0057845640__en-us_topic_0032920307_row15662289"><th align="left" class="cellrowborder" valign="top" width="19.36%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="en-us_topic_0057845640__en-us_topic_0032920307_p60685926"><strong id="en-us_topic_0057845640__b842352706112519">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.24%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="en-us_topic_0057845640__en-us_topic_0032920307_p16612996"><strong id="en-us_topic_0057845640__b842352706112524">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.05%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="en-us_topic_0057845640__en-us_topic_0032920307_p3475410"><strong id="en-us_topic_0057845640__b842352706143526_1">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.35%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="en-us_topic_0057845640__en-us_topic_0032920307_p13072760"><strong id="en-us_topic_0057845640__b20601766145329_1">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0057845640__en-us_topic_0032920307_row52260639"><td class="cellrowborder" valign="top" width="19.36%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p5253358">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.24%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p22868878">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.05%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p40439847">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.35%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p54402144">Project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__en-us_topic_0032920307_row19857248"><td class="cellrowborder" valign="top" width="19.36%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p64933228">group_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.24%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p25100141">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.05%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p19845579">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.35%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p63988077">ID of a user group.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0057845640__section1437107585444"><h4 class="sectiontitle">Request Parameters</h4><ul id="en-us_topic_0057845640__ul34045825121737"><li id="en-us_topic_0057845640__li44144091121737">Parameters in the request header
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0057845640__en-us_topic_0032920307_table21736211" frame="border" border="1" rules="all"><thead align="left"><tr id="en-us_topic_0057845640__en-us_topic_0032920307_row48433347"><th align="left" class="cellrowborder" valign="top" width="19.490000000000002%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="en-us_topic_0057845640__en-us_topic_0032920307_p30787047"><strong id="en-us_topic_0057845640__a173ae121cc9e48328ca613e72f2a1504_1">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.860000000000003%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="en-us_topic_0057845640__en-us_topic_0032920307_p10722842"><strong id="en-us_topic_0057845640__a105e6ed8c3de4c5a9dde97ae5a71071e_1">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.17%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="en-us_topic_0057845640__en-us_topic_0032920307_p63243911"><strong id="en-us_topic_0057845640__b842352706143526_3">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.480000000000004%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="en-us_topic_0057845640__en-us_topic_0032920307_p22483156"><strong id="en-us_topic_0057845640__b20601766145329_3">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0057845640__en-us_topic_0032920307_row39604502"><td class="cellrowborder" valign="top" width="19.490000000000002%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p53848109">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.860000000000003%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p66729601">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.17%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p36388601">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.480000000000004%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p60756946111611">Authenticated token with the <strong id="en-us_topic_0057845640__b750798910387">Security Administrator</strong> permission.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="en-us_topic_0057845640__ul39514883121741"><li id="en-us_topic_0057845640__li9117507121741">Example request<pre class="screen" id="en-us_topic_0057845640__screen693243121741"><em id="en-us_topic_0057845640__i42547293121755">curl -i -k -H "X-Auth-Token:$token" -H 'Content-Type:application/json;charset=utf8' -X GET https://sample.domain.com/v3/projects/073bbf60da374853841cf6624c94de4b/groups/47d79cabc2cf4c35b13493d919a5bb3d/roles</em></pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0057845640__section422798898594"><h4 class="sectiontitle">Response Parameters</h4><ul id="en-us_topic_0057845640__ul5464199010524"><li id="en-us_topic_0057845640__li6140614310524">Parameters in the response body
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0057845640__table1056195410010" frame="border" border="1" rules="all"><thead align="left"><tr id="en-us_topic_0057845640__row2747156110010"><th align="left" class="cellrowborder" valign="top" width="19.490000000000002%" id="mcps1.3.4.2.1.1.1.5.1.1"><p id="en-us_topic_0057845640__p447620910517"><strong id="en-us_topic_0057845640__a173ae121cc9e48328ca613e72f2a1504_3">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.85%" id="mcps1.3.4.2.1.1.1.5.1.2"><p id="en-us_topic_0057845640__p17765536155914"><strong id="en-us_topic_0057845640__a105e6ed8c3de4c5a9dde97ae5a71071e_3">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.990000000000002%" id="mcps1.3.4.2.1.1.1.5.1.3"><p id="en-us_topic_0057845640__p755696810517"><strong id="en-us_topic_0057845640__b842352706143526_5">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.67%" id="mcps1.3.4.2.1.1.1.5.1.4"><p id="en-us_topic_0057845640__p6407638510517"><strong id="en-us_topic_0057845640__b20601766145329_5">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0057845640__row570214510010"><td class="cellrowborder" valign="top" width="19.490000000000002%" headers="mcps1.3.4.2.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__p5922062510010">links</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.85%" headers="mcps1.3.4.2.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__p17658363596">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.990000000000002%" headers="mcps1.3.4.2.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__p5331155510010">Dict</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.67%" headers="mcps1.3.4.2.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p2326866010010">Role resource link.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__row809135110010"><td class="cellrowborder" valign="top" width="19.490000000000002%" headers="mcps1.3.4.2.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__p5141972010010">roles</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.85%" headers="mcps1.3.4.2.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__p6765836125917">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.990000000000002%" headers="mcps1.3.4.2.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__p852996010010">Array</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.67%" headers="mcps1.3.4.2.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p1983818310010">List of roles.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="en-us_topic_0057845640__en-us_topic_0032920307_ul65344633"><li id="en-us_topic_0057845640__l6c7badc7da784e62ae4b0b7c757a339a">Role parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0057845640__table4865996110948" frame="border" border="1" rules="all"><thead align="left"><tr id="en-us_topic_0057845640__row3498648810948"><th align="left" class="cellrowborder" valign="top" width="19.689999999999998%" id="mcps1.3.4.3.1.1.1.5.1.1"><p id="en-us_topic_0057845640__p1533325610948"><strong id="en-us_topic_0057845640__a173ae121cc9e48328ca613e72f2a1504_5">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.65%" id="mcps1.3.4.3.1.1.1.5.1.2"><p id="en-us_topic_0057845640__p58551667141645"><strong id="en-us_topic_0057845640__a105e6ed8c3de4c5a9dde97ae5a71071e_5">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.669999999999998%" id="mcps1.3.4.3.1.1.1.5.1.3"><p id="en-us_topic_0057845640__p3403423310948"><strong id="en-us_topic_0057845640__b842352706143526_7">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.99%" id="mcps1.3.4.3.1.1.1.5.1.4"><p id="en-us_topic_0057845640__p530949010948"><strong id="en-us_topic_0057845640__b20601766145329_7">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0057845640__row61939585101142"><td class="cellrowborder" valign="top" width="19.689999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__p20585353101142">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.65%" headers="mcps1.3.4.3.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__p47847589141645">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.669999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__p56800915101142">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.99%" headers="mcps1.3.4.3.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p37471393101142">ID of a role.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__row66853790101157"><td class="cellrowborder" valign="top" width="19.689999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__p64813205101157">links</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.65%" headers="mcps1.3.4.3.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__p32688602141645">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.669999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__p15378285101157">Dict</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.99%" headers="mcps1.3.4.3.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p37681557101157">Role resource link.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__row5718865710123"><td class="cellrowborder" valign="top" width="19.689999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__p4493586710123">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.65%" headers="mcps1.3.4.3.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__p39046523141645">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.669999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__p1592658110123">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.99%" headers="mcps1.3.4.3.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p1498466710123">Name of a role.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__row62241948141653"><td class="cellrowborder" valign="top" width="19.689999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__p44238071141653">domain_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.65%" headers="mcps1.3.4.3.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__p49414957141653">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.669999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__p24794027141653">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.99%" headers="mcps1.3.4.3.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p25158040141653">ID of the domain to which a role belongs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__row1595755819282"><td class="cellrowborder" valign="top" width="19.689999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__p138172182291">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.65%" headers="mcps1.3.4.3.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__p13817121812293">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.669999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__p17817111817298">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.99%" headers="mcps1.3.4.3.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p19817191816298">Display mode of a role.</p>
|
|
<ul id="en-us_topic_0057845640__ul41008790111658"><li id="en-us_topic_0057845640__li7173649111658"><strong id="en-us_topic_0057845640__b38557376113117">AX</strong>: A role is displayed at the domain layer.</li><li id="en-us_topic_0057845640__li23002973111658"><strong id="en-us_topic_0057845640__b36139777113117">XA</strong>: A role is displayed at the project layer.</li><li id="en-us_topic_0057845640__li19184183111658"><strong id="en-us_topic_0057845640__b41640863113117">AA</strong>: A role is displayed at both the domain and project layers.</li><li id="en-us_topic_0057845640__li9211601111658"><strong id="en-us_topic_0057845640__b17466753113117">XX</strong>: A role is not displayed at the domain or project layer.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__row67023479141653"><td class="cellrowborder" valign="top" width="19.689999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__p60157466141653">display_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.65%" headers="mcps1.3.4.3.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__p30596437141653">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.669999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__p19598108141653">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.99%" headers="mcps1.3.4.3.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p55050582141653">Displayed name of a role.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__row3530547141653"><td class="cellrowborder" valign="top" width="19.689999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__p5212430141653">catalog</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.65%" headers="mcps1.3.4.3.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__p23753576141653">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.669999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__p176754141653">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.99%" headers="mcps1.3.4.3.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p37402834141653">Directory where a role locates.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__row9480727141653"><td class="cellrowborder" valign="top" width="19.689999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__p34698220141653">policy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.65%" headers="mcps1.3.4.3.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__p58736815141653">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.669999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__p45413157141653">Dict</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.99%" headers="mcps1.3.4.3.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p42066103141653">Policy of a role.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__row61388450141653"><td class="cellrowborder" valign="top" width="19.689999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.1 "><p id="en-us_topic_0057845640__p15390469141653">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.65%" headers="mcps1.3.4.3.1.1.1.5.1.2 "><p id="en-us_topic_0057845640__p7532843141653">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.669999999999998%" headers="mcps1.3.4.3.1.1.1.5.1.3 "><p id="en-us_topic_0057845640__p46581224141653">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.99%" headers="mcps1.3.4.3.1.1.1.5.1.4 "><p id="en-us_topic_0057845640__p11908964141653">Description of a role.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="en-us_topic_0057845640__li1478699015296">Example response<pre class="screen" id="en-us_topic_0057845640__screen61619326164651">{
|
|
"links": {
|
|
"self": " https://sample.domain.com/v3/projects/3a4cd4d559d8492bbe7bd355643f9763/groups/728da352c017480f80b5a96beb15f0e6/roles",
|
|
"previous": null,
|
|
"next": null
|
|
},
|
|
"roles": [
|
|
{
|
|
"catalog": "BASE",
|
|
"display_name": "Guest",
|
|
"name": "readonly",
|
|
"links": {
|
|
"self": " https://sample.domain.com/v3/roles/13d132b7856945788f6df7eb3ed5c35e"
|
|
},
|
|
"policy": {
|
|
"Version": "1.0",
|
|
"Statement": [
|
|
{
|
|
"Action": [
|
|
"*:*:Get*",
|
|
"*:*:List*"
|
|
],
|
|
"Effect": "Allow"
|
|
},
|
|
{
|
|
"Action": [
|
|
"identity:*"
|
|
],
|
|
"Effect": "Deny"
|
|
}
|
|
]
|
|
},
|
|
"domain_id": null,
|
|
"type": "AA",
|
|
"id": "13d132b7856945788f6df7eb3ed5c35e",
|
|
"description": "Guest"
|
|
},
|
|
{
|
|
"catalog": "BASE",
|
|
"display_name": "Tenant Administrator",
|
|
"name": "te_admin",
|
|
"links": {
|
|
"self": " https://sample.domain.com/v3/roles/1def304b73f14e8eb8d1eb9bf8337ae6"
|
|
},
|
|
"policy": {
|
|
"Version": "1.0",
|
|
"Statement": [
|
|
{
|
|
"Action": [
|
|
"*"
|
|
],
|
|
"Effect": "Allow"
|
|
},
|
|
{
|
|
"Action": [
|
|
"identity:*"
|
|
],
|
|
"Effect": "Deny"
|
|
}
|
|
]
|
|
},
|
|
"domain_id": null,
|
|
"type": "AA",
|
|
"id": "1def304b73f14e8eb8d1eb9bf8337ae6",
|
|
"description": "Tenant Administrator"
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0057845640__section5556784894735"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0057845640__en-us_topic_0032920307_table25927028" frame="border" border="1" rules="all"><thead align="left"><tr id="en-us_topic_0057845640__en-us_topic_0032920307_row10578662"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.2.1.3.1.1"><p id="en-us_topic_0057845640__en-us_topic_0032920307_p51565323"><strong id="en-us_topic_0057845640__b417103139635">Status Code</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.2.1.3.1.2"><p id="en-us_topic_0057845640__en-us_topic_0032920307_p16041657"><strong id="en-us_topic_0057845640__b20601766145329_9">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0057845640__en-us_topic_0032920307_row24305815"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p22613965">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p19791876">The request is successful.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__en-us_topic_0032920307_row43909159"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p66980994">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p56751409">The server failed to process the request.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__row460808479497"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845640__p120744399497">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845640__p385055099497">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__en-us_topic_0032920307_row41000636"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p32717189">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845640__en-us_topic_0032920307_p32846614">Access denied.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0057845640__row61941807103648"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845640__p51230500103648">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845640__p56029858103648">The requested resource cannot be found.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0057845579.html">Permission Management</a></div>
|
|
</div>
|
|
</div>
|
|
|