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>
140 lines
9.9 KiB
HTML
140 lines
9.9 KiB
HTML
<a name="swr_02_0072"></a><a name="swr_02_0072"></a>
|
|
|
|
<h1 class="topictitle1">Updating an Account Used for Image Sharing</h1>
|
|
<div id="body1536217343735"><div class="section" id="swr_02_0072__se03aae4436e64394a95dc13b6f233898"><h4 class="sectiontitle">Function</h4><p id="swr_02_0072__a7005bd3228d34f8ea0fb7b75b17cfbb2">Update an account used for image sharing.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__s476df674307e4b04b9545f9575dde042"><h4 class="sectiontitle">URI</h4><p id="swr_02_0072__p3537273892216">PATCH /v2/manage/namespaces/{<em id="swr_02_0072__i53420411292">namespace</em>}/repositories/{<em id="swr_02_0072__i1247213463291">repository</em>}/access-domains/{<em id="swr_02_0072__i20432105042915">access_domain</em>}</p>
|
|
<p id="swr_02_0072__p146150141211">For details about parameters, see <a href="#swr_02_0072__table11843162810214">Table 1</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0072__table11843162810214"></a><a name="table11843162810214"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0072__table11843162810214" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="swr_02_0072__row20843172818213"><th align="left" class="cellrowborder" valign="top" width="18.22%" id="mcps1.3.2.4.2.5.1.1"><p id="swr_02_0072__p3843528621">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.56%" id="mcps1.3.2.4.2.5.1.2"><p id="swr_02_0072__p198988313226">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.220000000000002%" id="mcps1.3.2.4.2.5.1.3"><p id="swr_02_0072__p128986316221">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51%" id="mcps1.3.2.4.2.5.1.4"><p id="swr_02_0072__p1584342811211">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0072__row1084316281925"><td class="cellrowborder" valign="top" width="18.22%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0072__p6843228526">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.56%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0072__p10898431122213">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.220000000000002%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0072__p289883118229">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0072__p85037015469">Organization name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__row1319321944420"><td class="cellrowborder" valign="top" width="18.22%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0072__p919315194441">repository</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.56%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0072__p98981331172211">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.220000000000002%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0072__p1189833112228">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0072__p13193201924411">Image repository name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__row177081913132710"><td class="cellrowborder" valign="top" width="18.22%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0072__p167081513102715">access_domain</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.56%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0072__p94144342224">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.220000000000002%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0072__p46813432228">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0072__p13708313122716">Name of the account used for image sharing</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__s8246d3afdd6f44dc817ce0c3f2ac7d53"><h4 class="sectiontitle">Request</h4><ul id="swr_02_0072__ul46449293204"><li id="swr_02_0072__li206446294201">Request parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0072__table129941514855" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameter description</caption><thead align="left"><tr id="swr_02_0072__row1111415559"><th align="left" class="cellrowborder" valign="top" width="17%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="swr_02_0072__p162815458">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="swr_02_0072__p107931818112313">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="swr_02_0072__p167934185235">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="swr_02_0072__p7612153511">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0072__row14116102041010"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="swr_02_0072__p151171720181020">permit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="swr_02_0072__p14793318112313">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="swr_02_0072__p1879381817236">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="swr_02_0072__p31177205103">Currently, only the read permission is supported.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__row10426185741019"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="swr_02_0072__p74261957121020">deadline</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="swr_02_0072__p107931184231">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="swr_02_0072__p0793201814235">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="swr_02_0072__p11427155712106">Valid until (UTC). If the sharing is permanent, the value is <strong id="swr_02_0072__b13529175595015">forever</strong>. Otherwise, the sharing is valid until 00:00:00 of the next day.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__row1930349121111"><td class="cellrowborder" valign="top" width="17%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="swr_02_0072__p1630417961115">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="swr_02_0072__p130415920113">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="swr_02_0072__p1947332611108">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="swr_02_0072__p1230420914115">Description. This parameter is left blank by default.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="swr_02_0072__li564110313207">Example request<pre class="screen" id="swr_02_0072__screen1216541142111">PATCH https://{Endpoint}/v2/manage/namespaces/<em id="swr_02_0072__i17823235172112">group</em>/repositories/<em id="swr_02_0072__i123321942122118">busybox</em>/access-domains/<em id="swr_02_0072__i4768105813196">domain_name</em></pre>
|
|
<p id="swr_02_0072__p43337487365">Body:</p>
|
|
<pre class="screen" id="swr_02_0072__screen11748172212473">{
|
|
"permit": "read",
|
|
"deadline": "forever",
|
|
"description": "description"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__sab9be5ce850743859bb238e072f8d1f2"><h4 class="sectiontitle">Response</h4><p id="swr_02_0072__p96161426154313">N/A</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__s336c1dbc7af446a1b3cc077ea3f82fc9"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0072__t33d02fa79e8443868a71c99f411610a5" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0072__r9eb80d64e8f34d0db940daa95fc929dd"><th align="left" class="cellrowborder" valign="top" width="16.439999999999998%" id="mcps1.3.5.2.1.3.1.1"><p id="swr_02_0072__a7e51ed73a71e4dc29d0dd4aae3016632">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="83.56%" id="mcps1.3.5.2.1.3.1.2"><p id="swr_02_0072__aa802d02e21c944f1863435a0d11c7ec1">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0072__r1cc0192c651444db882dde750b14be23"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0072__a6a3639a3cb154e17b95c5076c8036471">201</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0072__p14504142233912">Modified successfully.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__r0bd68000afe546dd9c7a8d3a05991a04"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0072__ad46ccdc6b7e04df3b6b5679f7606f434">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0072__a1f2e8d58145d461781428d28f07a5351">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__row059261364320"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0072__p059261310438">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0072__p759261314433">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__r19bdef782c164c93917f897241e521f8"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0072__a7da68e311c0f4267bacf3cbdb71d1ead">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0072__aa6fd12cedd8841e29eeeca27c1bdea1a">Internal error.</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>
|
|
|