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>
87 lines
6.4 KiB
HTML
87 lines
6.4 KiB
HTML
<a name="swr_02_0026"></a><a name="swr_02_0026"></a>
|
|
|
|
<h1 class="topictitle1">Creating an Organization</h1>
|
|
<div id="body1531798197420"><div class="section" id="swr_02_0026__se03aae4436e64394a95dc13b6f233898"><h4 class="sectiontitle">Function</h4><p id="swr_02_0026__a7005bd3228d34f8ea0fb7b75b17cfbb2">Create an organization.</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0026__s476df674307e4b04b9545f9575dde042"><h4 class="sectiontitle">URI</h4><p id="swr_02_0026__p3537273892216">POST /v2/manage/namespaces</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0026__s8246d3afdd6f44dc817ce0c3f2ac7d53"><h4 class="sectiontitle">Request</h4><ul id="swr_02_0026__ul14947641816"><li id="swr_02_0026__li1894724116">Request parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0026__table129941514855" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request body parameter description</caption><thead align="left"><tr id="swr_02_0026__row1111415559"><th align="left" class="cellrowborder" valign="top" width="16.928307169283073%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="swr_02_0026__p162815458">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.598840115988402%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="swr_02_0026__p83241756144115">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.85871412858714%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="swr_02_0026__p63228569414">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="58.614138586141394%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="swr_02_0026__p7612153511">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0026__row11816151559"><td class="cellrowborder" valign="top" width="16.928307169283073%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="swr_02_0026__p17916150515">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.598840115988402%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="swr_02_0026__p193261756154118">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.85871412858714%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="swr_02_0026__p6326856114114">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.614138586141394%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="swr_02_0026__p138716390116">Organization name.</p>
|
|
<p id="swr_02_0026__p2152015954">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>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="swr_02_0026__li132239100115">Example request<p id="swr_02_0026__p81944919113"><a name="swr_02_0026__li132239100115"></a><a name="li132239100115"></a>Create an organization named <strong id="swr_02_0026__b184733019333">group</strong>:</p>
|
|
<pre class="screen" id="swr_02_0026__screen288713713919">POST https://{Endpoint}/v2/manage/namespaces</pre>
|
|
<p id="swr_02_0026__p7511134933516">Body:</p>
|
|
<pre class="screen" id="swr_02_0026__screen11748172212473">{
|
|
"namespace": "group"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0026__sab9be5ce850743859bb238e072f8d1f2"><h4 class="sectiontitle">Response</h4><ul id="swr_02_0026__ul67221991335"><li id="swr_02_0026__li13722592319">Response parameters<p id="swr_02_0026__p17317132014310"><a name="swr_02_0026__li13722592319"></a><a name="li13722592319"></a>N/A</p>
|
|
</li><li id="swr_02_0026__li19296101215319">Example response<pre class="screen" id="swr_02_0026__screen145821027731">{}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="swr_02_0026__s336c1dbc7af446a1b3cc077ea3f82fc9"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0026__t33d02fa79e8443868a71c99f411610a5" frame="border" border="1" rules="all"><thead align="left"><tr id="swr_02_0026__r9eb80d64e8f34d0db940daa95fc929dd"><th align="left" class="cellrowborder" valign="top" width="16.439999999999998%" id="mcps1.3.5.2.1.3.1.1"><p id="swr_02_0026__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_0026__aa802d02e21c944f1863435a0d11c7ec1">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0026__r1cc0192c651444db882dde750b14be23"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0026__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_0026__p14504142233912">Creation successful.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0026__r0bd68000afe546dd9c7a8d3a05991a04"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0026__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_0026__a1f2e8d58145d461781428d28f07a5351">The request is incorrect or the number of organizations exceeds the upper limit.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0026__row059261364320"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0026__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_0026__p759261314433">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0026__row9547111612437"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0026__p19547131615432">409</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="83.56%" headers="mcps1.3.5.2.1.3.1.2 "><p id="swr_02_0026__p16547416114315">The resource already exists.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0026__r19bdef782c164c93917f897241e521f8"><td class="cellrowborder" valign="top" width="16.439999999999998%" headers="mcps1.3.5.2.1.3.1.1 "><p id="swr_02_0026__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_0026__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>
|
|
|