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>
132 lines
9.9 KiB
HTML
132 lines
9.9 KiB
HTML
<a name="swr_02_0032"></a><a name="swr_02_0032"></a>
|
|
|
|
<h1 class="topictitle1">Updating the Brief Information on an Image Repository</h1>
|
|
<div id="body1531798197430"><div class="section" id="swr_02_0032__section14905762191056"><h4 class="sectiontitle">Function</h4><p id="swr_02_0032__p38546794191926">Update the brief information on an image repository in an organization, including the <strong id="swr_02_0032__b15435520531">category</strong>, <strong id="swr_02_0032__b1154315545318">is_public</strong>, and <strong id="swr_02_0032__b954435175313">description</strong>.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0032__section10482810165331"><h4 class="sectiontitle">URI</h4><p id="swr_02_0032__p67361389312">PATCH /v2/manage/namespaces/{<em id="swr_02_0032__i13551239543">namespace</em>}/repos/{<em id="swr_02_0032__i151698433416">repository</em>}</p>
|
|
<p id="swr_02_0032__p15912737141515">For details about parameters, see <a href="#swr_02_0032__table16521054337">Table 1</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0032__table16521054337"></a><a name="table16521054337"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0032__table16521054337" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="swr_02_0032__row1752154439"><th align="left" class="cellrowborder" valign="top" width="16.13%" id="mcps1.3.2.4.2.5.1.1"><p id="swr_02_0032__p125216541336">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.05%" id="mcps1.3.2.4.2.5.1.2"><p id="swr_02_0032__p1450315424313">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.389999999999999%" id="mcps1.3.2.4.2.5.1.3"><p id="swr_02_0032__p15022419437">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="59.43000000000001%" id="mcps1.3.2.4.2.5.1.4"><p id="swr_02_0032__p552195419316">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0032__row452654236"><td class="cellrowborder" valign="top" width="16.13%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0032__p66113272413">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.05%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0032__p10507114164313">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.389999999999999%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0032__p105058419438">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.43000000000001%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0032__p1204822152314">Organization name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__row11521554933"><td class="cellrowborder" valign="top" width="16.13%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0032__p16614273417">repository</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.05%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0032__p557753134314">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.389999999999999%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0032__p145510530435">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.43000000000001%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0032__p9922191815234">Image repository name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__row1455415461754"><td class="cellrowborder" valign="top" width="16.13%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0032__p778175513516">category</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.05%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0032__p18901870191926">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.389999999999999%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0032__p11505105819433">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.43000000000001%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0032__p149099555342">Repository type.</p>
|
|
<p id="swr_02_0032__p9125164615613">The value can be <strong id="swr_02_0032__b203633411577">app_server</strong>, <strong id="swr_02_0032__b183701419577">linux</strong>, <strong id="swr_02_0032__b037104125712">framework_app</strong>, <strong id="swr_02_0032__b1337312411578">database</strong>, <strong id="swr_02_0032__b637414105715">lang</strong>, <strong id="swr_02_0032__b4375144135716">other</strong>, <strong id="swr_02_0032__b5376144114576">windows</strong> or <strong id="swr_02_0032__b1637794114576">arm</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__row06613491850"><td class="cellrowborder" valign="top" width="16.13%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0032__p107819551356">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.05%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0032__p46157271191916">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.389999999999999%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0032__p165071858174319">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.43000000000001%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0032__p512594611616">Repository description.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__row155951343250"><td class="cellrowborder" valign="top" width="16.13%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0032__p117819551257">is_public</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.05%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0032__p53310811440">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.389999999999999%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0032__p1450812582437">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59.43000000000001%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0032__p131251146268">Whether the repository is a public repository. The value can be either <strong id="swr_02_0032__b1118975911451">true</strong> or <strong id="swr_02_0032__b141911559164511">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0032__section3270966102931"><h4 class="sectiontitle">Request</h4><ul id="swr_02_0032__ul93691810173518"><li id="swr_02_0032__li1736913103354">Request parameters<p id="swr_02_0032__p7528019163518"><a name="swr_02_0032__li1736913103354"></a><a name="li1736913103354"></a>N/A</p>
|
|
</li><li id="swr_02_0032__li561317126352">Example request<pre class="screen" id="swr_02_0032__screen3268101183820">PATCH https://{Endpoint}/v2/manage/namespaces/<em id="swr_02_0032__i1664329173819">group</em>/repos/<em id="swr_02_0032__i14309105119383">busybox</em></pre>
|
|
<p id="swr_02_0032__p62417129361">Body:</p>
|
|
<pre class="screen" id="swr_02_0032__screen32081942276">-F "category=linux" \
|
|
-F "description=this is a busybox repository" \
|
|
-F "is_public=false"</pre>
|
|
<p id="swr_02_0032__p154971815163617">Or</p>
|
|
<pre class="screen" id="swr_02_0032__screen33634416418">{
|
|
"category": "linux",
|
|
"description": "this is a busybox repository",
|
|
"is_public": false
|
|
}</pre>
|
|
<div class="note" id="swr_02_0032__note17261131517421"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="swr_02_0032__p15261615134218">The form format will no longer be supported soon. You are advised to use the body in the JSON format to call the API.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0032__section46271297104114"><h4 class="sectiontitle">Response</h4><ul id="swr_02_0032__ul64473314258"><li id="swr_02_0032__li12447183112253">Response parameters<p id="swr_02_0032__p11533204472519"><a name="swr_02_0032__li12447183112253"></a><a name="li12447183112253"></a>N/A</p>
|
|
</li><li id="swr_02_0032__li985416337256">Example response<pre class="screen" id="swr_02_0032__screen94909421256">{}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0032__section5365169104253"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0032__table69017321572" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0032__row13902732879"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.2.1.3.1.1"><p id="swr_02_0032__p189029321477">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_0032__p8902532779">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0032__row1190213320715"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0032__p179026321175">201</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0032__p1890233210713">The brief information about the image repository is successfully updated.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__row179029321470"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0032__p490220329714">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0032__p4902143218720">Request error. Error information is returned.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__row156697155718"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0032__p195672711578">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0032__p125673745714">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__row1990243213715"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0032__p490263216714">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0032__p690263216716">The repository does not exist.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__row2090313216713"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0032__p129030329719">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0032__p090314328715">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>
|
|
|