forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
153 lines
13 KiB
HTML
153 lines
13 KiB
HTML
<a name="swr_02_0047"></a><a name="swr_02_0047"></a>
|
|
|
|
<h1 class="topictitle1">Canceling Image Permissions</h1>
|
|
<div id="body8662426"><div class="section" id="swr_02_0047__en-us_topic_0000001185755800_section1469183111338"><h4 class="sectiontitle">Description</h4><p id="swr_02_0047__en-us_topic_0000001185755800_p669273117336">Cancel the image operation permissions of certain users.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0047__en-us_topic_0000001185755800_section669223112334"><h4 class="sectiontitle">Constraints</h4><p id="swr_02_0047__en-us_topic_0000001185755800_p5692153153315">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0047__en-us_topic_0000001185755800_section16692133183311"><h4 class="sectiontitle">URI</h4><p id="swr_02_0047__en-us_topic_0000001185755800_p1869315312332">DELETE /v2/manage/namespaces/{namespace}/repos/{repository}/access</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0047__en-us_topic_0000001185755800_table17694153123313" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="swr_02_0047__en-us_topic_0000001185755800_row1069403115336"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="swr_02_0047__en-us_topic_0000001185755800_p1469573118338">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="swr_02_0047__en-us_topic_0000001185755800_p13695931113312">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="swr_02_0047__en-us_topic_0000001185755800_p11695531183311">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="swr_02_0047__en-us_topic_0000001185755800_p969517319335">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0047__en-us_topic_0000001185755800_row1069423110333"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0047__en-us_topic_0000001185755800_p2069510317330">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0047__en-us_topic_0000001185755800_p06957311333">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0047__en-us_topic_0000001185755800_p14696331163314">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0047__en-us_topic_0000001185755800_p8696123163312">Organization name. Enter 1 to 64 characters, starting with a lowercase letter and ending with a lowercase letter or digit. Only lowercase letters, digits, periods (.), underscores (_), and hyphens (-) are allowed. Periods, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0047__en-us_topic_0000001185755800_row106941831103314"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0047__en-us_topic_0000001185755800_p1696153113313">repository</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0047__en-us_topic_0000001185755800_p11696631123310">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0047__en-us_topic_0000001185755800_p146961319339">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0047__en-us_topic_0000001185755800_p1833713588245">Image repository name. Enter 1 to 128 characters. It must start and end with a lowercase letter or digit. Only lowercase letters, digits, periods (.), slashes (/), underscores (_), and hyphens (-) are allowed. Periods, slashes, underscores, and hyphens cannot be placed next to each other. A maximum of two consecutive underscores are allowed. Replace a slash (/) with a dollar sign ($) before you send the request.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0047__en-us_topic_0000001185755800_section1669713316334"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0047__en-us_topic_0000001185755800_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0047__en-us_topic_0000001185755800_row126971231103318"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="swr_02_0047__en-us_topic_0000001185755800_p1769843111336">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="swr_02_0047__en-us_topic_0000001185755800_p2698163133311">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="swr_02_0047__en-us_topic_0000001185755800_p7698103183314">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="swr_02_0047__en-us_topic_0000001185755800_p2069883114336">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0047__en-us_topic_0000001185755800_row166971031143314"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0047__en-us_topic_0000001185755800_p1369823153312">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="swr_02_0047__en-us_topic_0000001185755800_p1669918314337">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0047__en-us_topic_0000001185755800_p146991731103316">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0047__en-us_topic_0000001185755800_p669915316331">Message body type (format). The value can be <strong id="swr_02_0047__en-us_topic_0000001185755800_b14806358709">application/json</strong> or <strong id="swr_02_0047__en-us_topic_0000001185755800_b1380645819014">charset=utf-8 application/json</strong>.</p>
|
|
<p id="swr_02_0047__en-us_topic_0000001185755800_p169973133316">Default value: <strong id="swr_02_0047__en-us_topic_0000001185755800_b844019114119">application/json</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0047__en-us_topic_0000001185755800_row469716314332"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0047__en-us_topic_0000001185755800_p147002318334">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="swr_02_0047__en-us_topic_0000001185755800_p13700153118330">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0047__en-us_topic_0000001185755800_p12700193153318">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0047__en-us_topic_0000001185755800_p970011312335">User token.</p>
|
|
<p id="swr_02_0047__en-us_topic_0000001185755800_p67004313331">The token can be obtained by calling the IAM API used to obtain a user token. The value of <strong id="swr_02_0047__en-us_topic_0000001185755800_b93022147911910">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__en-us_topic_0000001185755800_request_RequestParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameter</caption><thead align="left"><tr id="swr_02_0047__en-us_topic_0000001185755800_row1570163113339"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="swr_02_0047__en-us_topic_0000001185755800_p157019311336">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="swr_02_0047__en-us_topic_0000001185755800_p57011931123315">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="swr_02_0047__en-us_topic_0000001185755800_p370263183310">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="swr_02_0047__en-us_topic_0000001185755800_p97021231173310">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0047__en-us_topic_0000001185755800_row147011431183310"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="swr_02_0047__en-us_topic_0000001185755800_p67021531143313">[items]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="swr_02_0047__en-us_topic_0000001185755800_p97023314339">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="swr_02_0047__en-us_topic_0000001185755800_p1702163143315">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="swr_02_0047__en-us_topic_0000001185755800_p1702113163318">User ID, which needs to be obtained from IAM.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0047__en-us_topic_0000001185755800_section67031931143310"><h4 class="sectiontitle">Response Parameters</h4><p id="swr_02_0047__en-us_topic_0000001185755800_p20703133115338">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0047__en-us_topic_0000001185755800_section9703163153310"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="swr_02_0047__en-us_topic_0000001185755800_screen117031314337">DELETE https://{endpoint}/v2/manage/namespaces/{namespace}/repos/{repository}/access
|
|
|
|
[ "fb3f175c1fd146ab8cdae3272be6107b" ]</pre>
|
|
</div>
|
|
<div class="section" id="swr_02_0047__en-us_topic_0000001185755800_section67031931153313"><h4 class="sectiontitle">Example Response</h4><p id="swr_02_0047__en-us_topic_0000001185755800_p20704123115338">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0047__en-us_topic_0000001185755800_section772113317333"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0047__en-us_topic_0000001185755800_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0047__en-us_topic_0000001185755800_row10721183143313"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="swr_02_0047__en-us_topic_0000001185755800_p13722193114333">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="swr_02_0047__en-us_topic_0000001185755800_p1172210311331">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0047__en-us_topic_0000001185755800_row18721831133317"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0047__en-us_topic_0000001185755800_p107221831133314">204</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0047__en-us_topic_0000001185755800_p17231531183314">Request succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0047__en-us_topic_0000001185755800_row47219317336"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0047__en-us_topic_0000001185755800_p12723431123319">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0047__en-us_topic_0000001185755800_p9723193114335">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0047__en-us_topic_0000001185755800_row187227317335"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0047__en-us_topic_0000001185755800_p1723831203311">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0047__en-us_topic_0000001185755800_p15723531113318">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0047__en-us_topic_0000001185755800_row9722193115336"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0047__en-us_topic_0000001185755800_p7723173153315">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0047__en-us_topic_0000001185755800_p18724431183315">The image was not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0047__en-us_topic_0000001185755800_row97221431173316"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0047__en-us_topic_0000001185755800_p616583213319">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0047__en-us_topic_0000001185755800_p1416583212334">Internal error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0047__en-us_topic_0000001185755800_section15165123215331"><h4 class="sectiontitle">Error Codes</h4><p id="swr_02_0047__en-us_topic_0000001185755800_p716503210334">For details, see <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="swr_02_0091.html">Image Permission Management</a></div>
|
|
</div>
|
|
</div>
|
|
|