Updated on 2024-09-02 GMT+08:00

Managing Security Group Tags

Scenarios

Tags help you identify, classify, and search for security groups. You can perform the following operations to manage the tags of a security group:
  • Add a security group tag.
  • Modify a security group tag.
  • Delete a security group tag.

Table 1 lists the details about a security group tag.

Table 1 Security group tag naming requirements

Parameter

Requirements

Example Value

Tag key

  • For each resource, each tag key must be unique, and each tag key can only have one tag value.
  • Cannot be left blank.
  • Can contain a maximum of 128 characters.
  • Can contain letters in any language, digits, spaces, underscores (_), periods (.), colons (:), equal signs (=), plus signs (+), minus signs (-), and at signs (@).
  • Cannot start with _sys_ or a space or end with a space.

test

Tag value

  • Can be left blank.
  • Can contain a maximum of 255 characters.
  • Can contain letters in any language, digits, spaces, underscores (_), periods (.), colons (:), slashes (/), equal signs (=), plus signs (+), minus signs (-), and at signs (@).
  • Cannot start or end with a space.

01

Notes and Constraints

Each cloud resource can have a maximum of 20 tags.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  4. Go to the security group list page.
  5. Locate the target security group and click its name.

    The security group details page is displayed.

  6. On the Tags tab, click Edit Tag in the upper left corner above the tag list.

    The Edit Tag dialog box is displayed.

  7. Perform the following operations on the tag as required:
    • Adding a tag: Click , enter a tag key and value, and click OK.
    • Modifying a tag: Click next to the target tag key or value, delete the original value, enter a new value, and click OK.
    • Deleting a tag: Click Delete next to the target tag and click OK.