After you create a security group, you can modify the name, description, and tags of the security group based on your business requirements. This topic describes how to modify the name, description, and tags of a security group in the Elastic Compute Service (ECS) console.
Prerequisites
A security group is created. For more information, see Create a security group.
Procedure
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
Modify the information of a security group.
Modify the name and description of a security group
On the security group list page, find the security group that you want to modify, move the pointer over the name in the Security Group ID/Name column and the description in the Description column, and then click the icon.
In the dialog box that appears, modify the name or description of the security group.
NoteSecurity group name: The new name must be 2 to 128 characters in length and cannot start with a special character or digit. The name can contain letters, digits, periods (.), underscores (_), hyphens (-), and colons (:).
Description: The new description must be 2 to 256 characters in length and cannot start with http:// or https://.
Click Confirm.
Modify the tags of a security group
Tags can be used to identify resources with the same characteristics for easy search and management, such as security groups that belong to the same organization or that serve the same purpose. For information about tags, see Overview of tags.
On the security group list page, find the security group that you want to manage and modify the tags of the security group.
If no tags are added to the security group, move the pointer over the icon in the Tag column and click Edit.
If tags are added to the security group, move the pointer over the icon in the Tag column and click Edit.
In the Configure Tags dialog box, select or create tags. Then, click OK.
NoteAfter tags are added to your security groups, you can filter the security groups by tag to perform different operations. For example, you can add ECS instances to security groups that have a specific set of tags and add rules to security groups that have a different set of tags.
References
You can call an API operation to modify the name and description of a security group. For more information, see ModifySecurityGroupAttribute.
You can use CloudOps Orchestration Service (OOS) to modify a tag value of multiple resources. For more information, see Use OOS to modify a tag value of multiple resources.
For information about the best practices for using tags, see Best practices for tags.