doc-exports/docs/swr/api-ref/swr_02_0047.html
Dong, Qiu Jian f5c28c856a SWR API update 20241012
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>
2024-10-18 07:19:46 +00:00

152 lines
11 KiB
HTML

<a name="swr_02_0047"></a><a name="swr_02_0047"></a>
<h1 class="topictitle1">Deleting Image Permissions</h1>
<div id="body1531798197463"><div class="section" id="swr_02_0047__se03aae4436e64394a95dc13b6f233898"><h4 class="sectiontitle">Function</h4><p id="swr_02_0047__a7005bd3228d34f8ea0fb7b75b17cfbb2">Delete the image operation permissions of certain users.</p>
</div>
<div class="section" id="swr_02_0047__section367012564215"><h4 class="sectiontitle">Constraints</h4><p id="swr_02_0047__p267155618215">None</p>
</div>
<div class="section" id="swr_02_0047__s476df674307e4b04b9545f9575dde042"><h4 class="sectiontitle">URI</h4><p id="swr_02_0047__p3537273892216">DELETE /v2/manage/namespaces/{<em id="swr_02_0047__i11534234710">namespace</em>}/repos/{<em id="swr_02_0047__i12109152919714">repository</em>}/access</p>
<p id="swr_02_0047__p1047219591135">For details about parameters, see <a href="#swr_02_0047__table73271639103420">Table 1</a>.</p>
<div class="tablenoborder"><a name="swr_02_0047__table73271639103420"></a><a name="table73271639103420"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0047__table73271639103420" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="swr_02_0047__row53291539153419"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.3.4.2.5.1.1"><p id="swr_02_0047__p6331539113416">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13%" id="mcps1.3.3.4.2.5.1.2"><p id="swr_02_0047__p108968583240">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.3.4.2.5.1.3"><p id="swr_02_0047__p11896658132415">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="54%" id="mcps1.3.3.4.2.5.1.4"><p id="swr_02_0047__p43347399345">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0047__row7335939103416"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.4.2.5.1.1 "><p id="swr_02_0047__p6843228526">namespace</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.4.2.5.1.2 "><p id="swr_02_0047__p1289615589248">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.4.2.5.1.3 "><p id="swr_02_0047__p188961458142412">String</p>
</td>
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.3.4.2.5.1.4 "><p id="swr_02_0047__p776511203467">Organization name.</p>
</td>
</tr>
<tr id="swr_02_0047__row848965816267"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.4.2.5.1.1 "><p id="swr_02_0047__p16489155892615">repository</p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.4.2.5.1.2 "><p id="swr_02_0047__p108971758102416">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.4.2.5.1.3 "><p id="swr_02_0047__p12897145852415">String</p>
</td>
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.3.4.2.5.1.4 "><p id="swr_02_0047__p848985814261">Image name.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="swr_02_0047__s8246d3afdd6f44dc817ce0c3f2ac7d53"><h4 class="sectiontitle">Request</h4><ul id="swr_02_0047__ul3274193611418"><li id="swr_02_0047__li4274536145">Request parameters
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0047__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0047__row196921656182110"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.1.1.2.5.1.1"><p id="swr_02_0047__p1669425652117">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.1.1.2.5.1.2"><p id="swr_02_0047__p1769655614211">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.1.1.2.5.1.3"><p id="swr_02_0047__p1669825618212">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.1.1.2.5.1.4"><p id="swr_02_0047__p146990564214">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0047__row146927563219"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="swr_02_0047__p470025602112">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="swr_02_0047__p4701205612118">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="swr_02_0047__p270215568214">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="swr_02_0047__p137034563216">Message body type (format). The value can be <strong id="swr_02_0047__b201492000371541">application/json</strong> or <strong id="swr_02_0047__b111033037971541">charset=utf-8 application/json</strong>.</p>
<p id="swr_02_0047__p207038566213">The default value is <strong id="swr_02_0047__b95491688572232">application/json</strong>.</p>
</td>
</tr>
<tr id="swr_02_0047__row3692175612211"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="swr_02_0047__p17704185614212">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="swr_02_0047__p14706145652114">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="swr_02_0047__p2707115611219">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="swr_02_0047__p12708185662113">User token.</p>
<p id="swr_02_0047__p2708105692120">The token can be obtained by calling an IAM API. The value of <strong id="swr_02_0047__b43610493671428">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_0047__table549213107428" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameter description</caption><thead align="left"><tr id="swr_02_0047__row9494710154211"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.4.2.1.2.2.5.1.1"><p id="swr_02_0047__p1549451014425">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13%" id="mcps1.3.4.2.1.2.2.5.1.2"><p id="swr_02_0047__p1949421016422">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.4.2.1.2.2.5.1.3"><p id="swr_02_0047__p549451017421">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="54%" id="mcps1.3.4.2.1.2.2.5.1.4"><p id="swr_02_0047__p1749471019424">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0047__row174941610114212"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.4.2.1.2.2.5.1.1 "><p id="swr_02_0047__p9460458264"><em id="swr_02_0047__i17398145712430">[Array element]</em></p>
</td>
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.4.2.1.2.2.5.1.2 "><p id="swr_02_0047__p84608581069">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.2.1.2.2.5.1.3 "><p id="swr_02_0047__p746055818612">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.4.2.1.2.2.5.1.4 "><p id="swr_02_0047__p124608580615">ID array of users whose permissions need to be deleted. </p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="swr_02_0047__li193201739141">Example request<pre class="screen" id="swr_02_0047__screen117803312515">DELETE https://{Endpoint}/v2/manage/namespaces/<em id="swr_02_0047__i184334141169">group</em>/repos/<em id="swr_02_0047__i645610171564">busybox</em>/access
[ "fb3f175c1fd146ab8cdae3272be6107b" ]</pre>
</li></ul>
</div>
<div class="section" id="swr_02_0047__sab9be5ce850743859bb238e072f8d1f2"><h4 class="sectiontitle">Response</h4><p id="swr_02_0047__p19306142115020">N/A</p>
</div>
<div class="section" id="swr_02_0047__s336c1dbc7af446a1b3cc077ea3f82fc9"><h4 class="sectiontitle">Status Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0047__t33d02fa79e8443868a71c99f411610a5" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0047__r9eb80d64e8f34d0db940daa95fc929dd"><th align="left" class="cellrowborder" valign="top" width="16.439999999999998%" id="mcps1.3.6.2.1.3.1.1"><p id="swr_02_0047__a7e51ed73a71e4dc29d0dd4aae3016632">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="83.56%" id="mcps1.3.6.2.1.3.1.2"><p id="swr_02_0047__aa802d02e21c944f1863435a0d11c7ec1">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0047__r1cc0192c651444db882dde750b14be23"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.6.2.1.3.1.1 "><p id="swr_02_0047__a6a3639a3cb154e17b95c5076c8036471">204</p>
</td>
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.6.2.1.3.1.2 "><p id="swr_02_0047__ad54ae639e7f94380a87bfc10cc91a4f0">Deletion succeeded.</p>
</td>
</tr>
<tr id="swr_02_0047__r0bd68000afe546dd9c7a8d3a05991a04"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.6.2.1.3.1.1 "><p id="swr_02_0047__ad46ccdc6b7e04df3b6b5679f7606f434">400</p>
</td>
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.6.2.1.3.1.2 "><p id="swr_02_0047__a1f2e8d58145d461781428d28f07a5351">Request error.</p>
</td>
</tr>
<tr id="swr_02_0047__row059261364320"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.6.2.1.3.1.1 "><p id="swr_02_0047__p059261310438">401</p>
</td>
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.6.2.1.3.1.2 "><p id="swr_02_0047__p759261314433">Authentication failed.</p>
</td>
</tr>
<tr id="swr_02_0047__row9547111612437"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.6.2.1.3.1.1 "><p id="swr_02_0047__p19547131615432">404</p>
</td>
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.6.2.1.3.1.2 "><p id="swr_02_0047__p16547416114315">The image does not exist.</p>
</td>
</tr>
<tr id="swr_02_0047__r19bdef782c164c93917f897241e521f8"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.6.2.1.3.1.1 "><p id="swr_02_0047__a7da68e311c0f4267bacf3cbdb71d1ead">500</p>
</td>
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.6.2.1.3.1.2 "><p id="swr_02_0047__aa6fd12cedd8841e29eeeca27c1bdea1a">Internal error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="swr_02_0047__section134071631161117"><h4 class="sectiontitle">Error Codes</h4><p id="swr_02_0047__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_0000001470924909.html">Image Permission Management</a></div>
</div>
</div>