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>
95 lines
6.5 KiB
HTML
95 lines
6.5 KiB
HTML
<a name="swr_02_0031"></a><a name="swr_02_0031"></a>
|
|
|
|
<h1 class="topictitle1">Deleting an Image Repository</h1>
|
|
<div id="body1531798197428"><div class="section" id="swr_02_0031__section14905762191056"><h4 class="sectiontitle">Function</h4><p id="swr_02_0031__p38546794191926">Delete an image repository in an organization.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0031__section10482810165331"><h4 class="sectiontitle">URI</h4><p id="swr_02_0031__p1260214128102">DELETE /v2/manage/namespaces/{<em id="swr_02_0031__i484014518314">namespace</em>}/repos/{<em id="swr_02_0031__i19671204911314">repository</em>}</p>
|
|
<p id="swr_02_0031__p6306122418154">For details about parameters, see <a href="#swr_02_0031__table184146147323">Table 1</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0031__table184146147323"></a><a name="table184146147323"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0031__table184146147323" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="swr_02_0031__row1415114163212"><th align="left" class="cellrowborder" valign="top" width="16.13%" id="mcps1.3.2.4.2.5.1.1"><p id="swr_02_0031__p9415114193219">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.690000000000001%" id="mcps1.3.2.4.2.5.1.2"><p id="swr_02_0031__p1450315424313">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.86%" id="mcps1.3.2.4.2.5.1.3"><p id="swr_02_0031__p15022419437">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="58.32000000000001%" id="mcps1.3.2.4.2.5.1.4"><p id="swr_02_0031__p841591415328">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0031__row941641411326"><td class="cellrowborder" valign="top" width="16.13%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0031__p8416314113213">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.690000000000001%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0031__p10507114164313">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.86%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0031__p105058419438">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.32000000000001%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0031__p1204822152314">Organization name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0031__row7417171415327"><td class="cellrowborder" valign="top" width="16.13%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0031__p84177144326">repository</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.690000000000001%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0031__p142591841114317">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.86%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0031__p13259041124313">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.32000000000001%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0031__p181285313257">Image repository name.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0031__section3270966102931"><h4 class="sectiontitle">Request</h4><ul id="swr_02_0031__ul18319236819"><li id="swr_02_0031__li12311231087">Request parameters<p id="swr_02_0031__p47711530584"><a name="swr_02_0031__li12311231087"></a><a name="li12311231087"></a>N/A</p>
|
|
</li><li id="swr_02_0031__li1581112417810">Example request<pre class="screen" id="swr_02_0031__screen10163154010812">DELETE https://{Endpoint}/v2/manage/namespaces/<em id="swr_02_0031__i1812525522813">group</em>/repos/<em id="swr_02_0031__i177063266317">busybox</em></pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0031__section46271297104114"><h4 class="sectiontitle">Response</h4><p id="swr_02_0031__p178111539184113">N/A</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0031__section5365169104253"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0031__table83715129124" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0031__row0371712141214"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.2.1.3.1.1"><p id="swr_02_0031__p3371112171215">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.2.1.3.1.2"><p id="swr_02_0031__p13781210124">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0031__row103819129123"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0031__p1238912101213">204</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0031__p73871261219">The brief information about the image repository is successfully deleted.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0031__row1338151211120"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0031__p23851210121">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0031__p1238161271215">Request error. Error information is returned.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0031__row73068300568"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0031__p153065309562">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0031__p1030623016566">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0031__row738171215127"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0031__p43881201211">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0031__p4381212121219">The repository does not exist.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0031__row1162431422920"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0031__p14625141492918">406</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0031__p145322112919">The repository cannot be deleted because it contains images.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0031__row13381712111212"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0031__p33819120123">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0031__p638101219128">Internal error. Error information is returned.</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>
|
|
|