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>
179 lines
15 KiB
HTML
179 lines
15 KiB
HTML
<a name="swr_02_0072"></a><a name="swr_02_0072"></a>
|
|
|
|
<h1 class="topictitle1">Updating an Account An Image Is Shared With</h1>
|
|
<div id="body8662426"><div class="section" id="swr_02_0072__en-us_topic_0000001231313907_section87348175338"><h4 class="sectiontitle">Description</h4><p id="swr_02_0072__en-us_topic_0000001231313907_p7735201710332">Update an account an image is shared with.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__en-us_topic_0000001231313907_section2735617123320"><h4 class="sectiontitle">Constraints</h4><p id="swr_02_0072__en-us_topic_0000001231313907_p1773611711339">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__en-us_topic_0000001231313907_section12737617113314"><h4 class="sectiontitle">URI</h4><p id="swr_02_0072__en-us_topic_0000001231313907_p117389175334">PATCH /v2/manage/namespaces/{namespace}/repositories/{repository}/access-domains/{access_domain}</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0072__en-us_topic_0000001231313907_table187413178338" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="swr_02_0072__en-us_topic_0000001231313907_row4739517203318"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="swr_02_0072__en-us_topic_0000001231313907_p1574121743313">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_0072__en-us_topic_0000001231313907_p1874212173330">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_0072__en-us_topic_0000001231313907_p1274212176332">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_0072__en-us_topic_0000001231313907_p17742191763312">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0072__en-us_topic_0000001231313907_row67398174339"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p1874471710339">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0072__en-us_topic_0000001231313907_p15747141713316">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0072__en-us_topic_0000001231313907_p9749191733314">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0072__en-us_topic_0000001231313907_p14749717203316">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_0072__en-us_topic_0000001231313907_row20739317193318"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p10750111743316">repository</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0072__en-us_topic_0000001231313907_p0750517113313">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0072__en-us_topic_0000001231313907_p2075171712337">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0072__en-us_topic_0000001231313907_p1833713588245">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>
|
|
<tr id="swr_02_0072__en-us_topic_0000001231313907_row207391817163316"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p177521117123313">access_domain</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0072__en-us_topic_0000001231313907_p475215176333">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0072__en-us_topic_0000001231313907_p107531017183315">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0072__en-us_topic_0000001231313907_p147531217123317">Name of the account used for image sharing.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__en-us_topic_0000001231313907_section075411713317"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0072__en-us_topic_0000001231313907_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0072__en-us_topic_0000001231313907_row19755171719331"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="swr_02_0072__en-us_topic_0000001231313907_p16756171713314">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_0072__en-us_topic_0000001231313907_p2757217113316">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_0072__en-us_topic_0000001231313907_p4757617103312">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_0072__en-us_topic_0000001231313907_p4758191711332">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0072__en-us_topic_0000001231313907_row1675551718331"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p1475911703312">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="swr_02_0072__en-us_topic_0000001231313907_p7760101753311">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0072__en-us_topic_0000001231313907_p3761101719338">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0072__en-us_topic_0000001231313907_p1076118174337">Message body type (format). The value can be <strong id="swr_02_0072__en-us_topic_0000001231313907_b1129491003">application/json</strong> or <strong id="swr_02_0072__en-us_topic_0000001231313907_b11294191609">charset=utf-8 application/json</strong>.</p>
|
|
<p id="swr_02_0072__en-us_topic_0000001231313907_p176210171335">Default value: <strong id="swr_02_0072__en-us_topic_0000001231313907_b14761731020">application/json</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__en-us_topic_0000001231313907_row57552174338"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p1076241733313">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_0072__en-us_topic_0000001231313907_p1763111733312">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="swr_02_0072__en-us_topic_0000001231313907_p14763917123314">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="swr_02_0072__en-us_topic_0000001231313907_p7764181773319">User token.</p>
|
|
<p id="swr_02_0072__en-us_topic_0000001231313907_p127643174335">The token can be obtained by calling the IAM API used to obtain a user token. The value of <strong id="swr_02_0072__en-us_topic_0000001231313907_b6192441761190">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_0072__en-us_topic_0000001231313907_request_UpdateRepoDomainsRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="swr_02_0072__en-us_topic_0000001231313907_row1076531753319"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="swr_02_0072__en-us_topic_0000001231313907_p10767191713331">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_0072__en-us_topic_0000001231313907_p7767181773320">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_0072__en-us_topic_0000001231313907_p1776817176332">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_0072__en-us_topic_0000001231313907_p7768121711332">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0072__en-us_topic_0000001231313907_row177651217133319"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p1876951773319">permit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="swr_02_0072__en-us_topic_0000001231313907_p1976991703319">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="swr_02_0072__en-us_topic_0000001231313907_p6770121713337">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="swr_02_0072__en-us_topic_0000001231313907_p27708176336">Currently, only the read permission is supported.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__en-us_topic_0000001231313907_row1776561714335"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p187711917103318">deadline</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="swr_02_0072__en-us_topic_0000001231313907_p12772317123319">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="swr_02_0072__en-us_topic_0000001231313907_p13774111793316">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="swr_02_0072__en-us_topic_0000001231313907_p15775917143311">Valid until (UTC). <strong id="swr_02_0072__en-us_topic_0000001231313907_b98458385569">forever</strong> indicates permanently valid.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__en-us_topic_0000001231313907_row776513172335"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p167764172336">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="swr_02_0072__en-us_topic_0000001231313907_p197772017153318">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="swr_02_0072__en-us_topic_0000001231313907_p1077741743320">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="swr_02_0072__en-us_topic_0000001231313907_p167781717123317">Description. This parameter is left blank by default.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__en-us_topic_0000001231313907_section10779717173312"><h4 class="sectiontitle">Response Parameters</h4><p id="swr_02_0072__en-us_topic_0000001231313907_p17807179339">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__en-us_topic_0000001231313907_section1178061753312"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="swr_02_0072__en-us_topic_0000001231313907_screen7781817133318">PATCH https://{endpoint}/v2/manage/namespaces/{namespace}/repositories/{repository}/access-domains
|
|
|
|
{
|
|
"permit" : "read",
|
|
"deadline" : "2018-10-01T16:00:00.000Z",
|
|
"description" : "description"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__en-us_topic_0000001231313907_section9784111719335"><h4 class="sectiontitle">Example Response</h4><p id="swr_02_0072__en-us_topic_0000001231313907_p9785717173320">None</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__en-us_topic_0000001231313907_section687116183335"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0072__en-us_topic_0000001231313907_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0072__en-us_topic_0000001231313907_row188511174336"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="swr_02_0072__en-us_topic_0000001231313907_p1887231810331">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_0072__en-us_topic_0000001231313907_p1487210182338">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0072__en-us_topic_0000001231313907_row3851181720334"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p6872111811334">201</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0072__en-us_topic_0000001231313907_p387217184332">Modification succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__en-us_topic_0000001231313907_row1285161720336"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p1872201883316">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0072__en-us_topic_0000001231313907_p9872418193319">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__en-us_topic_0000001231313907_row68511617143314"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p158739183334">401</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0072__en-us_topic_0000001231313907_p8873141893318">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0072__en-us_topic_0000001231313907_row4851617113313"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="swr_02_0072__en-us_topic_0000001231313907_p18873111814338">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="swr_02_0072__en-us_topic_0000001231313907_p1287318184339">Internal error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0072__en-us_topic_0000001231313907_section2087341810333"><h4 class="sectiontitle">Error Codes</h4><p id="swr_02_0072__en-us_topic_0000001231313907_p128733189336">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_0088.html">Shared Account Management</a></div>
|
|
</div>
|
|
</div>
|
|
|