forked from docs/doc-exports
Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: fanqinying <fanqinying@huawei.com> Co-committed-by: fanqinying <fanqinying@huawei.com>
31 lines
7.1 KiB
HTML
31 lines
7.1 KiB
HTML
<a name="SecurityGroup_0017"></a><a name="SecurityGroup_0017"></a>
|
|
|
|
<h1 class="topictitle1">Adding an Instance to or Removing an Instance from a Security Group</h1>
|
|
<div id="body1532510613760"><div class="section" id="SecurityGroup_0017__section1284185020245"><h4 class="sectiontitle">Scenarios</h4><div class="p" id="SecurityGroup_0017__p5231151693518">When you create an instance, the system automatically adds the instance to a security group for protection.<ul id="SecurityGroup_0017__ul12247447191919"><li id="SecurityGroup_0017__li424764717199">If one security group cannot meet your requirements, you can add an instance to multiple security groups.</li><li id="SecurityGroup_0017__li1043520521190">An instance must be added to at least one security group. If you want to change the security group for an instance, you can add the instance to a new security group and then remove the instance from the original security group.</li></ul>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="SecurityGroup_0017__section7737145418298"><h4 class="sectiontitle">Adding an Instance to a Security Group</h4><ol id="SecurityGroup_0017__ol1527262085715"><li id="SecurityGroup_0017__li2849879021595">Log in to the management console.</li><li id="SecurityGroup_0017__li19707181319510">Click <span><img id="SecurityGroup_0017__en-us_topic_0118498823_image338921514480" src="en-us_image_0000001818982734.png"></span> in the upper left corner and select the desired region and project.</li><li id="SecurityGroup_0017__li65321958215">Click <span><img id="SecurityGroup_0017__en-us_topic_0118498850_image8750174734412" src="en-us_image_0000001818982974.png"></span> in the upper left corner and choose <strong id="SecurityGroup_0017__b19991723143713"><span id="SecurityGroup_0017__text399162313377">Network</span><span id="SecurityGroup_0017__text13991132319370"></span></strong> > <strong id="SecurityGroup_0017__b11991323183715">Virtual Private Cloud</strong>.<p id="SecurityGroup_0017__p1182103318256">The <strong id="SecurityGroup_0017__b0884173153715">Virtual Private Cloud</strong> page is displayed.</p>
|
|
</li><li id="SecurityGroup_0017__li1955416211482">In the navigation pane on the left, choose <strong id="SecurityGroup_0017__b39573448339">Access Control</strong> > <strong id="SecurityGroup_0017__b2095710448331">Security Groups</strong>.<p id="SecurityGroup_0017__p78331733204216">The security group list is displayed.</p>
|
|
</li><li id="SecurityGroup_0017__li61193616483">In the security group list, locate the row that contains the security group and click <strong id="SecurityGroup_0017__b771214521337">Manage Instances</strong> in the <strong id="SecurityGroup_0017__b1871355243310">Operation</strong> column.<p id="SecurityGroup_0017__p100911194312">The <strong id="SecurityGroup_0017__b12887181919406">Associated Instances</strong> tab is displayed.</p>
|
|
</li><li id="SecurityGroup_0017__li17819483234">Click an instance type.<p id="SecurityGroup_0017__p212255420232"><a name="SecurityGroup_0017__li17819483234"></a><a name="li17819483234"></a>The following operations use <strong id="SecurityGroup_0017__b955634924019">Servers</strong> as an example.</p>
|
|
</li><li id="SecurityGroup_0017__li16925141642314">Click the <strong id="SecurityGroup_0017__b1463250104111">Servers</strong> tab and click <strong id="SecurityGroup_0017__b1821478154117">Add</strong>.<p id="SecurityGroup_0017__p1388682452418">The <strong id="SecurityGroup_0017__b341518914111">Add Server</strong> dialog box is displayed.</p>
|
|
</li><li id="SecurityGroup_0017__li1411153214246">In the server list, select one or more servers and click <strong id="SecurityGroup_0017__b828475416111">OK</strong> to add them to the current security group.</li></ol>
|
|
</div>
|
|
<div class="section" id="SecurityGroup_0017__section147074331319"><h4 class="sectiontitle">Removing an Instance from a Security Group</h4><p id="SecurityGroup_0017__p16615356142514">An instance must be added to at least one security group. If you want to remove an instance from a security group, the instance must be associated with at least two security groups now.</p>
|
|
<ol id="SecurityGroup_0017__ol2708193318119"><li id="SecurityGroup_0017__li8955159354">Log in to the management console.</li><li id="SecurityGroup_0017__li1770913314115">Click <span><img id="SecurityGroup_0017__image837831744" src="en-us_image_0000001818982734.png"></span> in the upper left corner and select the desired region and project.</li><li id="SecurityGroup_0017__li5766141316458">Click <span><img id="SecurityGroup_0017__image10766141319453" src="en-us_image_0000001865582721.png"></span> in the upper left corner and choose <strong id="SecurityGroup_0017__b090413613712"><span id="SecurityGroup_0017__text390493653717">Network</span><span id="SecurityGroup_0017__text20904193603712"></span></strong> > <strong id="SecurityGroup_0017__b16904183616376">Virtual Private Cloud</strong>.<p id="SecurityGroup_0017__p11767191320456">The <strong id="SecurityGroup_0017__b19977114263710">Virtual Private Cloud</strong> page is displayed.</p>
|
|
</li><li id="SecurityGroup_0017__li155681561266">In the navigation pane on the left, choose <strong id="SecurityGroup_0017__b126787217514">Access Control</strong> > <strong id="SecurityGroup_0017__b1867810275116">Security Groups</strong>.<p id="SecurityGroup_0017__p55684565264">The security group list is displayed.</p>
|
|
</li><li id="SecurityGroup_0017__li1456875612268">In the security group list, locate the row that contains the security group and click <strong id="SecurityGroup_0017__b14637153616516">Manage Instances</strong> in the <strong id="SecurityGroup_0017__b5638183635118">Operation</strong> column.<p id="SecurityGroup_0017__p756895615261">The <strong id="SecurityGroup_0017__b18614184817515">Associated Instances</strong> tab is displayed.</p>
|
|
</li><li id="SecurityGroup_0017__li056825618262">Click an instance type.<p id="SecurityGroup_0017__p1856875682612"><a name="SecurityGroup_0017__li056825618262"></a><a name="li056825618262"></a>The following operations use <strong id="SecurityGroup_0017__b3583185165217">Servers</strong> as an example.</p>
|
|
</li><li id="SecurityGroup_0017__li622212073511">Click the <strong id="SecurityGroup_0017__b149916167531">Servers</strong> tab, select one or more servers, and click <strong id="SecurityGroup_0017__b9533163975315">Remove</strong> in the upper left corner of the server list.<p id="SecurityGroup_0017__p3507243173516">A confirmation dialog box is displayed.</p>
|
|
</li><li id="SecurityGroup_0017__li2047029193517">Confirm the information and click <strong id="SecurityGroup_0017__b157649143274">OK</strong>.</li></ol>
|
|
</div>
|
|
<div class="section" id="SecurityGroup_0017__section12231126103410"><h4 class="sectiontitle">Follow-Up Operations</h4><p id="SecurityGroup_0017__p14912491346">You can delete the security groups that you no longer need. Deleting a security group will also delete all security group rules in the security group. For details, see <a href="vpc_SecurityGroup_0008.html">Deleting a Security Group</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="vpc_SecurityGroup_0014.html">Managing Instances Associated with a Security Group</a></div>
|
|
</div>
|
|
</div>
|
|
|