--- title: Security Group --- # Security Group The **Security Group** tab controls the inbound and outbound traffic rules applied to the scale group's nodes. It is available when the group is **Running** or **Scaling**. Every node the Scaler launches inherits the security groups attached here. A scale group must always have **at least one** security group attached — you cannot detach the last one. --- ## What the Tab Shows The tab lists the [security groups](/docs/myaccount/network/security_grp) attached to the scale group and their rules. For each rule you can review the protocol, port range, network type, and source/destination, just as on a node's security group. --- ## Attach a Security Group 1. On the **Security Group** tab, choose a group to attach from the available list. 2. Confirm the attachment. The portal applies the group's rules to the running group nodes (this can take a moment to propagate) and to any nodes the Scaler launches afterward. ## Detach a Security Group 1. On the **Security Group** tab, select the security group to remove. 2. Confirm the detachment. You cannot remove the only attached security group — attach another first if you need to replace it. --- ## Related Resources | Resource | Use it for | | ------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------- | | [Manage Scale Groups](/docs/myaccount/auto-scaling/manage) | Return to the management hub. | | [Security Groups](/docs/myaccount/network/security_grp) | Create and edit security group rules. | | [Network and Load Balancer](/docs/myaccount/auto-scaling/manage/network) | Manage VPC and public IP for the group. | | [Available security groups (API)](/api/myaccount/compute/auto-scaling/get-scaler-scalegroups-remaining-security-group-auto-scale-id) | List groups you can attach. | | [Attach security group (API)](/api/myaccount/compute/auto-scaling/put-scaler-scalegroups-security-groups-auto-scale-id) | Attach a security group programmatically. | ---