doc-exports/docs/iam/api-ref/en-us_topic_0094012960.html
zhangyue 3b5a58b1fe IAM API 2.0.38
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2022-10-26 04:31:24 +00:00

124 lines
9.9 KiB
HTML

<a name="en-us_topic_0094012960"></a><a name="en-us_topic_0094012960"></a>
<h1 class="topictitle1">Deleting a Project</h1>
<div id="body1516624175579"><div class="section" id="en-us_topic_0094012960__section14840153773114"><h4 class="sectiontitle">Function</h4><p id="en-us_topic_0094012960__p1696135018217">This API is used to delete a project.</p>
</div>
<div class="section" id="en-us_topic_0094012960__section784163713116"><h4 class="sectiontitle">URI</h4><ul id="en-us_topic_0094012960__ul17658915123319"><li id="en-us_topic_0094012960__li465819157330">URI format<p id="en-us_topic_0094012960__p4658715203318"><a name="en-us_topic_0094012960__li465819157330"></a><a name="li465819157330"></a>DELETE /v3/projects/{project_id}</p>
</li></ul>
<ul id="en-us_topic_0094012960__ul465810152335"><li id="en-us_topic_0094012960__li0658171513339">URI parameters
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0094012960__table1765831514339" frame="border" border="1" rules="all"><thead align="left"><tr id="en-us_topic_0094012960__row136591215133314"><th align="left" class="cellrowborder" valign="top" width="19.3%" id="mcps1.3.2.3.1.1.1.5.1.1"><p id="en-us_topic_0094012960__p66598151330"><strong id="en-us_topic_0094012960__a6f95694edbbb43d8a152536754b86c82_1">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.96%" id="mcps1.3.2.3.1.1.1.5.1.2"><p id="en-us_topic_0094012960__p1565991583314"><strong id="en-us_topic_0094012960__b842352706184228_1">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.88%" id="mcps1.3.2.3.1.1.1.5.1.3"><p id="en-us_topic_0094012960__p9659315143313"><strong id="en-us_topic_0094012960__a703d34a49a2f4162bc1a1a439f655f95_1">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="44.86%" id="mcps1.3.2.3.1.1.1.5.1.4"><p id="en-us_topic_0094012960__p4659131573319"><strong id="en-us_topic_0094012960__b842352706114032_1">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0094012960__row365911520332"><td class="cellrowborder" valign="top" width="19.3%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="en-us_topic_0094012960__p965961523316">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.96%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="en-us_topic_0094012960__p20659171513317">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.88%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="en-us_topic_0094012960__p5659191514336">String</p>
</td>
<td class="cellrowborder" valign="top" width="44.86%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="en-us_topic_0094012960__p56591315203314">Project ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="en-us_topic_0094012960__section41023711442"><h4 class="sectiontitle">Request Parameters</h4><ul id="en-us_topic_0094012960__ul10841163719319"><li id="en-us_topic_0094012960__li78411737203117">Parameters in the request header
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0094012960__table6841837173110" frame="border" border="1" rules="all"><thead align="left"><tr id="en-us_topic_0094012960__row58413376318"><th align="left" class="cellrowborder" valign="top" width="19.27807219278072%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="en-us_topic_0094012960__p584143715313"><strong id="en-us_topic_0094012960__a6f95694edbbb43d8a152536754b86c82_3">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.17818218178182%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="en-us_topic_0094012960__p58421837173119"><strong id="en-us_topic_0094012960__b842352706184228_3">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.698230176982303%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="en-us_topic_0094012960__p1284203773111"><strong id="en-us_topic_0094012960__a703d34a49a2f4162bc1a1a439f655f95_3">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="44.84551544845515%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="en-us_topic_0094012960__p1584293703114"><strong id="en-us_topic_0094012960__b842352706114032_3">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0094012960__row11842637153116"><td class="cellrowborder" valign="top" width="19.27807219278072%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="en-us_topic_0094012960__p68421237153116">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="18.17818218178182%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="en-us_topic_0094012960__p198428375319">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.698230176982303%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="en-us_topic_0094012960__p158426375311">String</p>
</td>
<td class="cellrowborder" valign="top" width="44.84551544845515%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="en-us_topic_0094012960__p784213783118">Fill <strong id="en-us_topic_0094012960__b842352706161331">application/json;charset=utf8</strong> in this field.</p>
</td>
</tr>
<tr id="en-us_topic_0094012960__row984253713313"><td class="cellrowborder" valign="top" width="19.27807219278072%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="en-us_topic_0094012960__p1484219377311">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="18.17818218178182%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="en-us_topic_0094012960__p484223783118">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.698230176982303%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="en-us_topic_0094012960__p1884233733118">String</p>
</td>
<td class="cellrowborder" valign="top" width="44.84551544845515%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="en-us_topic_0094012960__p3907950692245">Authenticated token with the <strong id="en-us_topic_0094012960__b750798910387">Security Administrator</strong> permission.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<ul id="en-us_topic_0094012960__ul16661111516336"><li id="en-us_topic_0094012960__li6661181511339">Example Request<pre class="screen" id="en-us_topic_0094012960__screen1666181563310"><em id="en-us_topic_0094012960__i146381945905">curl -i -k -H "X-Auth-Token:$token" -H 'Content-Type:application/json;charset=utf8' -X DELETE https://sample.domain.com/v3/projects/3291eab70fd743499ef1a09aa3ae67a7</em></pre>
</li></ul>
<div class="section" id="en-us_topic_0094012960__section1732319140365"><h4 class="sectiontitle">Response Parameters</h4><p id="en-us_topic_0094012960__p113234144369">None</p>
</div>
<div class="section" id="en-us_topic_0094012960__section20323151411368"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0094012960__table8323141453613" frame="border" border="1" rules="all"><thead align="left"><tr id="en-us_topic_0094012960__row932381403612"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.6.2.1.3.1.1"><p id="en-us_topic_0094012960__p14323514173615"><strong id="en-us_topic_0094012960__b842352706104328">Status Code</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.6.2.1.3.1.2"><p id="en-us_topic_0094012960__p10323141463613"><strong id="en-us_topic_0094012960__b842352706114032_5">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0094012960__row132319142366"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.1 "><p id="en-us_topic_0094012960__p16323714103613">204</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.2 "><p id="en-us_topic_0094012960__p5323614133611">The request is successful.</p>
</td>
</tr>
<tr id="en-us_topic_0094012960__row43234147366"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.1 "><p id="en-us_topic_0094012960__p1632321443618">400</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.2 "><p id="en-us_topic_0094012960__p432310148363">The server failed to process the request.</p>
</td>
</tr>
<tr id="en-us_topic_0094012960__row3323114113619"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.1 "><p id="en-us_topic_0094012960__p832311411365">401</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.2 "><p id="en-us_topic_0094012960__p14323121419361">Authentication failed.</p>
</td>
</tr>
<tr id="en-us_topic_0094012960__row15323514113619"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.1 "><p id="en-us_topic_0094012960__p13323131419361">403</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.2 "><p id="en-us_topic_0094012960__p12323914143611">Access denied.</p>
</td>
</tr>
<tr id="en-us_topic_0094012960__row1832313143362"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.1 "><p id="en-us_topic_0094012960__p20324171414362">404</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.2 "><p id="en-us_topic_0094012960__p33243147365">The requested resource cannot be found.</p>
</td>
</tr>
<tr id="en-us_topic_0094012960__row143245147365"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.1 "><p id="en-us_topic_0094012960__p1732412140368">500</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.2 "><p id="en-us_topic_0094012960__p232416145368">Internal server error.</p>
</td>
</tr>
<tr id="en-us_topic_0094012960__row83241314123618"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.1 "><p id="en-us_topic_0094012960__p5324181453616">503</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.6.2.1.3.1.2 "><p id="en-us_topic_0094012960__p232411417363">Service unavailable.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0057845642.html">Project Management</a></div>
</div>
</div>