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>
175 lines
16 KiB
HTML
175 lines
16 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="body8662426"><div class="section" id="swr_02_0032__en-us_topic_0000001231113969_section10185145634312"><h4 class="sectiontitle">Description</h4><p id="swr_02_0032__en-us_topic_0000001231113969_p17185175614432">Update the brief information on an image in an organization of a tenant, including the <strong id="swr_02_0032__en-us_topic_0000001231113969_b195163268224">category</strong>, <strong id="swr_02_0032__en-us_topic_0000001231113969_b135161626172215">is_public</strong>, and <strong id="swr_02_0032__en-us_topic_0000001231113969_b55178267228">description</strong>.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0032__en-us_topic_0000001231113969_section11861856194316"><h4 class="sectiontitle">Constraints</h4><p id="swr_02_0032__en-us_topic_0000001231113969_p11186356154310">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0032__en-us_topic_0000001231113969_section31861256124312"><h4 class="sectiontitle">URI</h4><p id="swr_02_0032__en-us_topic_0000001231113969_p51872568434">PATCH /v2/manage/namespaces/{namespace}/repos/{repository}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0032__en-us_topic_0000001231113969_table41882056174318" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="swr_02_0032__en-us_topic_0000001231113969_row14188145613435"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="swr_02_0032__en-us_topic_0000001231113969_p1318910561434">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_0032__en-us_topic_0000001231113969_p91891356154316">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_0032__en-us_topic_0000001231113969_p8189456104318">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_0032__en-us_topic_0000001231113969_p181891456174312">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0032__en-us_topic_0000001231113969_row111883562439"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p13189356194312">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0032__en-us_topic_0000001231113969_p13190356124313">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0032__en-us_topic_0000001231113969_p6190135615434">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0032__en-us_topic_0000001231113969_p119055617432">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_0032__en-us_topic_0000001231113969_row20188105618435"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p6190105694310">repository</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0032__en-us_topic_0000001231113969_p319017561436">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0032__en-us_topic_0000001231113969_p1419118564433">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0032__en-us_topic_0000001231113969_p159671338184410">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_0032__en-us_topic_0000001231113969_section919185674313"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0032__en-us_topic_0000001231113969_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0032__en-us_topic_0000001231113969_row12192956144320"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="swr_02_0032__en-us_topic_0000001231113969_p101931156164315">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_0032__en-us_topic_0000001231113969_p9194856144311">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_0032__en-us_topic_0000001231113969_p21941056164311">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_0032__en-us_topic_0000001231113969_p619417565432">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0032__en-us_topic_0000001231113969_row101923560431"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p1719417562433">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="swr_02_0032__en-us_topic_0000001231113969_p3195145619434">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0032__en-us_topic_0000001231113969_p019585614435">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0032__en-us_topic_0000001231113969_p121959562432">Message body type (format). The value can be <strong id="swr_02_0032__en-us_topic_0000001231113969_b89901436105818">application/json</strong> or <strong id="swr_02_0032__en-us_topic_0000001231113969_b499183616589">charset=utf-8 application/json</strong>.</p>
|
|
<p id="swr_02_0032__en-us_topic_0000001231113969_p419595614437">Default value: <strong id="swr_02_0032__en-us_topic_0000001231113969_b9460939155817">application/json</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__en-us_topic_0000001231113969_row619319562436"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p191951956154312">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_0032__en-us_topic_0000001231113969_p13196165684310">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0032__en-us_topic_0000001231113969_p191961556104311">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0032__en-us_topic_0000001231113969_p619611564433">User token.</p>
|
|
<p id="swr_02_0032__en-us_topic_0000001231113969_p1319620567439">The token can be obtained through the IAM API used to obtain a user token. The value of <strong id="swr_02_0032__en-us_topic_0000001231113969_b1845713105181">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_0032__en-us_topic_0000001231113969_request_UpdateRepoRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="swr_02_0032__en-us_topic_0000001231113969_row919725617439"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="swr_02_0032__en-us_topic_0000001231113969_p101971956144313">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_0032__en-us_topic_0000001231113969_p9198135613433">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_0032__en-us_topic_0000001231113969_p21981156174313">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_0032__en-us_topic_0000001231113969_p81981567434">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0032__en-us_topic_0000001231113969_row219745610436"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p21985561431">is_public</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="swr_02_0032__en-us_topic_0000001231113969_p17198145617434">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="swr_02_0032__en-us_topic_0000001231113969_p151981256194311">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="swr_02_0032__en-us_topic_0000001231113969_p1619855618432">Whether the repository is a public repository. When the value is <strong id="swr_02_0032__en-us_topic_0000001231113969_b1172915935115212">true</strong>, it indicates the repository is public. When the value is<strong id="swr_02_0032__en-us_topic_0000001231113969_b301663601115212"> false</strong>, it indicates the repository is private.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__en-us_topic_0000001231113969_row151971456144311"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p1119965634316">category</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="swr_02_0032__en-us_topic_0000001231113969_p2199156194320">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="swr_02_0032__en-us_topic_0000001231113969_p1119916562438">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="swr_02_0032__en-us_topic_0000001231113969_p019975664317">Repository type. The value can be <strong id="swr_02_0032__en-us_topic_0000001231113969_b770844017115236">app_server</strong>, <strong id="swr_02_0032__en-us_topic_0000001231113969_b2018884600115236">linux</strong>, <strong id="swr_02_0032__en-us_topic_0000001231113969_b1169173071115236">framework_app</strong>, <strong id="swr_02_0032__en-us_topic_0000001231113969_b1417799914115236">database</strong>, <strong id="swr_02_0032__en-us_topic_0000001231113969_b1759807142115236">lang</strong>, <strong id="swr_02_0032__en-us_topic_0000001231113969_b1027308089115236">other</strong>, <strong id="swr_02_0032__en-us_topic_0000001231113969_b2031996291115236">windows</strong>, or <strong id="swr_02_0032__en-us_topic_0000001231113969_b570469618115236">arm</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__en-us_topic_0000001231113969_row11975562438"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p1819965612434">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="swr_02_0032__en-us_topic_0000001231113969_p1199115613430">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="swr_02_0032__en-us_topic_0000001231113969_p1519925614311">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="swr_02_0032__en-us_topic_0000001231113969_p820075694311">Brief description of the image repository.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0032__en-us_topic_0000001231113969_section4200175624315"><h4 class="sectiontitle">Response Parameters</h4><p id="swr_02_0032__en-us_topic_0000001231113969_p620055644311">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0032__en-us_topic_0000001231113969_section6200185612437"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="swr_02_0032__en-us_topic_0000001231113969_screen720065610432">PATCH https://{endpoint}/v2/manage/namespaces/{namespace}/repos/{repository}
|
|
|
|
{
|
|
"category" : "database",
|
|
"description" : "this is a busybox repository",
|
|
"is_public" : false
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="swr_02_0032__en-us_topic_0000001231113969_section9201356104318"><h4 class="sectiontitle">Example Response</h4><p id="swr_02_0032__en-us_topic_0000001231113969_p220185614315">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0032__en-us_topic_0000001231113969_section14447156194312"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0032__en-us_topic_0000001231113969_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0032__en-us_topic_0000001231113969_row172251656124310"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="swr_02_0032__en-us_topic_0000001231113969_p244816565434">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_0032__en-us_topic_0000001231113969_p1744895694319">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0032__en-us_topic_0000001231113969_row10225056114318"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p1144875644316">201</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0032__en-us_topic_0000001231113969_p10448125694320">Brief information about the image repository updated.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__en-us_topic_0000001231113969_row8225656124319"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p1544885619438">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0032__en-us_topic_0000001231113969_p7448256194311">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__en-us_topic_0000001231113969_row4225175617439"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p34486566439">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0032__en-us_topic_0000001231113969_p2448155634314">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__en-us_topic_0000001231113969_row5225185694318"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p444885644315">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0032__en-us_topic_0000001231113969_p15448105616437">The image repository was not found</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0032__en-us_topic_0000001231113969_row13225145654312"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0032__en-us_topic_0000001231113969_p1844885694314">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0032__en-us_topic_0000001231113969_p6448125654311">Internal error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0032__en-us_topic_0000001231113969_section5448115624317"><h4 class="sectiontitle">Error Codes</h4><p id="swr_02_0032__en-us_topic_0000001231113969_p17448115654315">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>
|
|
|