forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com> Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
214 lines
14 KiB
HTML
214 lines
14 KiB
HTML
<a name="swr_02_0049"></a><a name="swr_02_0049"></a>
|
|
|
|
<h1 class="topictitle1">Querying Image Permissions</h1>
|
|
<div id="body1531798197466"><div class="section" id="swr_02_0049__se03aae4436e64394a95dc13b6f233898"><h4 class="sectiontitle">Function</h4><p id="swr_02_0049__a7005bd3228d34f8ea0fb7b75b17cfbb2">Query image permissions.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0049__s476df674307e4b04b9545f9575dde042"><h4 class="sectiontitle">URI</h4><p id="swr_02_0049__p3537273892216">GET /v2/manage/namespaces/{<em id="swr_02_0049__i5252162415101">namespace</em>}/repos/{<em id="swr_02_0049__i9237128121019">repository</em>}/access</p>
|
|
<p id="swr_02_0049__p4326739133411">For details about parameters, see <a href="#swr_02_0049__table73271639103420">Table 1</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0049__table73271639103420"></a><a name="table73271639103420"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0049__table73271639103420" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="swr_02_0049__row53291539153419"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.2.4.2.5.1.1"><p id="swr_02_0049__p6331539113416">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_0049__p108968583240">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_0049__p11896658132415">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_0049__p43347399345">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0049__row7335939103416"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0049__p6843228526">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0049__p1289615589248">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0049__p188961458142412">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0049__p776511203467">Organization name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__row162281253161915"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0049__p112291753121913">repository</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0049__p108971758102416">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0049__p12897145852415">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0049__p122955316198">Image name</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0049__s8246d3afdd6f44dc817ce0c3f2ac7d53"><h4 class="sectiontitle">Request</h4><ul id="swr_02_0049__ul181371111133212"><li id="swr_02_0049__li18137141120323">Request parameters<p id="swr_02_0049__p119713187325"><a name="swr_02_0049__li18137141120323"></a><a name="li18137141120323"></a>N/A</p>
|
|
</li><li id="swr_02_0049__li17717171415329">Example request<pre class="screen" id="swr_02_0049__screen13442202573218">GET https://{Endpoint}/v2/manage/namespaces/<em id="swr_02_0049__i121212664212">group</em>/repos/<em id="swr_02_0049__i02906493312">busybox</em>/access</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0049__sab9be5ce850743859bb238e072f8d1f2"><h4 class="sectiontitle">Response</h4><ul id="swr_02_0049__ul16836172415331"><li id="swr_02_0049__li283616247339">Response parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0049__table861363224" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response body parameter description</caption><thead align="left"><tr id="swr_02_0049__row1610612213"><th align="left" class="cellrowborder" valign="top" width="33%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="swr_02_0049__p15483169172220">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="10%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="swr_02_0049__p161860229">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.99999999999999%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="swr_02_0049__p14611642210">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0049__row661186162213"><td class="cellrowborder" valign="top" width="33%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0049__p2061960226">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0049__p11613672211">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0049__p72841350182214">Permission ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__row362362226"><td class="cellrowborder" valign="top" width="33%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0049__p2628618226">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0049__p56236162212">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0049__p126212617227">Image name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__row1190415802318"><td class="cellrowborder" valign="top" width="33%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0049__p7904458152320">self_auth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0049__p0904158172313"><a href="#swr_02_0049__table16690123312516">Object</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0049__p1852820314366">Permissions of the current user.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__row1672110181276"><td class="cellrowborder" valign="top" width="33%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0049__p11722718172711">others_auths</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0049__p9722161813275">Array of <a href="#swr_02_0049__table2060620585538">objects</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.99999999999999%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0049__p38801289364">Permissions of other users.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0049__table16690123312516"></a><a name="table16690123312516"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0049__table16690123312516" frame="border" border="1" rules="all"><caption><b>Table 3 </b>self_auth parameter description</caption><thead align="left"><tr id="swr_02_0049__row12690103365117"><th align="left" class="cellrowborder" valign="top" width="21.41%" id="mcps1.3.4.2.1.2.2.4.1.1"><p id="swr_02_0049__p1069003385117">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.91%" id="mcps1.3.4.2.1.2.2.4.1.2"><p id="swr_02_0049__p9690133315518">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.68%" id="mcps1.3.4.2.1.2.2.4.1.3"><p id="swr_02_0049__p196903338512">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0049__row469011335510"><td class="cellrowborder" valign="top" width="21.41%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="swr_02_0049__p2690183325119">user_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.91%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="swr_02_0049__p69014461148">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.68%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="swr_02_0049__p46175204712">User ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__row86901833165118"><td class="cellrowborder" valign="top" width="21.41%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="swr_02_0049__p1569063385116">user_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.91%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="swr_02_0049__p690624614140">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.68%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="swr_02_0049__p1761185234713">Username</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__row76916331519"><td class="cellrowborder" valign="top" width="21.41%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="swr_02_0049__p136911433115115">auth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.91%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="swr_02_0049__p12295101317202">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.68%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="swr_02_0049__p1862135214710">User permission</p>
|
|
<ul id="swr_02_0049__ul654813144019"><li id="swr_02_0049__li115901316202">7: Manage</li><li id="swr_02_0049__li55991417708">3: Write</li><li id="swr_02_0049__li15482141406">1: Read</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0049__table2060620585538"></a><a name="table2060620585538"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0049__table2060620585538" frame="border" border="1" rules="all"><caption><b>Table 4 </b>others_auths parameter description</caption><thead align="left"><tr id="swr_02_0049__row15606185885314"><th align="left" class="cellrowborder" valign="top" width="21.27%" id="mcps1.3.4.2.1.3.2.4.1.1"><p id="swr_02_0049__p260611584539">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.05%" id="mcps1.3.4.2.1.3.2.4.1.2"><p id="swr_02_0049__p146061581532">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.68%" id="mcps1.3.4.2.1.3.2.4.1.3"><p id="swr_02_0049__p1060655814535">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0049__row1760645813530"><td class="cellrowborder" valign="top" width="21.27%" headers="mcps1.3.4.2.1.3.2.4.1.1 "><p id="swr_02_0049__p5607858135320">user_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.05%" headers="mcps1.3.4.2.1.3.2.4.1.2 "><p id="swr_02_0049__p460725805315">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.68%" headers="mcps1.3.4.2.1.3.2.4.1.3 "><p id="swr_02_0049__p10607155875312">User ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__row1160710586539"><td class="cellrowborder" valign="top" width="21.27%" headers="mcps1.3.4.2.1.3.2.4.1.1 "><p id="swr_02_0049__p860717581533">user_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.05%" headers="mcps1.3.4.2.1.3.2.4.1.2 "><p id="swr_02_0049__p5607258115319">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.68%" headers="mcps1.3.4.2.1.3.2.4.1.3 "><p id="swr_02_0049__p460785818533">Username</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__row18607658175310"><td class="cellrowborder" valign="top" width="21.27%" headers="mcps1.3.4.2.1.3.2.4.1.1 "><p id="swr_02_0049__p18607135885319">auth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.05%" headers="mcps1.3.4.2.1.3.2.4.1.2 "><p id="swr_02_0049__p17607165811534">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.68%" headers="mcps1.3.4.2.1.3.2.4.1.3 "><p id="swr_02_0049__p1607205820534">User permission</p>
|
|
<ul id="swr_02_0049__ul994222125218"><li id="swr_02_0049__li179512215217">7: Manage</li><li id="swr_02_0049__li1795922105210">3: Write</li><li id="swr_02_0049__li18951822105211">1: Read</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="swr_02_0049__li1472278338">Example response<pre class="screen" id="swr_02_0049__screen115699975811">{
|
|
"id": 1422,
|
|
"name": "busybox",
|
|
"self_auth": {
|
|
"user_id": "3059e6b5562241fda3fa441cca6f228b",
|
|
"user_name": "admin",
|
|
"auth": 7
|
|
},
|
|
"others_auths": [
|
|
{
|
|
"user_id": "fb3f175c1fd146ab8cdae3272be6107b",
|
|
"user_name": "user",
|
|
"auth": 1
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0049__s336c1dbc7af446a1b3cc077ea3f82fc9"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0049__t33d02fa79e8443868a71c99f411610a5" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0049__r9eb80d64e8f34d0db940daa95fc929dd"><th align="left" class="cellrowborder" valign="top" width="16.439999999999998%" id="mcps1.3.5.2.1.3.1.1"><p id="swr_02_0049__a7e51ed73a71e4dc29d0dd4aae3016632">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_0049__aa802d02e21c944f1863435a0d11c7ec1">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0049__r1cc0192c651444db882dde750b14be23"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0049__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_0049__ad54ae639e7f94380a87bfc10cc91a4f0">Query succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__r0bd68000afe546dd9c7a8d3a05991a04"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0049__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_0049__a1f2e8d58145d461781428d28f07a5351">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__row059261364320"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0049__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_0049__p759261314433">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__row9547111612437"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0049__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_0049__p16547416114315">The image or the image permission does not exist.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0049__r19bdef782c164c93917f897241e521f8"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0049__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_0049__aa6fd12cedd8841e29eeeca27c1bdea1a">Internal error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="swr_02_0011.html">API</a></div>
|
|
</div>
|
|
</div>
|
|
|