doc-exports/docs/swr/api-ref/swr_02_0073.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

205 lines
14 KiB
HTML

<a name="swr_02_0073"></a><a name="swr_02_0073"></a>
<h1 class="topictitle1">Checking the Existence of an Account Used for Image Sharing</h1>
<div id="body1536217343735"><div class="section" id="swr_02_0073__se03aae4436e64394a95dc13b6f233898"><h4 class="sectiontitle">Function</h4><p id="swr_02_0073__a7005bd3228d34f8ea0fb7b75b17cfbb2">Check whether an account used for image sharing exists.</p>
</div>
<div class="section" id="swr_02_0073__s476df674307e4b04b9545f9575dde042"><h4 class="sectiontitle">URI</h4><p id="swr_02_0073__p3537273892216"> GET /v2/manage/namespaces/{<em id="swr_02_0073__i198191612163110">namespace</em>}/repositories/{<em id="swr_02_0073__i113866162313">repository</em>}/access-domains/{<em id="swr_02_0073__i13631921193114">access_domain</em>}</p>
<p id="swr_02_0073__p6282286219">For details about parameters, see <a href="#swr_02_0073__table11843162810214">Table 1</a>.</p>
<div class="tablenoborder"><a name="swr_02_0073__table11843162810214"></a><a name="table11843162810214"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0073__table11843162810214" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="swr_02_0073__row20843172818213"><th align="left" class="cellrowborder" valign="top" width="17.52%" id="mcps1.3.2.4.2.5.1.1"><p id="swr_02_0073__p3843528621">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.220000000000002%" id="mcps1.3.2.4.2.5.1.2"><p id="swr_02_0073__p198988313226">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.74%" id="mcps1.3.2.4.2.5.1.3"><p id="swr_02_0073__p128986316221">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.519999999999996%" id="mcps1.3.2.4.2.5.1.4"><p id="swr_02_0073__p1584342811211">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0073__row1084316281925"><td class="cellrowborder" valign="top" width="17.52%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0073__p6843228526">namespace</p>
</td>
<td class="cellrowborder" valign="top" width="16.220000000000002%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0073__p10898431122213">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.74%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0073__p289883118229">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.519999999999996%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0073__p85037015469">Organization name</p>
</td>
</tr>
<tr id="swr_02_0073__row1319321944420"><td class="cellrowborder" valign="top" width="17.52%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0073__p919315194441">repository</p>
</td>
<td class="cellrowborder" valign="top" width="16.220000000000002%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0073__p98981331172211">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.74%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0073__p1189833112228">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.519999999999996%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0073__p13193201924411">Image repository name</p>
</td>
</tr>
<tr id="swr_02_0073__row177081913132710"><td class="cellrowborder" valign="top" width="17.52%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0073__p167081513102715">access_domain</p>
</td>
<td class="cellrowborder" valign="top" width="16.220000000000002%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0073__p94144342224">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.74%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0073__p46813432228">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.519999999999996%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0073__p13708313122716">Name of the account used for image sharing.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="swr_02_0073__s8246d3afdd6f44dc817ce0c3f2ac7d53"><h4 class="sectiontitle">Request</h4><ul id="swr_02_0073__ul57641153239"><li id="swr_02_0073__li376411510236">Request parameters<p id="swr_02_0073__p15400112132313"><a name="swr_02_0073__li376411510236"></a><a name="li376411510236"></a>N/A</p>
</li><li id="swr_02_0073__li1278941712231">Example request<pre class="screen" id="swr_02_0073__screen1486125172318">GET https://{Endpoint}/v2/manage/namespaces/<em id="swr_02_0073__i12317484236">group</em>/repositories/<em id="swr_02_0073__i848845010233">busybox</em>/access-domains/<em id="swr_02_0073__i4768105813196">domain_name</em></pre>
</li></ul>
</div>
<div class="section" id="swr_02_0073__sab9be5ce850743859bb238e072f8d1f2"><h4 class="sectiontitle">Response</h4><ul id="swr_02_0073__ul2015121692416"><li id="swr_02_0073__li41511516182416">Response parameters
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0073__table444617282446" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response body parameter description</caption><thead align="left"><tr id="swr_02_0073__row1245012815447"><th align="left" class="cellrowborder" valign="top" width="20.169999999999998%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="swr_02_0073__p1545182804417">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.48%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="swr_02_0073__p4336150134811">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60.35%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="swr_02_0073__p1845516288440">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0073__row645652824413"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p2458132854413">exist</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p12459528154411">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p1846115289446"><strong id="swr_02_0073__b82311326204114">true</strong>: Exist. <strong id="swr_02_0073__b1891163414113">false</strong>: Not exist.</p>
</td>
</tr>
<tr id="swr_02_0073__row14665323175210"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p43401630141910">namespace</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p203401530111912">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p20340730191918">Organization name.</p>
</td>
</tr>
<tr id="swr_02_0073__row7593162665215"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p10980112717192">repository</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p20980132718193">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p14980192714197">Image repository name.</p>
</td>
</tr>
<tr id="swr_02_0073__row25934269529"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p4111525165410">access_domain</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p360215315712">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p206025311878">Name of the account used for image sharing.</p>
</td>
</tr>
<tr id="swr_02_0073__row12133630145215"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p1568212212204">permit</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p1568252172015">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p1968202192013">Permission.</p>
</td>
</tr>
<tr id="swr_02_0073__row18133153025211"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p820345065419">deadline</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p103631149164219">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p33651491427">Expiration time.</p>
</td>
</tr>
<tr id="swr_02_0073__row91339302521"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p9463481556">description</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p65137412431">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p05141147434">Description.</p>
</td>
</tr>
<tr id="swr_02_0073__row20133143045215"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p18944193920576">creator_id</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p460211311279">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p368285415720">Creator ID.</p>
</td>
</tr>
<tr id="swr_02_0073__row1044635011523"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p15603531879">creator_name</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p1760318310710">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p136038314714">Name of the creator.</p>
</td>
</tr>
<tr id="swr_02_0073__row20446125045210"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p13603531378">created</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p204545431021">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p760315313710">Time when an image is created. It is the UTC standard time.</p>
</td>
</tr>
<tr id="swr_02_0073__row10446135035217"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p14603631778">updated</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p1788465012216">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p1360316317716">Time when an image is updated. It is the UTC standard time.</p>
</td>
</tr>
<tr id="swr_02_0073__row14460509526"><td class="cellrowborder" valign="top" width="20.169999999999998%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0073__p427119188502">status</p>
</td>
<td class="cellrowborder" valign="top" width="19.48%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0073__p142711318125017">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60.35%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0073__p1780013411299">Status.</p>
<p id="swr_02_0073__p11674184218407">true: valid. false: expired.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="swr_02_0073__li344611872410">Example response<pre class="screen" id="swr_02_0073__screen25998422138">{
"exist": true,
"namespace": "group",
"repository": "busybox",
"access_domain": "xxx",
"permit": "read",
"deadline": "2021-10-01T16:00:00Z",
"description": "description",
"creator_id": "0504186e6a8010e01f3ec009a7279baa",
"creator_name": "xxx",
"created": "2021-06-10T08:14:42.56632Z",
"updated": "2021-06-10T08:14:42.566325Z",
"status": true
}</pre>
</li></ul>
</div>
<div class="section" id="swr_02_0073__s336c1dbc7af446a1b3cc077ea3f82fc9"><h4 class="sectiontitle">Status Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0073__t33d02fa79e8443868a71c99f411610a5" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0073__r9eb80d64e8f34d0db940daa95fc929dd"><th align="left" class="cellrowborder" valign="top" width="16.439999999999998%" id="mcps1.3.5.2.1.3.1.1"><p id="swr_02_0073__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_0073__aa802d02e21c944f1863435a0d11c7ec1">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="swr_02_0073__r1cc0192c651444db882dde750b14be23"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0073__a6a3639a3cb154e17b95c5076c8036471">200</p>
</td>
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0073__p14504142233912">Query succeeded.</p>
</td>
</tr>
<tr id="swr_02_0073__r0bd68000afe546dd9c7a8d3a05991a04"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0073__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_0073__a1f2e8d58145d461781428d28f07a5351">Request error.</p>
</td>
</tr>
<tr id="swr_02_0073__row059261364320"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0073__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_0073__p759261314433">Authentication failed.</p>
</td>
</tr>
<tr id="swr_02_0073__r19bdef782c164c93917f897241e521f8"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0073__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_0073__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>