Delete the security group
Remove a security group from a port
Traffic that was allowed by the group rules will be denied. Active sessions that were set by the group rules will be interrupted on the port.
If you remove all security groups from a port, traffic will be completely blocked.
OpenStack CLI
-
Remove the security group from the port:
openstack port unset \
--security-group <security-group> \
<port>Specify:
<security_group>
— ID or security group name, can be viewed withopenstack security group list
;<port>
— Port ID, can be viewed withopenstack port list
. The list of ports to which the group is assigned can be viewed in the control panels under Cloud platform → Security groups → security group page → tab Ports.
-
Optional: remove all security groups from the port:
openstack port set \
--no-security-group \
<port>Specify
<port>
— Port ID, can be viewed withopenstack port list
.
Remove the security group from the server
Traffic that was allowed by the group rules will be denied. Active sessions that were set by the group rules will be terminated on the server ports.
OpenStack CLI
-
Remove the security group from the server:
openstack server remove security group \
<server> \
<security_group>Specify:
<server>
— ID or server name, can be viewed withopenstack server list
;<security_group>
— ID or security group name, can be viewed withopenstack security group list
.
Delete the security group
OpenStack CLI
-
Remove the group from all ports The list of ports to which the group is assigned. The list of ports to which the group is assigned can be viewed in the control panels under Cloud platform → Security groups → security group page → tab Ports.
-
Remove the security group:
openstack security group delete <security_group>
Specify
<security_group>
- The ID of the security group, can be viewed withopenstack security group list
.