doc-exports/docs/swr/api-ref/swr_02_0036.html
Dong, Qiu Jian 150bc2026a SWR API initial version reuploaded -20221102
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>
2022-11-10 10:18:36 +00:00

99 lines
6.8 KiB
HTML

<a name="swr_02_0036"></a><a name="swr_02_0036"></a>
<h1 class="topictitle1">Deleting the Image with a Specified Tag</h1>
<div id="body1531798197439"><div class="section" id="swr_02_0036__section14905762191056"><h4 class="sectiontitle">Function</h4><p id="swr_02_0036__p38546794191926">Delete the image with a specified tag in an image repository.</p>
</div>
<div class="section" id="swr_02_0036__section10482810165331"><h4 class="sectiontitle">URI</h4><p id="swr_02_0036__p339173591814">DELETE /v2/manage/namespaces/{<em id="swr_02_0036__i18745132112106">namespace</em>}/repos/{<em id="swr_02_0036__i25798255105">repository</em>}/tags/{<em id="swr_02_0036__i1019392915108">tag</em>}</p>
<p id="swr_02_0036__p1543634013180">For details about parameters, see <a href="#swr_02_0036__table05962819187">Table 1</a>.</p>
<div class="tablenoborder"><a name="swr_02_0036__table05962819187"></a><a name="table05962819187"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0036__table05962819187" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="swr_02_0036__row18599289181"><th align="left" class="cellrowborder" valign="top" width="15.68%" id="mcps1.3.2.4.2.5.1.1"><p id="swr_02_0036__p145942820183">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.27%" id="mcps1.3.2.4.2.5.1.2"><p id="swr_02_0036__p1450315424313">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.06%" id="mcps1.3.2.4.2.5.1.3"><p id="swr_02_0036__p15022419437">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.989999999999995%" id="mcps1.3.2.4.2.5.1.4"><p id="swr_02_0036__p205910283185">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0036__row146018284188"><td class="cellrowborder" valign="top" width="15.68%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0036__p0601928131816">namespace</p>
</td>
<td class="cellrowborder" valign="top" width="11.27%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0036__p10507114164313">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.06%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0036__p105058419438">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.989999999999995%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0036__p11460935127">Organization name</p>
</td>
</tr>
<tr id="swr_02_0036__row1160152816186"><td class="cellrowborder" valign="top" width="15.68%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0036__p206018288188">repository</p>
</td>
<td class="cellrowborder" valign="top" width="11.27%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0036__p18920840134520">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.06%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0036__p391915406456">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.989999999999995%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0036__p1871615462812">Image repository name</p>
</td>
</tr>
<tr id="swr_02_0036__row7611288187"><td class="cellrowborder" valign="top" width="15.68%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0036__p761728131819">tag</p>
</td>
<td class="cellrowborder" valign="top" width="11.27%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0036__p923624264510">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.06%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0036__p623464254512">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.989999999999995%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0036__p371619413280">Image tag name</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="swr_02_0036__section3270966102931"><h4 class="sectiontitle">Request</h4><ul id="swr_02_0036__ul1530113131369"><li id="swr_02_0036__li530161323620">Request parameters<p id="swr_02_0036__p3662619193618"><a name="swr_02_0036__li530161323620"></a><a name="li530161323620"></a>N/A</p>
</li><li id="swr_02_0036__li1264210141366">Example request<pre class="screen" id="swr_02_0036__screen877792513366">DELETE https://{Endpoint}/v2/manage/namespaces/<em id="swr_02_0036__i73551258163619">group</em>/repos/<em id="swr_02_0036__i14353812377">busybox</em>/tags/<em id="swr_02_0036__i126023693719">v1</em></pre>
</li></ul>
</div>
<div class="section" id="swr_02_0036__section46271297104114"><h4 class="sectiontitle">Response</h4><p id="swr_02_0036__p10822114520197">N/A</p>
</div>
<div class="section" id="swr_02_0036__section5365169104253"><h4 class="sectiontitle">Status Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0036__table334923162011" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0036__row834914392012"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.2.1.3.1.1"><p id="swr_02_0036__p1434911342014">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_0036__p4349430208">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0036__row5349837207"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0036__p834920312011">204</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0036__p4349113182014">The image with a specified tag is deleted successfully.</p>
</td>
</tr>
<tr id="swr_02_0036__row53501322011"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0036__p23509352013">400</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0036__p83505352020">Request error. Error information is returned.</p>
</td>
</tr>
<tr id="swr_02_0036__row147214765819"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0036__p12314164419574">401</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0036__p93141244155715">Authentication failed.</p>
</td>
</tr>
<tr id="swr_02_0036__row187384312201"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0036__p11739731182020">404</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0036__p137391931122010">The repository or the image with a specified tag does not exist.</p>
</td>
</tr>
<tr id="swr_02_0036__row0350123192020"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0036__p335019311201">500</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0036__p43509342017">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>