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

Managing Subnet Tags

Scenarios

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

If you have configured tag policies for subnets, you need to add tags to your subnets based on the tag policies. If you add a tag that does not comply with the tag policies, subnets may fail to be created. Contact the administrator to learn more about tag policies.

For details about subnet tag requirements, see Table 1.
Table 1 Subnet tag key and value requirements

Parameter

Requirements

Example Value

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.

subnet_key1

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.

subnet-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. In the navigation pane on the left, choose Virtual Private Cloud > Subnets.

    The Subnets page is displayed.

  5. In the subnet list, locate the target subnet and click its name.

    The subnet 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.