forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
110 lines
8.8 KiB
HTML
110 lines
8.8 KiB
HTML
<a name="en-us_topic_0121230885"></a><a name="en-us_topic_0121230885"></a>
|
|
|
|
<h1 class="topictitle1">Enabling or Disabling an Enterprise Project</h1>
|
|
<div id="body3101614"><div class="section" id="en-us_topic_0121230885__section58924013"><h4 class="sectiontitle">Function</h4><p class="msonormal" id="en-us_topic_0121230885__p49904171">This API is used to enable or disable an enterprise project.</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0121230885__section60554074"><h4 class="sectiontitle">URI</h4><p id="en-us_topic_0121230885__p64229094">POST /v1.0/enterprise-projects/{enterprise_project_id}/action</p>
|
|
<div class="p" id="en-us_topic_0121230885__p8936164691811">
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0121230885__table56060725" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter in the URI</caption><thead align="left"><tr id="en-us_topic_0121230885__row26275823"><th align="left" class="cellrowborder" valign="top" width="23.3%" id="mcps1.3.2.3.1.2.5.1.1"><p id="en-us_topic_0121230885__p47966891"><strong id="en-us_topic_0121230885__b15878104723012">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.75%" id="mcps1.3.2.3.1.2.5.1.2"><p id="en-us_topic_0121230885__p37313898">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.23%" id="mcps1.3.2.3.1.2.5.1.3"><p id="en-us_topic_0121230885__p60112988">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.72%" id="mcps1.3.2.3.1.2.5.1.4"><p id="en-us_topic_0121230885__p2526908"><strong id="en-us_topic_0121230885__b1150933010362">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0121230885__row3353019"><td class="cellrowborder" valign="top" width="23.3%" headers="mcps1.3.2.3.1.2.5.1.1 "><p id="en-us_topic_0121230885__p3159118">enterprise_project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.75%" headers="mcps1.3.2.3.1.2.5.1.2 "><p id="en-us_topic_0121230885__p57446994">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.23%" headers="mcps1.3.2.3.1.2.5.1.3 "><p id="en-us_topic_0121230885__p54562014">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.72%" headers="mcps1.3.2.3.1.2.5.1.4 "><p id="en-us_topic_0121230885__p22694931">Specifies the enterprise project ID. The enterprise project whose ID is <strong id="en-us_topic_0121230885__b5718568518">0</strong> cannot be modified.</p>
|
|
<p id="en-us_topic_0121230885__p23509211781">You can obtain the ID by using API <a href="en-us_topic_0121230880.html">Querying the Enterprise Project List</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0121230885__section8115759"><h4 class="sectiontitle">Request</h4><ul id="en-us_topic_0121230885__ul26350088"><li id="en-us_topic_0121230885__li35824201">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0121230885__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in the request header</caption><thead align="left"><tr id="en-us_topic_0121230885__row1953663411111"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="en-us_topic_0121230885__p1536123451118">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="en-us_topic_0121230885__p19537934141113">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="en-us_topic_0121230885__p1053717346112">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="en-us_topic_0121230885__p45376342119">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0121230885__row953673412119"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="en-us_topic_0121230885__p195375344116">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="en-us_topic_0121230885__p115381134141120">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="en-us_topic_0121230885__p14538193471117">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="en-us_topic_0121230885__p165386349111">Specifies the user token. EPS is a global service. When calling the IAM API to obtain a user token, set <strong id="en-us_topic_0121230885__b10978173893419">scope</strong> to <strong id="en-us_topic_0121230885__b3978183812342">domain</strong>. The value of <strong id="en-us_topic_0121230885__b5334154093410">X-Subject-Token</strong> in the response header is the user token.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0121230885__row2536434141111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="en-us_topic_0121230885__p163831551165418">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="en-us_topic_0121230885__p938318511546">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="en-us_topic_0121230885__p8362219105513">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="en-us_topic_0121230885__p203831251205414">Default value: <strong id="en-us_topic_0121230885__b2056523914323">application/json; charset=UTF-8</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0121230885__table53982361" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameters in the request body</caption><thead align="left"><tr id="en-us_topic_0121230885__row44982232"><th align="left" class="cellrowborder" valign="top" width="23.73%" id="mcps1.3.3.2.1.2.2.5.1.1"><p id="en-us_topic_0121230885__p19682185"><strong id="en-us_topic_0121230885__b111266310202">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.04%" id="mcps1.3.3.2.1.2.2.5.1.2"><p id="en-us_topic_0121230885__p50753154">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="26.290000000000003%" id="mcps1.3.3.2.1.2.2.5.1.3"><p id="en-us_topic_0121230885__p17364844">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.94%" id="mcps1.3.3.2.1.2.2.5.1.4"><p id="en-us_topic_0121230885__p64375151"><strong id="en-us_topic_0121230885__b155102306367">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0121230885__row47004722"><td class="cellrowborder" valign="top" width="23.73%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="en-us_topic_0121230885__p49286109">action</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.04%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="en-us_topic_0121230885__p32751897">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="26.290000000000003%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="en-us_topic_0121230885__p35657997">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.94%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="en-us_topic_0121230885__p2616674"><strong id="en-us_topic_0121230885__b842352706165328">enable</strong>: Enable an enterprise project.</p>
|
|
<p id="en-us_topic_0121230885__p23550072"><strong id="en-us_topic_0121230885__b842352706165347">disable</strong>: Disable an enterprise project.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="en-us_topic_0121230885__ul28507713"><li id="en-us_topic_0121230885__li45484212">Example request<pre class="codeblock" id="en-us_topic_0121230885__codeblock415410173199">POST https://{EPS endpoint}/v1.0/enterprise-projects/{enterprise_project_id}/action</pre>
|
|
<pre class="screen" id="en-us_topic_0121230885__screen6933172214195">{
|
|
"action":"enable"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0121230885__section5932974"><h4 class="sectiontitle">Response</h4><p id="en-us_topic_0121230885__p165182016166"><strong id="en-us_topic_0121230885__b196190408327">Status code: 204</strong></p>
|
|
<p class="msonormal" id="en-us_topic_0121230885__p33416961">None</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0121230885__section4531164315292"><h4 class="sectiontitle">Status Codes</h4><p id="en-us_topic_0121230885__p145228330242">For details, see <a href="en-us_topic_0171146972.html">Status Code</a>.</p>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0121230885__section0396144719295"><h4 class="sectiontitle">Error Codes</h4><p id="en-us_topic_0121230885__p177044331253">For details, see <a href="en-us_topic_0121230887.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0133321992.html">Enterprise Project Management</a></div>
|
|
</div>
|
|
</div>
|
|
|