forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com> Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
119 lines
8.3 KiB
HTML
119 lines
8.3 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 Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="swr_02_0026__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request header parameters</caption><thead align="left"><tr id="swr_02_0026__row86561533143212"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="swr_02_0026__p146593338328">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="swr_02_0026__p3660153320320">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="swr_02_0026__p8660133123212">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="swr_02_0026__p12661133319329">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0026__row1665653312322"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="swr_02_0026__p166173313216">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="swr_02_0026__p2661163320323">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="swr_02_0026__p186611733183211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="swr_02_0026__p1662133393210">Message body type (format). The value can be <strong id="swr_02_0026__b1356398695101557">application/json;charset=utf-8 application/json</strong></p>
|
|
<p id="swr_02_0026__p0662183343214">The default value is <strong id="swr_02_0026__b0662933133219">application/json</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="swr_02_0026__row196561533143216"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="swr_02_0026__p8663133318328">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="swr_02_0026__p136639339328">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="swr_02_0026__p12663633143220">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="swr_02_0026__p96641330323">User token.</p>
|
|
<p id="swr_02_0026__p466410334323">The token can be obtained by calling the IAM API used to obtain a user token. The value of <strong id="swr_02_0026__b457869402101557">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_0026__request_CreateNamespaceRequestBody" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameter</caption><thead align="left"><tr id="swr_02_0026__row126651033173218"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="swr_02_0026__p18666733173217">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_0026__p1566673393211">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_0026__p4666203383218">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_0026__p766610339321">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="swr_02_0026__row1665173353213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="swr_02_0026__p2667143317323">namespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="swr_02_0026__p14667193303211">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="swr_02_0026__p66671733163211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="swr_02_0026__p4668833193216">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>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="swr_02_0026__section11668183316323"><h4 class="sectiontitle">Response Parameters</h4><p id="swr_02_0026__p1366883383213">N/A</p>
|
|
</div>
|
|
<div class="section" id="swr_02_0026__section156681933103214"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="swr_02_0026__screen176691337324">POST https://{endpoint}/v2/manage/namespaces
|
|
|
|
{
|
|
"namespace" : "group"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="swr_02_0026__section867033312324"><h4 class="sectiontitle">Example Response</h4><p id="swr_02_0026__p7670633203216">N/A</p>
|
|
</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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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.7.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="en-us_topic_0000001420846090.html">Organization Management</a></div>
|
|
</div>
|
|
</div>
|
|
|