doc-exports/docs/iam/api-ref/en-us_topic_0057845648.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

134 lines
10 KiB
HTML

<a name="en-us_topic_0057845648"></a><a name="en-us_topic_0057845648"></a>
<h1 class="topictitle1">Deleting a Mapping</h1>
<div id="body1492676120177"><div class="section" id="en-us_topic_0057845648__section31686124102610"><h4 class="sectiontitle">Function</h4><p id="en-us_topic_0057845648__p741911255202">This API is used to delete the information about a mapping.</p>
</div>
<div class="section" id="en-us_topic_0057845648__section13735511102610"><h4 class="sectiontitle">URI</h4><ul id="en-us_topic_0057845648__ul38834627102610"><li id="en-us_topic_0057845648__li13967331102610">URI format<p id="en-us_topic_0057845648__p58597116102610"><a name="en-us_topic_0057845648__li13967331102610"></a><a name="li13967331102610"></a>DELETE /v3/OS-FEDERATION/mappings/{id}</p>
</li></ul>
<ul id="en-us_topic_0057845648__ul57612001102610"><li id="en-us_topic_0057845648__li48745961102610">URI parameters
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0057845648__table36060471102610" frame="border" border="1" rules="all"><thead align="left"><tr id="en-us_topic_0057845648__row28531275102610"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.1.5.1.1"><p id="en-us_topic_0057845648__p29331927102610"><strong id="en-us_topic_0057845648__a6f95694edbbb43d8a152536754b86c82">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.1.5.1.2"><p id="en-us_topic_0057845648__p27075847102610"><strong id="en-us_topic_0057845648__a105e6ed8c3de4c5a9dde97ae5a71071e">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.1.5.1.3"><p id="en-us_topic_0057845648__p45659971102610"><strong id="en-us_topic_0057845648__a703d34a49a2f4162bc1a1a439f655f95">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.3.1.1.1.5.1.4"><p id="en-us_topic_0057845648__p7470196102610"><strong id="en-us_topic_0057845648__b842352706114032">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0057845648__row1106178102610"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="en-us_topic_0057845648__p22491604102610">id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="en-us_topic_0057845648__p9880659102610">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="en-us_topic_0057845648__p62135910102610">String</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="en-us_topic_0057845648__p66952822102610">Mapping ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="en-us_topic_0057845648__section54469482102610"><h4 class="sectiontitle">Request Parameters</h4><ul id="en-us_topic_0057845648__ul49951915102610"><li id="en-us_topic_0057845648__li46914051102610">Parameters in the request header
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0057845648__table19573280102610" frame="border" border="1" rules="all"><thead align="left"><tr id="en-us_topic_0057845648__row50848928102610"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="en-us_topic_0057845648__p25122480102610"><strong id="en-us_topic_0057845648__b525474899174">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="en-us_topic_0057845648__p21655009102610"><strong id="en-us_topic_0057845648__b550672989174">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="en-us_topic_0057845648__p9225306102610"><strong id="en-us_topic_0057845648__b129599929174">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="en-us_topic_0057845648__p9052356102610"><strong id="en-us_topic_0057845648__b525938479174">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0057845648__row62152263102610"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="en-us_topic_0057845648__p1168522102610">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="en-us_topic_0057845648__p27541429102610">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="en-us_topic_0057845648__p16263281102610">String</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="en-us_topic_0057845648__p42257381102610">Fill <strong id="en-us_topic_0057845648__b842352706161331">application/json;charset=utf8</strong> in this field.</p>
</td>
</tr>
<tr id="en-us_topic_0057845648__row44772116102610"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="en-us_topic_0057845648__p2662800102610">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="en-us_topic_0057845648__p14360281102610">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="en-us_topic_0057845648__p22332118102610">String</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="en-us_topic_0057845648__p65565303143313">Authenticated token with the <strong id="en-us_topic_0057845648__b750798910387">Security Administrator</strong> permission.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="en-us_topic_0057845648__ul4334942594041"><li id="en-us_topic_0057845648__li5460051194041">Example request<pre class="screen" id="en-us_topic_0057845648__screen2956678210321"><em id="en-us_topic_0057845648__i526622813575">curl -i -k -H 'Accept:application/json' -H 'Content-Type:application/json;charset=utf8' -H "X-Auth-Token:$token" -X DELETE https://sample.domain.com/v3/OS-FEDERATION/mappings/ACME</em></pre>
</li></ul>
</div>
<div class="section" id="en-us_topic_0057845648__section1073914502496"><h4 class="sectiontitle">Response Parameters</h4><p id="en-us_topic_0057845648__p13739165014916">None</p>
</div>
<div class="section" id="en-us_topic_0057845648__section22380814102610"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0057845648__table906649102610" frame="border" border="1" rules="all"><thead align="left"><tr id="en-us_topic_0057845648__row50963380102610"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.2.1.3.1.1"><p id="en-us_topic_0057845648__p34393077102610"><strong id="en-us_topic_0057845648__b37151362163018">Status Code</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.2.1.3.1.2"><p id="en-us_topic_0057845648__p34375847102610"><strong id="en-us_topic_0057845648__b38470707163018">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0057845648__row32980209102610"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845648__p54151292102610">204</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845648__p24178544102610">The request is successful.</p>
</td>
</tr>
<tr id="en-us_topic_0057845648__row16280304102610"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845648__p43636243102610">400</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845648__p44874803102610">The server failed to process the request.</p>
</td>
</tr>
<tr id="en-us_topic_0057845648__row1220045102610"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845648__p31714802102610">401</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845648__p18762184102610">Authentication failed.</p>
</td>
</tr>
<tr id="en-us_topic_0057845648__row34641933102610"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845648__p54533166102610">403</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845648__p55110357102610">Access denied.</p>
</td>
</tr>
<tr id="en-us_topic_0057845648__row26231165102610"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845648__p44349605102610">404</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845648__p35548229102610">The requested resource cannot be found.</p>
</td>
</tr>
<tr id="en-us_topic_0057845648__row51498610102610"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845648__p10637882102610">405</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845648__p56362127102610">The method specified in the request is not allowed for the requested resource.</p>
</td>
</tr>
<tr id="en-us_topic_0057845648__row37497097102610"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845648__p17366044102610">413</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845648__p64472303102610">The request entity is too large.</p>
</td>
</tr>
<tr id="en-us_topic_0057845648__row43379816102610"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845648__p24104190102610">500</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845648__p6282410102610">Internal server error.</p>
</td>
</tr>
<tr id="en-us_topic_0057845648__row56541690102610"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.1 "><p id="en-us_topic_0057845648__p16474207102610">503</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.2.1.3.1.2 "><p id="en-us_topic_0057845648__p59342413102610">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_0057845588.html">Mapping</a></div>
</div>
</div>