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>
128 lines
11 KiB
HTML
128 lines
11 KiB
HTML
<a name="swr_02_0031"></a><a name="swr_02_0031"></a>
|
|
|
|
<h1 class="topictitle1">Deleting an Image Repository from an Organization</h1>
|
|
<div id="body8662426"><div class="section" id="swr_02_0031__en-us_topic_0000001185595816_section1831221375415"><h4 class="sectiontitle">Description</h4><p id="swr_02_0031__en-us_topic_0000001185595816_p6312191355412">Delete an image repository in an organization.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0031__en-us_topic_0000001185595816_section631241316547"><h4 class="sectiontitle">Constraints</h4><p id="swr_02_0031__en-us_topic_0000001185595816_p1931261325410">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0031__en-us_topic_0000001185595816_section14313613195413"><h4 class="sectiontitle">URI</h4><p id="swr_02_0031__en-us_topic_0000001185595816_p1731314134543">DELETE /v2/manage/namespaces/{namespace}/repos/{repository}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0031__en-us_topic_0000001185595816_table15315101312544" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="swr_02_0031__en-us_topic_0000001185595816_row031411136546"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="swr_02_0031__en-us_topic_0000001185595816_p8315121318546">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_0031__en-us_topic_0000001185595816_p113151313165417">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_0031__en-us_topic_0000001185595816_p15315131314545">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_0031__en-us_topic_0000001185595816_p14315141315410">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0031__en-us_topic_0000001185595816_row531461316546"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0031__en-us_topic_0000001185595816_p6315161312549">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0031__en-us_topic_0000001185595816_p931631375418">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0031__en-us_topic_0000001185595816_p103161713175411">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0031__en-us_topic_0000001185595816_p11316201319546">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_0031__en-us_topic_0000001185595816_row1631416132542"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0031__en-us_topic_0000001185595816_p1931651319546">repository</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0031__en-us_topic_0000001185595816_p1331631395410">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0031__en-us_topic_0000001185595816_p16316141375416">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0031__en-us_topic_0000001185595816_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_0031__en-us_topic_0000001185595816_section73178136544"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0031__en-us_topic_0000001185595816_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0031__en-us_topic_0000001185595816_row1531771375416"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="swr_02_0031__en-us_topic_0000001185595816_p231841335414">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_0031__en-us_topic_0000001185595816_p163181713175415">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_0031__en-us_topic_0000001185595816_p23182130549">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_0031__en-us_topic_0000001185595816_p1331991335418">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0031__en-us_topic_0000001185595816_row93171913205419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0031__en-us_topic_0000001185595816_p103191413105414">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="swr_02_0031__en-us_topic_0000001185595816_p7319813145411">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0031__en-us_topic_0000001185595816_p0319513105417">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0031__en-us_topic_0000001185595816_p15320161311544">Message body type (format). The value can be <strong id="swr_02_0031__en-us_topic_0000001185595816_b202780276585">application/json</strong> or <strong id="swr_02_0031__en-us_topic_0000001185595816_b727818275581">charset=utf-8 application/json</strong>.</p>
|
|
<p id="swr_02_0031__en-us_topic_0000001185595816_p732018138542">Default value: <strong id="swr_02_0031__en-us_topic_0000001185595816_b054183112585">application/json</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0031__en-us_topic_0000001185595816_row17318151316545"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0031__en-us_topic_0000001185595816_p93202013145416">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_0031__en-us_topic_0000001185595816_p17320151314542">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0031__en-us_topic_0000001185595816_p83201131549">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0031__en-us_topic_0000001185595816_p83201913155412">User token.</p>
|
|
<p id="swr_02_0031__en-us_topic_0000001185595816_p93211513135417">The token can be obtained through the IAM API used to obtain a user token. The value of <strong id="swr_02_0031__en-us_topic_0000001185595816_b1218313412199">X-Subject-Token</strong> in the response header is the user token.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0031__en-us_topic_0000001185595816_section6321171335413"><h4 class="sectiontitle">Response Parameters</h4><p id="swr_02_0031__en-us_topic_0000001185595816_p9321131305410">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0031__en-us_topic_0000001185595816_section6321181315417"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="swr_02_0031__en-us_topic_0000001185595816_screen1032111310546">DELETE https://{endpoint}/v2/manage/namespaces/{namespace}}/repos/{repository}</pre>
|
|
</div>
|
|
<div class="section" id="swr_02_0031__en-us_topic_0000001185595816_section33213132546"><h4 class="sectiontitle">Example Response</h4><p id="swr_02_0031__en-us_topic_0000001185595816_p73211613165416">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0031__en-us_topic_0000001185595816_section9321513155414"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0031__en-us_topic_0000001185595816_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0031__en-us_topic_0000001185595816_row193221413195412"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="swr_02_0031__en-us_topic_0000001185595816_p4323151385417">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_0031__en-us_topic_0000001185595816_p173231613165415">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0031__en-us_topic_0000001185595816_row14322313175411"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0031__en-us_topic_0000001185595816_p83231313105410">204</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0031__en-us_topic_0000001185595816_p1832331375411">Image repository deleted.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0031__en-us_topic_0000001185595816_row15322413155416"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0031__en-us_topic_0000001185595816_p163231513185419">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0031__en-us_topic_0000001185595816_p20324171316543">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0031__en-us_topic_0000001185595816_row93228135547"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0031__en-us_topic_0000001185595816_p123241913175414">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0031__en-us_topic_0000001185595816_p332421325410">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0031__en-us_topic_0000001185595816_row17322313175417"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0031__en-us_topic_0000001185595816_p1532441385414">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0031__en-us_topic_0000001185595816_p10324713125419">The image repository was not found</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0031__en-us_topic_0000001185595816_row0322413105410"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0031__en-us_topic_0000001185595816_p143241213195418">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0031__en-us_topic_0000001185595816_p1832518138544">Internal error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0031__en-us_topic_0000001185595816_section12325613165410"><h4 class="sectiontitle">Error Codes</h4><p id="swr_02_0031__en-us_topic_0000001185595816_p163253131542">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_0076.html">Image Repository Management</a></div>
|
|
</div>
|
|
</div>
|
|
|