Skip to main content
Delete the security group
Last update:

Delete the security group

Remove a security group from a port

carefully

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.

  1. Open the OpenStack CLI.

  2. 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 with openstack security group list;
    • <port> — Port ID, can be viewed with openstack port list. The list of ports to which the group is assigned can be viewed in the control panels under Cloud platformSecurity groups → security group page → tab Ports.
  3. Optional: remove all security groups from the port:

    openstack port set \
    --no-security-group \
    <port>

    Specify <port> — Port ID, can be viewed with openstack port list.

Remove the security group from the server

carefully

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.

  1. Open the OpenStack CLI.

  2. Remove the security group from the server:

    openstack server remove security group \
    <server> \
    <security_group>

    Specify:

    • <server> — ID or server name, can be viewed with openstack server list;
    • <security_group> — ID or security group name, can be viewed with openstack security group list.

Delete the security group

  1. Open the OpenStack CLI.

  2. 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 platformSecurity groups → security group page → tab Ports.

  3. Remove the security group:

    openstack security group delete <security_group>

    Specify <security_group>- The ID of the security group, can be viewed with openstack security group list.