forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
106 lines
8.9 KiB
HTML
106 lines
8.9 KiB
HTML
<a name="EN-US_TOPIC_0067161717"></a><a name="EN-US_TOPIC_0067161717"></a>
|
|
|
|
<h1 class="topictitle1">Removing a Security Group</h1>
|
|
<div id="body1500454728729"><div class="section" id="EN-US_TOPIC_0067161717__en-us_topic_0057973179_section16588975"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0067161717__en-us_topic_0057973179_p8601970">This API is used to remove a security group from an <span id="EN-US_TOPIC_0067161717__text16250347909">ECS</span>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0067161717__en-us_topic_0057973179_section15083054"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0067161717__p66228246145352">POST /v2.1/{project_id}/servers/{server_id}/action</p>
|
|
<p id="EN-US_TOPIC_0067161717__p18560186164017">POST /v2/{project_id}/servers/{server_id}/action</p>
|
|
<div class="p" id="EN-US_TOPIC_0067161717__p1101730699"><a href="#EN-US_TOPIC_0067161717__table55945983">Table 1</a> describes the parameters in the URI.
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0067161717__table55945983"></a><a name="table55945983"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0067161717__table55945983" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0067161717__row11302482"><th align="left" class="cellrowborder" valign="top" width="19.801980198019802%" id="mcps1.3.2.4.2.2.4.1.1"><p id="EN-US_TOPIC_0067161717__p5187119">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.831683168316832%" id="mcps1.3.2.4.2.2.4.1.2"><p id="EN-US_TOPIC_0067161717__p17503500">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="63.366336633663366%" id="mcps1.3.2.4.2.2.4.1.3"><p id="EN-US_TOPIC_0067161717__p8497414">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0067161717__row49888896"><td class="cellrowborder" valign="top" width="19.801980198019802%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0067161717__p14468758">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.831683168316832%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0067161717__p31118786">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.366336633663366%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0067161717__p19718121214">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0067161717__row613736410235"><td class="cellrowborder" valign="top" width="19.801980198019802%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0067161717__p2736446410235">server_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.831683168316832%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0067161717__p192907210235">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.366336633663366%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0067161717__p2203711610235">Specifies the <span id="EN-US_TOPIC_0067161717__text4401192018446">ECS</span> ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0067161717__en-us_topic_0057973179_section56802184"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0067161717__p1218225161515"><a href="#EN-US_TOPIC_0067161717__en-us_topic_0058745339_table44724688204850">Table 2</a> describes the request parameters.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0067161717__en-us_topic_0058745339_table44724688204850"></a><a name="en-us_topic_0058745339_table44724688204850"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_table44724688204850" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameter</caption><thead align="left"><tr id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_row1798761204850"><th align="left" class="cellrowborder" valign="top" width="25.71%" id="mcps1.3.3.3.2.5.1.1"><p id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_p39560242204918">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.069999999999999%" id="mcps1.3.3.3.2.5.1.2"><p id="EN-US_TOPIC_0067161717__p1744285513269">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.43%" id="mcps1.3.3.3.2.5.1.3"><p id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_p50263001204918">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.79%" id="mcps1.3.3.3.2.5.1.4"><p id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_p2596798204918">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_row5848663204850"><td class="cellrowborder" valign="top" width="25.71%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_p22382703204933">removeSecurityGroup</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.069999999999999%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0067161717__p1544245582616">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.43%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_p1059631204933">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.79%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_p40030009204933">Specifies the security group to be removed from an <span id="EN-US_TOPIC_0067161717__text373403264417">ECS</span>. For details, see <a href="#EN-US_TOPIC_0067161717__en-us_topic_0058745339_table59377750205027">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0067161717__en-us_topic_0058745339_table59377750205027"></a><a name="en-us_topic_0058745339_table59377750205027"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_table59377750205027" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="EN-US_TOPIC_0067161717__b842352706145746">removeSecurityGroup</strong> parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_row1841518205027"><th align="left" class="cellrowborder" valign="top" width="25.290000000000003%" id="mcps1.3.3.4.2.5.1.1"><p id="EN-US_TOPIC_0067161717__p022464114103">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.39%" id="mcps1.3.3.4.2.5.1.2"><p id="EN-US_TOPIC_0067161717__p1281195882614">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.719999999999999%" id="mcps1.3.3.4.2.5.1.3"><p id="EN-US_TOPIC_0067161717__p522412415109">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.6%" id="mcps1.3.3.4.2.5.1.4"><p id="EN-US_TOPIC_0067161717__p1222404112106">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_row20042728205027"><td class="cellrowborder" valign="top" width="25.290000000000003%" headers="mcps1.3.3.4.2.5.1.1 "><p id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_p29571470205128">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.39%" headers="mcps1.3.3.4.2.5.1.2 "><p id="EN-US_TOPIC_0067161717__p11811558182613">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.719999999999999%" headers="mcps1.3.3.4.2.5.1.3 "><p id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_p46478847205128">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.6%" headers="mcps1.3.3.4.2.5.1.4 "><p id="EN-US_TOPIC_0067161717__en-us_topic_0058745339_p5042904205128">Specifies the UUID or name of the security group from which the <span id="EN-US_TOPIC_0067161717__text527611492010">ECS</span> is removed. The configuration takes effect for the NICs on the <span id="EN-US_TOPIC_0067161717__text848216282476">ECS</span>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0067161717__en-us_topic_0057973179_section41457614"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0067161717__p498469151749">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0067161717__section158377710302"><h4 class="sectiontitle">Example Request</h4><p id="EN-US_TOPIC_0067161717__p104251660517">Remove a security group from an ECS.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0067161717__screen1383916719303">POST https://{endpoint}/v2.1/{project_id}/servers/{server_id}/action
|
|
|
|
{
|
|
"removeSecurityGroup": {
|
|
"name": "sg-test"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0067161717__section595062522516"><h4 class="sectiontitle">Example Response</h4><p id="EN-US_TOPIC_0067161717__p20859629152512">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0067161717__section657556601763"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0067161717__p4639416917613">See <a href="en-us_topic_0022067716.html">Returned Values for General Requests</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0031167514.html">Security Group Management</a></div>
|
|
</div>
|
|
</div>
|
|
|