forked from laiweijian4/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>
151 lines
10 KiB
HTML
151 lines
10 KiB
HTML
<a name="swr_02_0028"></a><a name="swr_02_0028"></a>
|
|
|
|
<h1 class="topictitle1">Querying the List of Organizations</h1>
|
|
<div id="body1531798197424"><div class="section" id="swr_02_0028__se03aae4436e64394a95dc13b6f233898"><h4 class="sectiontitle">Function</h4><p id="swr_02_0028__a7005bd3228d34f8ea0fb7b75b17cfbb2">Query the list of organizations.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0028__s476df674307e4b04b9545f9575dde042"><h4 class="sectiontitle">URI</h4><p id="swr_02_0028__p196359216531">GET /v2/manage/namespaces?filter=namespace::{<em id="swr_02_0028__i8945749125415">namespace</em>}</p>
|
|
<p id="swr_02_0028__p1160013561311">For details about parameters, see <a href="#swr_02_0028__tae82a09e27434bef9a38b734d798ae6c">Table 1</a>.</p>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0028__tae82a09e27434bef9a38b734d798ae6c"></a><a name="tae82a09e27434bef9a38b734d798ae6c"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0028__tae82a09e27434bef9a38b734d798ae6c" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="swr_02_0028__r2c22eba22439445680961f8c447f8756"><th align="left" class="cellrowborder" valign="top" width="17.1%" id="mcps1.3.2.4.2.5.1.1"><p id="swr_02_0028__a4276374f4f884a1a8ff6eabdab4da030">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.36%" id="mcps1.3.2.4.2.5.1.2"><p id="swr_02_0028__p1351382513427">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.09%" id="mcps1.3.2.4.2.5.1.3"><p id="swr_02_0028__p1781316754219">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54.449999999999996%" id="mcps1.3.2.4.2.5.1.4"><p id="swr_02_0028__en-us_topic_0060210625_p192541611508">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0028__row4140165617213"><td class="cellrowborder" valign="top" width="17.1%" headers="mcps1.3.2.4.2.5.1.1 "><p id="swr_02_0028__p6843228526">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.36%" headers="mcps1.3.2.4.2.5.1.2 "><p id="swr_02_0028__p9516625134212">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.09%" headers="mcps1.3.2.4.2.5.1.3 "><p id="swr_02_0028__p681437134216">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.449999999999996%" headers="mcps1.3.2.4.2.5.1.4 "><p id="swr_02_0028__p776511203467">Organization name</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0028__s8246d3afdd6f44dc817ce0c3f2ac7d53"><h4 class="sectiontitle">Request</h4><ul id="swr_02_0028__ul5282518131413"><li id="swr_02_0028__li10282141811420">Request parameters<p id="swr_02_0028__p440112314146"><a name="swr_02_0028__li10282141811420"></a><a name="li10282141811420"></a>N/A</p>
|
|
</li><li id="swr_02_0028__li4754119161419">Example request<pre class="screen" id="swr_02_0028__screen891223915166">GET https://{Endpoint}/v2/manage/namespaces?filter=namespace::<em id="swr_02_0028__i17202103211284">group</em></pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0028__sab9be5ce850743859bb238e072f8d1f2"><h4 class="sectiontitle">Response</h4><ul id="swr_02_0028__ul9266162381819"><li id="swr_02_0028__li17266122301813">Response parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0028__table34001413863" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response body parameter description</caption><thead align="left"><tr id="swr_02_0028__row17400171319612"><th align="left" class="cellrowborder" valign="top" width="20.89%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="swr_02_0028__p1840015139619">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20.11%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="swr_02_0028__p24002135620">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="59%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="swr_02_0028__p174008131163">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0028__row11400113668"><td class="cellrowborder" valign="top" width="20.89%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="swr_02_0028__p14008131464">namespaces</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20.11%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="swr_02_0028__p9400151314615">Array of <a href="#swr_02_0028__table1787854911167">objects</a></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="swr_02_0028__p1840110136612">Organization list</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="swr_02_0028__table1787854911167"></a><a name="table1787854911167"></a><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0028__table1787854911167" frame="border" border="1" rules="all"><caption><b>Table 3 </b>namespaces parameter description</caption><thead align="left"><tr id="swr_02_0028__row1588184916165"><th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.4.2.1.2.2.4.1.1"><p id="swr_02_0028__p158847496166">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.1.2.2.4.1.2"><p id="swr_02_0028__p2088624911169">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="59%" id="mcps1.3.4.2.1.2.2.4.1.3"><p id="swr_02_0028__p128875496169">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0028__row888994917169"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="swr_02_0028__p1889144915167">ID</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="swr_02_0028__p189324913167">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="swr_02_0028__p14894149141612">Organization ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0028__row19895649171616"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="swr_02_0028__p589616491166">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="swr_02_0028__p990115495162">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="swr_02_0028__p2904184981613">Organization name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0028__row1576047252"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="swr_02_0028__p3578164162517">creator_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="swr_02_0028__p8578134122515">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="swr_02_0028__p1557814492513">IAM username</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0028__row670815227263"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.2.1.2.2.4.1.1 "><p id="swr_02_0028__p270822232620">auth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.1.2.2.4.1.2 "><p id="swr_02_0028__p11708622162613">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="59%" headers="mcps1.3.4.2.1.2.2.4.1.3 "><p id="swr_02_0028__p3922141818192">User permission</p>
|
|
<ul id="swr_02_0028__ul1371263010195"><li id="swr_02_0028__li189653313198">7: Manage</li><li id="swr_02_0028__li35307340190">3: Write</li><li id="swr_02_0028__li127124307191">1: Read</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="swr_02_0028__li157972591810">Example response<pre class="screen" id="swr_02_0028__screen115699975811">{
|
|
"namespaces": [
|
|
{
|
|
"id": 1343008,
|
|
"name": "group",
|
|
"creator_name": "username",
|
|
"auth": 7
|
|
}
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0028__s336c1dbc7af446a1b3cc077ea3f82fc9"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0028__t33d02fa79e8443868a71c99f411610a5" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0028__r9eb80d64e8f34d0db940daa95fc929dd"><th align="left" class="cellrowborder" valign="top" width="16.439999999999998%" id="mcps1.3.5.2.1.3.1.1"><p id="swr_02_0028__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_0028__aa802d02e21c944f1863435a0d11c7ec1">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0028__r1cc0192c651444db882dde750b14be23"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0028__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_0028__ad54ae639e7f94380a87bfc10cc91a4f0">Query succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0028__r0bd68000afe546dd9c7a8d3a05991a04"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0028__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_0028__a1f2e8d58145d461781428d28f07a5351">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0028__row059261364320"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0028__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_0028__p759261314433">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0028__row9547111612437"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0028__p19547131615432">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0028__p16547416114315">The organization does not exist.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0028__r19bdef782c164c93917f897241e521f8"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0028__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_0028__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>
|
|
|